Class NewsletterTreeViewProvider
java.lang.Object
ch.tocco.nice2.dms.spi.tree.ui.AbstractContentTreeViewProvider
ch.tocco.nice2.optional.newsletter.impl.tree.NewsletterTreeViewProvider
- All Implemented Interfaces:
EntityTreeViewProvider
-
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
ConstructorDescriptionNewsletterTreeViewProvider
(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.protected QueryBuilder
getRootChildrenQuery
(TreeContext treeContext) 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 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()
.Methods inherited from class ch.tocco.nice2.dms.spi.tree.ui.AbstractContentTreeViewProvider
getChildren, getPath, getRoot, getRootChildren, getSearchResult, getTreeNode, moveAbove, moveBelow, moveInto
-
Constructor Details
-
NewsletterTreeViewProvider
public NewsletterTreeViewProvider(ContentTreeService contentTreeService, Context context, EntityTreeNodeFactory entityTreeNodeFactory, QueryBuilderFactory queryBuilderFactory, ContentTreeNodePermissionEvaluatorService permissionEvaluatorService)
-
-
Method Details
-
getIconMap
-
getDescriptor
-
getTreeConfig
Description copied from interface:EntityTreeViewProvider
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 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:
getTreeConfig
in interfaceEntityTreeViewProvider
- Overrides:
getTreeConfig
in classAbstractContentTreeViewProvider
- Returns:
- a map containing additional settings for the DwrTreePanel
-
getCreateRelationMap
Description copied from interface:EntityTreeViewProvider
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
-
getRootChildrenQuery
- Overrides:
getRootChildrenQuery
in classAbstractContentTreeViewProvider
- Throws:
PersistException
-