Class AbstractWorkbenchPerspectiveActivity

  • All Implemented Interfaces:
    Activity, ContextSensitiveActivity, PerspectiveActivity, org.uberfire.security.authz.RuntimeFeatureResource, org.uberfire.security.authz.RuntimeResource, org.uberfire.security.Resource
    Direct Known Subclasses:
    StandaloneEditorPerspective

    public abstract class AbstractWorkbenchPerspectiveActivity
    extends AbstractActivity
    implements PerspectiveActivity
    Implementation of behaviour common to all perspective activities. Concrete implementations are typically not written by hand; rather, they are generated from classes annotated with WorkbenchPerspective.
    • Constructor Detail

      • AbstractWorkbenchPerspectiveActivity

        public AbstractWorkbenchPerspectiveActivity​(PlaceManager placeManager)
    • Method Detail

      • getResourceType

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

        public boolean isDefault()
        Description copied from interface: PerspectiveActivity
        Returns true if this perspective should be displayed automatically when the application starts. Each application needs exactly one default perspective.
        Specified by:
        isDefault in interface Activity
        Specified by:
        isDefault in interface PerspectiveActivity
        Returns:
        true if this is the default perspective; false if it is not.
      • getMenus

        public void getMenus​(Consumer<org.uberfire.workbench.model.menu.Menus> menusConsumer)
        Description copied from interface: PerspectiveActivity
        Returns a new copy of the menus that should be used with this perspective. Each time this method is called, it must produce a new set of menus.
        Specified by:
        getMenus in interface PerspectiveActivity