Package ch.tocco.nice2.dms.impl.tree.ui
Class AbstractDmsTreeViewProvider
java.lang.Object
ch.tocco.nice2.dms.spi.tree.ui.AbstractContentTreeViewProvider
ch.tocco.nice2.dms.impl.tree.ui.AbstractDmsTreeViewProvider
- All Implemented Interfaces:
EntityTreeViewProvider
- Direct Known Subclasses:
DmsTreeViewProvider,EntityDocTreeViewProvider,FolderTreeViewProvider,PublicDmsTreeViewProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.netui.api.tree.entity.EntityTreeViewProvider
EntityTreeViewProvider.EntityTreeViewProviderDescriptor, EntityTreeViewProvider.Icon, EntityTreeViewProvider.NotInTreeException -
Field Summary
Fields inherited from class ch.tocco.nice2.dms.spi.tree.ui.AbstractContentTreeViewProvider
contentTreeContext, contentTreeService, context, entityTreeNodeFactory, permissionEvaluatorService, queryBuilderFactory -
Constructor Summary
ConstructorsConstructorDescriptionAbstractDmsTreeViewProvider(ContentTreeService contentTreeService, Context context, EntityTreeNodeFactory entityTreeNodeFactory, QueryBuilderFactory queryBuilderFactory, ContentTreeNodePermissionEvaluatorService permissionEvaluatorService) -
Method Summary
Modifier and TypeMethodDescriptionReturns a table containing relations linking entities represented in the tree when creating new entities.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 methodEntityTreeViewProvider.getSearchResult(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 inEntityTreeViewProvider.getCreateRelationMap().voidsetDocumentMimeTypes(List<DocumentMimeTypeContribution> documentMimeTypes) voidsetNodeIcons(List<NodeIconContribution> nodeIcons) Methods inherited from class ch.tocco.nice2.dms.spi.tree.ui.AbstractContentTreeViewProvider
getChildren, getPath, getRoot, getRootChildren, getRootChildrenQuery, getSearchResult, getTreeNode, moveAbove, moveBelow, moveIntoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.tocco.nice2.netui.api.tree.entity.EntityTreeViewProvider
getDescriptor
-
Constructor Details
-
AbstractDmsTreeViewProvider
public AbstractDmsTreeViewProvider(ContentTreeService contentTreeService, Context context, EntityTreeNodeFactory entityTreeNodeFactory, QueryBuilderFactory queryBuilderFactory, ContentTreeNodePermissionEvaluatorService permissionEvaluatorService)
-
-
Method Details
-
getTreeConfig
Description copied from interface:EntityTreeViewProviderAllowed 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 methodEntityTreeViewProvider.getSearchResult(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 inEntityTreeViewProvider.getCreateRelationMap().
- Specified by:
getTreeConfigin interfaceEntityTreeViewProvider- Overrides:
getTreeConfigin classAbstractContentTreeViewProvider- Returns:
- a map containing additional settings for the DwrTreePanel
-
getIconMap
-
getCreateRelationMap
Description copied from interface:EntityTreeViewProviderReturns 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
-
setNodeIcons
-
setDocumentMimeTypes
-