Class AbstractWorkbenchScreenActivity

  • All Implemented Interfaces:
    Activity, ContextSensitiveActivity, WorkbenchActivity, WorkbenchScreenActivity, org.uberfire.security.authz.RuntimeFeatureResource, org.uberfire.security.authz.RuntimeResource, org.uberfire.security.Resource

    public abstract class AbstractWorkbenchScreenActivity
    extends AbstractWorkbenchActivity
    implements WorkbenchScreenActivity
    Implementation of behaviour common to all workbench screen activities. Concrete implementations are typically generated from classes annotated with WorkbenchScreen, but it is permissible for applications to extend this class directly instead of using the @WorkbenchScreen annotation.

    When implementing a Screen by extending this class, you must follow three rules:

    1. mark it as a @Dependent bean;
    2. specify its place ID via the @Named annotation;
    3. include an @Inject constructor that passes the PlaceManager up to the super constructor.
    • Constructor Detail

      • AbstractWorkbenchScreenActivity

        public AbstractWorkbenchScreenActivity​(PlaceManager placeManager)
        Passes the given PlaceManager up to the superclass.

        In order to make the super() call to this constructor, subclasses should declare their own constructor that takes a PlaceManager plus any other dependencies required by the screen, and annotate that constructor with @Inject.

        Parameters:
        placeManager - The PlaceManager in force for the current application. Must not be null.
    • Method Detail

      • getResourceType

        public org.uberfire.security.ResourceType getResourceType()
        Specified by:
        getResourceType in interface org.uberfire.security.Resource