Class AdminPageImpl

  • All Implemented Interfaces:
    AdminPage

    @ApplicationScoped
    public class AdminPageImpl
    extends Object
    implements AdminPage
    • Constructor Detail

      • AdminPageImpl

        public AdminPageImpl()
      • AdminPageImpl

        @Inject
        public AdminPageImpl​(org.uberfire.client.mvp.PlaceManager placeManager,
                             javax.enterprise.event.Event<PreferencesCentralInitializationEvent> preferencesCentralInitializationEvent,
                             org.uberfire.preferences.shared.PreferenceScopeResolutionStrategy resolutionStrategy,
                             org.uberfire.ext.widgets.common.client.breadcrumbs.UberfireBreadcrumbs breadcrumbs,
                             org.jboss.errai.ui.client.local.spi.TranslationService translationService)
    • Method Detail

      • addScreen

        public void addScreen​(String identifier,
                              String title)
        Description copied from interface: AdminPage
        Adds a new admin screen context to be configured and opened.
        Specified by:
        addScreen in interface AdminPage
        Parameters:
        identifier - Admin screen identifier.
        title - Admin screen title.
      • addTool

        public void addTool​(String screen,
                            String title,
                            Set<String> iconCss,
                            String category,
                            org.uberfire.mvp.Command command,
                            org.uberfire.mvp.ParameterizedCommand<org.uberfire.mvp.ParameterizedCommand<Integer>> counterCommand)
        Description copied from interface: AdminPage
        Adds a new admin tool to the admin page (with a counter).
        Specified by:
        addTool in interface AdminPage
        Parameters:
        screen - Identifier for the admin screen where the tool will be inserted.
        title - Title that will be displayed on the tool accessor.
        iconCss - CSS class(es) responsible to stylize the icon.
        category - Defines the group inside which the shortcut will be.
        command - Command to be executed when the shortcut is accessed.
        counterCommand - ParameterizedCommand that calls its ParameterizedCommand parameter passing the counter.
      • addTool

        public void addTool​(String screen,
                            String title,
                            Set<String> iconCss,
                            String category,
                            org.uberfire.mvp.Command command)
        Description copied from interface: AdminPage
        Adds a new admin tool to the admin page.
        Specified by:
        addTool in interface AdminPage
        Parameters:
        screen - Identifier for the admin screen where the tool will be inserted.
        title - Title that will be displayed on the tool accessor.
        iconCss - CSS class(es) responsible to stylize the icon.
        category - Defines the group inside which the shortcut will be.
        command - Command to be executed when the shortcut is accessed.
      • addPreference

        public void addPreference​(String screen,
                                  String identifier,
                                  String title,
                                  Set<String> iconCss,
                                  String category,
                                  AdminPageOptions... options)
        Description copied from interface: AdminPage
        Adds a new admin tool that links to a preference to the admin page.
        Specified by:
        addPreference in interface AdminPage
        Parameters:
        screen - Identifier for the admin screen where the preference will be inserted.
        identifier - Preference identifier.
        title - Preference title that will be displayed on the tool accessor.
        iconCss - CSS class related to the shortcut icon.
        category - Defines the group inside which the shortcut will be.
        options - Defines options to customize the preference accessor.
      • addPreference

        public void addPreference​(String screen,
                                  String identifier,
                                  String title,
                                  Set<String> iconCss,
                                  String category,
                                  Supplier<org.uberfire.preferences.shared.impl.PreferenceScopeResolutionStrategyInfo> customScopeResolutionStrategySupplier,
                                  AdminPageOptions... options)
        Description copied from interface: AdminPage
        Adds a new admin tool that links to a preference to the admin page.
        Specified by:
        addPreference in interface AdminPage
        Parameters:
        screen - Identifier for the admin screen where the preference will be inserted.
        identifier - Preference identifier.
        title - Preference title that will be displayed on the tool accessor.
        iconCss - CSS class related to the shortcut icon.
        category - Defines the group inside which the shortcut will be.
        customScopeResolutionStrategySupplier - Supplier for a custom preference scope resolution strategy. It will be used when the tool is selected.
        options - Defines options to customize the preference accessor.
      • addPreference

        public void addPreference​(String screen,
                                  String identifier,
                                  String title,
                                  Set<String> iconCss,
                                  String category,
                                  org.uberfire.preferences.shared.PreferenceScope preferenceScope,
                                  AdminPageOptions... options)
        Description copied from interface: AdminPage
        Adds a new admin tool that links to a preference to the admin page.
        Specified by:
        addPreference in interface AdminPage
        Parameters:
        screen - Identifier for the admin screen where the preference will be inserted.
        identifier - Preference identifier.
        title - Preference title that will be displayed on the tool accessor.
        iconCss - CSS class related to the shortcut icon.
        category - Defines the group inside which the shortcut will be.
        preferenceScope - Scope where the preferences will be saved when edited. It will be used when the tool is selected.
        options - Defines options to customize the preference accessor.
      • addPreference

        public void addPreference​(String screen,
                                  String identifier,
                                  String title,
                                  Set<String> iconCss,
                                  String category,
                                  Supplier<org.uberfire.preferences.shared.impl.PreferenceScopeResolutionStrategyInfo> customScopeResolutionStrategySupplier,
                                  org.uberfire.preferences.shared.PreferenceScope preferenceScope,
                                  AdminPageOptions... options)
        Description copied from interface: AdminPage
        Adds a new admin tool that links to a preference to the admin page.
        Specified by:
        addPreference in interface AdminPage
        Parameters:
        screen - Identifier for the admin screen where the preference will be inserted.
        identifier - Preference identifier.
        title - Preference title that will be displayed on the tool accessor.
        iconCss - CSS class related to the shortcut icon.
        category - Defines the group inside which the shortcut will be.
        customScopeResolutionStrategySupplier - Supplier for a custom preference scope resolution strategy.
        preferenceScope - Scope where the preferences will be saved when edited. It will be used when the tool is selected.
        options - Defines options to customize the preference accessor.
      • getToolsByCategory

        public Map<String,​List<AdminTool>> getToolsByCategory​(String screen)
        Description copied from interface: AdminPage
        Returns all added admin tools, grouped by their category.
        Specified by:
        getToolsByCategory in interface AdminPage
        Parameters:
        screen - Identifier for the admin screen from where the tools will be returned.
        Returns:
        A map containing a list of admin tools by each category of that screen.
      • getScreenTitle

        public String getScreenTitle​(String screen)
        Description copied from interface: AdminPage
        Returns the screen title to be exhibit in the admin page.
        Specified by:
        getScreenTitle in interface AdminPage
        Parameters:
        screen - Screen identifier.
        Returns:
        Screen title, as passed when the screen was added.
      • getDefaultScreen

        public String getDefaultScreen()
        Description copied from interface: AdminPage
        Returns the default screen to be opened when navigating to the Admin Page perspective.
        Specified by:
        getDefaultScreen in interface AdminPage
        Returns:
        Default screen identifier.
      • setDefaultScreen

        public void setDefaultScreen​(String defaultScreen)
        Description copied from interface: AdminPage
        Defines the default screen to be opened when navigating to the Admin Page perspective.
        Specified by:
        setDefaultScreen in interface AdminPage
        Parameters:
        defaultScreen - Default screen identifier. Must not be null or empty.