Interface EntityTreeViewProvider
- All Known Implementing Classes:
AbstractContentTreeViewProvider
,AbstractDmsTreeViewProvider
,CmsTreeViewProvider
,DmsTreeViewProvider
,EntityDocTreeViewProvider
,FolderTreeViewProvider
,NewsletterTreeViewProvider
,PersonalFolderTreeViewProvider
,PublicDmsTreeViewProvider
public interface EntityTreeViewProvider
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static class
static class
-
Method Summary
Modifier and TypeMethodDescriptiongetChildren
(Entity entity) Returns a table containing relations linking entities represented in the tree when creating new entities.Load all parents of the passed entity into a list@Nullable EntityTreeNode
getRoot()
getRootChildren
(TreeContext treeContext) getSearchResult
(Entity entity) Remote method for click event on tree nodes which cannot be displayed in the current entity explorerAllowed config properties are those ofExt.TreePanel
and additionally the following:openAsRoot
:[ true | false ]
set opened entity as root of the treedataRegistry
: Map with dataregistry settings (optional):enabled
: true / falseentityModels
: Array of Strings containing names of entity models to be tracked by dataregistrysearchByRelation
: the methodgetSearchResult(ch.tocco.nice2.persist.core.api.entity.Entity)
is never used, it is rather searched by using related-by queries according to the relations between the involved entities as specified ingetCreateRelationMap()
.getTreeNode
(Entity entity) Get a tree node for a specific entity.void
void
void
-
Method Details
-
getDescriptor
EntityTreeViewProvider.EntityTreeViewProviderDescriptor getDescriptor() -
getRoot
- Returns:
- the root tree node, when opening the module
-
getChildren
- Parameters:
entity
- reference entity- Returns:
- a list of
EntityTreeNode
representing the children for the passed entity - Throws:
TreeModelException
-
getRootChildren
- Returns:
- a list of
EntityTreeNode
representing the children for the root tree node - Throws:
TreeModelException
-
getPath
Load all parents of the passed entity into a list- Parameters:
entity
- leaf entity- Returns:
- a list of entities representing the path from the root entity to the
entity
itself - Throws:
EntityTreeViewProvider.NotInTreeException
-
getSearchResult
Remote method for click event on tree nodes which cannot be displayed in the current entity explorer- Parameters:
entity
- the entity contained in the tree node that fired the event- Returns:
- a list of entities that should be displayed in the default list form (could be of any model, only displaying entities of the current module)
- Throws:
TreeModelException
-
getTreeNode
Get a tree node for a specific entity. This method is called, when new values may be available and the node needs to be reloaded- Parameters:
entity
- the reference entity- Returns:
- representing
EntityTreeNode
- Throws:
TreeModelException
-
getTreeConfig
Allowed config properties are those ofExt.TreePanel
and additionally the following:openAsRoot
:[ true | false ]
set opened entity as root of the treedataRegistry
: Map with dataregistry settings (optional):enabled
: true / falseentityModels
: Array of Strings containing names of entity models to be tracked by dataregistry
-
searchByRelation
: the methodgetSearchResult(ch.tocco.nice2.persist.core.api.entity.Entity)
is never used, it is rather searched by using related-by queries according to the relations between the involved entities as specified ingetCreateRelationMap()
.
- Returns:
- a map containing additional settings for the DwrTreePanel
-
getIconMap
Map<String,EntityTreeViewProvider.Icon> getIconMap() -
getCreateRelationMap
Returns a table containing relations linking entities represented in the tree when creating new entities.{entity_to_be_created: { entity_selected_in_tree: "relation from entity_selected_in_tree to entity_to_be_created" } }
If there's no entry in the table for a specific combination, there is no relation filled in the create form.- Returns:
- create relation table
-
moveInto
- Throws:
TreeModelException
-
moveAbove
- Throws:
TreeModelException
-
moveBelow
- Throws:
TreeModelException
-