Package ch.tocco.nice2.dms.api.tree
Interface ChildOfConditionService
- All Known Implementing Classes:
ChildOfConditionServiceImpl
public interface ChildOfConditionService
Builds the child-of condition to add to the where clause of a query.
If a child entity model requires special handling, its own ChildOfConditionBuilder can be
implemented and added to the contribution 'nice2.dms.ChildOfConditionBuilders'.
Example usage (find all resources below the parentNode recursively):
EntityList children = queryBuilderFactory.find("Resource")
.where(childOfConditionService.buildChildOfCondition(parentNode, queryBuilder.getModel()));
.build(context).execute();
-
Method Summary
Modifier and TypeMethodDescriptionbuildChildOfCondition
(ContentTreeNode parentNode, EntityModel childEntityModel)
-
Method Details
-
buildChildOfCondition
-