Class ExplorerViewContext
- java.lang.Object
-
- org.uberfire.ext.security.management.client.widgets.management.explorer.ExplorerViewContext
-
- All Implemented Interfaces:
EntitiesExplorerView.ViewContext
public class ExplorerViewContext extends Object implements EntitiesExplorerView.ViewContext
Explorer View context implementation that has a parent view context.
Just override methods of your interest. By default, they delegate to the parent context.
-
-
Constructor Summary
Constructors Constructor Description ExplorerViewContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanCreate()Allows enabling or disabling the entities creation feature.booleancanDelete()Allows enabling or disabling the entities delete feature.booleancanRead()Allows enabling or disabling the entities read feature.booleancanSearch()Allows enabling or disabling the entities search feature.booleancanSelect()Allows enabling or disabling the entities selection feature.Set<String>getConstrainedEntities()The entity identifiers that cannot be used.EntitiesExplorerView.ViewContextgetParent()Set<String>getSelectedEntities()IfcanSelect()is enabled, the entity identifiers specified in the collection values will be mark as selected.voidsetParent(EntitiesExplorerView.ViewContext parent)
-
-
-
Method Detail
-
canSearch
public boolean canSearch()
Description copied from interface:EntitiesExplorerView.ViewContextAllows enabling or disabling the entities search feature.
- Specified by:
canSearchin interfaceEntitiesExplorerView.ViewContext- Returns:
Two possible values:
true- The entities explorer widget enables the search feature.false- The entities explorer widget disables the search feature.
-
canCreate
public boolean canCreate()
Description copied from interface:EntitiesExplorerView.ViewContextAllows enabling or disabling the entities creation feature.
- Specified by:
canCreatein interfaceEntitiesExplorerView.ViewContext- Returns:
Two possible values:
true- The entities explorer widget enables the create feature.false- The entities explorer widget disables the create feature.null- The entities explorer widget will determine if create is enabled by using the UserSysteManager API.
-
canRead
public boolean canRead()
Description copied from interface:EntitiesExplorerView.ViewContextAllows enabling or disabling the entities read feature.
- Specified by:
canReadin interfaceEntitiesExplorerView.ViewContext- Returns:
Two possible values:
true- The entities explorer widget enables the read feature.false- The entities explorer widget disables the read feature.
-
canDelete
public boolean canDelete()
Description copied from interface:EntitiesExplorerView.ViewContextAllows enabling or disabling the entities delete feature.
- Specified by:
canDeletein interfaceEntitiesExplorerView.ViewContext- Returns:
Two possible values:
true- The entities explorer widget enables the delete feature.false- The entities explorer widget disables the delete feature.
-
canSelect
public boolean canSelect()
Description copied from interface:EntitiesExplorerView.ViewContextAllows enabling or disabling the entities selection feature.
- Specified by:
canSelectin interfaceEntitiesExplorerView.ViewContext- Returns:
Two possible values:
true- The entities explorer widget enables the selection feature.false- The entities explorer widget disables the selection feature.
-
getSelectedEntities
public Set<String> getSelectedEntities()
Description copied from interface:EntitiesExplorerView.ViewContextIf
canSelect()is enabled, the entity identifiers specified in the collection values will be mark as selected.- Specified by:
getSelectedEntitiesin interfaceEntitiesExplorerView.ViewContext- Returns:
A collection of the selected entity identifiers present in the entities collection returned by
getEntities(),
-
getConstrainedEntities
public Set<String> getConstrainedEntities()
Description copied from interface:EntitiesExplorerView.ViewContextThe entity identifiers that cannot be used.
- Specified by:
getConstrainedEntitiesin interfaceEntitiesExplorerView.ViewContext
-
getParent
public EntitiesExplorerView.ViewContext getParent()
-
setParent
public void setParent(EntitiesExplorerView.ViewContext parent)
-
-