Class AbstractEntityExplorer<T>
- java.lang.Object
-
- org.uberfire.ext.security.management.client.widgets.management.explorer.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
-
-
Field Summary
Fields Modifier and Type Field Description protected org.jboss.errai.common.client.api.ErrorCallback<org.jboss.errai.bus.client.api.messaging.Message>errorCallbackprotected static intPAGE_SIZEprotected static StringSEARCH_PATTERN_ALLEntitiesExplorerViewviewprotected EntitiesExplorerView.ViewCallbackviewCallback
-
Constructor Summary
Constructors Constructor Description AbstractEntityExplorer(org.uberfire.ext.security.management.client.ClientUserSystemManager userSystemManager, javax.enterprise.event.Event<OnErrorEvent> errorEvent, LoadingBox loadingBox, EntitiesList<T> entitiesList, EntitiesExplorerView view)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description com.google.gwt.user.client.ui.WidgetasWidget()protected voidattemptToShowSearch()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).protected abstract booleancanCreate()protected abstract booleancanRead()protected abstract booleancanSearch()voidclear()protected EntitiesList.Callback<T>createCallback()protected EntitiesExplorerView.ViewContextcreateParentContext()protected voidfireReadEvent(String identifier)protected abstract StringgetEmptyText()protected abstract StringgetEntityId(T entity)protected abstract StringgetEntityName(T entity)protected abstract StringgetEntityType()Set<String>getSelectedEntities()protected abstract StringgetTitle()protected booleanhasContext()protected voidhideLoadingView()voidinit()protected Set<String>nullSafe(Set<String> set)voidsetPageSize(int pageSize)voidshow()voidshow(ExplorerViewContext context)protected abstract voidshowCreate()protected voidshowError(Throwable throwable)protected voidshowLoadingView()protected abstract voidshowSearch()
-
-
-
Field Detail
-
PAGE_SIZE
protected static final int PAGE_SIZE
- See Also:
- Constant Field Values
-
SEARCH_PATTERN_ALL
protected static final String SEARCH_PATTERN_ALL
- See Also:
- Constant Field Values
-
view
public EntitiesExplorerView view
-
errorCallback
protected final org.jboss.errai.common.client.api.ErrorCallback<org.jboss.errai.bus.client.api.messaging.Message> errorCallback
-
viewCallback
protected EntitiesExplorerView.ViewCallback viewCallback
-
-
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:
asWidgetin interfacecom.google.gwt.user.client.ui.IsWidget
-
getEmptyText
protected abstract String getEmptyText()
-
getEntityType
protected abstract String getEntityType()
-
getTitle
protected abstract String getTitle()
-
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()
-
init
@PostConstruct public void init()
-
show
public void show()
-
show
public void show(ExplorerViewContext context)
-
setPageSize
public void setPageSize(int pageSize)
-
createCallback
protected EntitiesList.Callback<T> createCallback()
-
fireReadEvent
protected void fireReadEvent(String identifier)
-
createParentContext
protected EntitiesExplorerView.ViewContext createParentContext()
-
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()
-
-