Class AbstractEntityExplorer<T>

  • All Implemented Interfaces:
    com.google.gwt.user.client.ui.IsWidget
    Direct Known Subclasses:
    GroupsExplorer, RolesExplorer, UsersExplorer

    public abstract class AbstractEntityExplorer<T>
    extends Object
    implements com.google.gwt.user.client.ui.IsWidget
    • Constructor Detail

      • AbstractEntityExplorer

        @Inject
        public AbstractEntityExplorer​(org.uberfire.ext.security.management.client.ClientUserSystemManager userSystemManager,
                                      javax.enterprise.event.Event<OnErrorEvent> errorEvent,
                                      LoadingBox loadingBox,
                                      EntitiesList<T> entitiesList,
                                      EntitiesExplorerView view)
    • Method Detail

      • asWidget

        public com.google.gwt.user.client.ui.Widget asWidget()
        Specified by:
        asWidget in interface com.google.gwt.user.client.ui.IsWidget
      • getEmptyText

        protected abstract String getEmptyText()
      • getEntityType

        protected abstract String getEntityType()
      • getTitle

        protected abstract String getTitle()
      • getEntityId

        protected abstract String getEntityId​(T entity)
      • getEntityName

        protected abstract String getEntityName​(T entity)
      • canSearch

        protected abstract boolean canSearch()
      • canCreate

        protected abstract boolean canCreate()
      • canRead

        protected abstract boolean canRead()
      • showSearch

        protected abstract void showSearch()
      • showCreate

        protected abstract void showCreate()
      • show

        public void show()
      • getSelectedEntities

        public Set<String> getSelectedEntities()
      • setPageSize

        public void setPageSize​(int pageSize)
      • fireReadEvent

        protected void fireReadEvent​(String identifier)
      • showLoadingView

        protected void showLoadingView()
      • hideLoadingView

        protected void hideLoadingView()
      • hasContext

        protected boolean hasContext()
      • attemptToShowSearch

        protected void attemptToShowSearch()
        The bean can be still present in the context, even listening CDI events, but can be not currently active, so this method just ensures to perform show in case it's active (it has context). This is due the explorer components can be/is being used by other components in different ways, main screen, inside modals, etc.
      • showError

        protected void showError​(Throwable throwable)
      • clear

        public void clear()