Project

General

Profile

feature request #8503

Create abstract base UI from RegistrationUI and use it for all UIs

Added by Andreas Kohlbecker 12 months ago. Updated 12 months ago.

Status:
New
Priority:
New
Category:
cdm-vaadin
Target version:
Start date:
08/29/2019
Due date:
% Done:

0%

Severity:
normal

Description

The code which configures the error hanlder should also go into the abstract base class:

        DelegatingErrorHandler delegatingErrorHander = new DelegatingErrorHandler();
        WindowErrorHandler errorHandler = new WindowErrorHandler(this, RegistrationUIDefaults.ERROR_CONTACT_MESSAGE_LINE + "</br></br>"
                + "<i>To help analyzing the problem please describe your actions that lead to this error and provide the error details from below in your email. "
                + "You also might want to add a sreenshot of the browser page in error.</i>");
        delegatingErrorHander.registerHandler(new ErrorTypeErrorHandlerWrapper<PermissionDeniedException>(PermissionDeniedException.class, new PermissionDeniedErrorHandler(this)));
        delegatingErrorHander.registerHandler(new ErrorTypeErrorHandlerWrapper<Exception>(Exception.class, errorHandler));
        setErrorHandler(delegatingErrorHander);
        VaadinSession.getCurrent().setErrorHandler(delegatingErrorHander);

also other code part of the init method

To be implemented for

  • DistributionStatusUI URGENT: this UI is already based on the UI interface only
  • StatusEditorUI: still based on the AbstractAuthenticatedUI
  • ConceptRelationshipUI: still based on the AbstractAuthenticatedUI

Additional

  • drop AbstractAuthenticatedUI and CdmBaseUI once done

History

#1 Updated by Andreas Müller 12 months ago

Especially it needs to be available for the distribution editor

#2 Updated by Andreas Kohlbecker 12 months ago

  • Description updated (diff)

Especially it needs to be available for the distribution editor

agreed! This means it need to be done for the DistributionStatusUI first.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)