Interface EntityTreeViewProvider
- All Known Implementing Classes:
AbstractContentTreeViewProvider,AbstractDmsTreeViewProvider,CmsTreeViewProvider,DmsTreeViewProvider,EntityDocTreeViewProvider,FolderTreeViewProvider,NewsletterTreeViewProvider,PersonalFolderTreeViewProvider,PublicDmsTreeViewProvider
Deprecated.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classDeprecated.static classDeprecated.static classDeprecated. -
Method Summary
Modifier and TypeMethodDescriptiongetChildren(Entity entity) Deprecated.Deprecated.Returns a table containing relations linking entities represented in the tree when creating new entities.Deprecated.Deprecated.Deprecated.Load all parents of the passed entity into a list@Nullable EntityTreeNodegetRoot()Deprecated.getRootChildren(TreeContext treeContext) Deprecated.getSearchResult(Entity entity) Deprecated.Remote method for click event on tree nodes which cannot be displayed in the current entity explorerDeprecated.Allowed config properties are those ofExt.TreePaneland 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) Deprecated.Get a tree node for a specific entity.voidDeprecated.voidDeprecated.voidDeprecated.
-
Method Details
-
getDescriptor
EntityTreeViewProvider.EntityTreeViewProviderDescriptor getDescriptor()Deprecated. -
getRoot
Deprecated.- Returns:
- the root tree node, when opening the module
-
getChildren
Deprecated.- Parameters:
entity- reference entity- Returns:
- a list of
EntityTreeNoderepresenting the children for the passed entity - Throws:
TreeModelException
-
getRootChildren
Deprecated.- Returns:
- a list of
EntityTreeNoderepresenting the children for the root tree node - Throws:
TreeModelException
-
getPath
Deprecated.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
entityitself - Throws:
EntityTreeViewProvider.NotInTreeException
-
getSearchResult
Deprecated.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
Deprecated.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
Deprecated.Allowed config properties are those ofExt.TreePaneland 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()Deprecated. -
getCreateRelationMap
Deprecated.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
Deprecated.- Throws:
TreeModelException
-
moveAbove
Deprecated.- Throws:
TreeModelException
-
moveBelow
Deprecated.- Throws:
TreeModelException
-