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 and Description |
---|
ExplorerViewContext() |
Modifier and Type | Method and Description |
---|---|
boolean |
canCreate()
Allows enabling or disabling the entities creation feature.
|
boolean |
canDelete()
Allows enabling or disabling the entities delete feature.
|
boolean |
canRead()
Allows enabling or disabling the entities read feature.
|
boolean |
canSearch()
Allows enabling or disabling the entities search feature.
|
boolean |
canSelect()
Allows enabling or disabling the entities selection feature.
|
Set<String> |
getConstrainedEntities()
The entity identifiers that cannot be used.
|
EntitiesExplorerView.ViewContext |
getParent() |
Set<String> |
getSelectedEntities()
If
canSelect() is enabled, the entity identifiers specified in the collection values will be mark as selected. |
void |
setParent(EntitiesExplorerView.ViewContext parent) |
public boolean canSearch()
EntitiesExplorerView.ViewContext
Allows enabling or disabling the entities search feature.
canSearch
in interface EntitiesExplorerView.ViewContext
Two possible values:
true
- The entities explorer widget enables the search feature.false
- The entities explorer widget disables the search feature.public boolean canCreate()
EntitiesExplorerView.ViewContext
Allows enabling or disabling the entities creation feature.
canCreate
in interface EntitiesExplorerView.ViewContext
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.public boolean canRead()
EntitiesExplorerView.ViewContext
Allows enabling or disabling the entities read feature.
canRead
in interface EntitiesExplorerView.ViewContext
Two possible values:
true
- The entities explorer widget enables the read feature.false
- The entities explorer widget disables the read feature.public boolean canDelete()
EntitiesExplorerView.ViewContext
Allows enabling or disabling the entities delete feature.
canDelete
in interface EntitiesExplorerView.ViewContext
Two possible values:
true
- The entities explorer widget enables the delete feature.false
- The entities explorer widget disables the delete feature.public boolean canSelect()
EntitiesExplorerView.ViewContext
Allows enabling or disabling the entities selection feature.
canSelect
in interface EntitiesExplorerView.ViewContext
Two possible values:
true
- The entities explorer widget enables the selection feature.false
- The entities explorer widget disables the selection feature.public Set<String> getSelectedEntities()
EntitiesExplorerView.ViewContext
If canSelect()
is enabled, the entity identifiers specified in the collection values will be mark as selected.
getSelectedEntities
in interface EntitiesExplorerView.ViewContext
A collection of the selected entity identifiers present in the entities collection returned by getEntities()
,
public Set<String> getConstrainedEntities()
EntitiesExplorerView.ViewContext
The entity identifiers that cannot be used.
getConstrainedEntities
in interface EntitiesExplorerView.ViewContext
public EntitiesExplorerView.ViewContext getParent()
public void setParent(EntitiesExplorerView.ViewContext parent)
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.