Class GetChildrenCannedQuery
java.lang.Object
org.alfresco.query.AbstractCannedQuery<R>
org.alfresco.repo.security.permissions.impl.acegi.AbstractCannedQueryPermissions<NodeRef>
org.alfresco.repo.node.getchildren.GetChildrenCannedQuery
- All Implemented Interfaces:
org.alfresco.query.CannedQuery<NodeRef>
- Direct Known Subclasses:
GetChildrenCannedQuery
GetChildren canned query
To get paged list of children of a parent node filtered by child type.
Also optionally filtered and/or sorted by one or more properties (up to three).
- Since:
- 4.0
- Author:
- janv
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected classprotected static interfaceprotected classprotected classprotected static interface -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGetChildrenCannedQuery(NodeDAO nodeDAO, QNameDAO qnameDAO, CannedQueryDAO cannedQueryDAO, NodePropertyHelper nodePropertyHelper, TenantService tenantService, NodeService nodeService, MethodSecurityBean<NodeRef> methodSecurity, org.alfresco.query.CannedQueryParameters params) -
Method Summary
Modifier and TypeMethodDescriptionapplyPostQueryPermissions(List<NodeRef> results, int requestedCount) getFilterSortChildQuery(List<GetChildrenCannedQuery.FilterSortNode> children, List<FilterProp> filterProps, GetChildrenCannedQueryParams paramBean) getUnsortedChildQueryCallback(List<NodeRef> rawResult, int requestedCount, GetChildrenCannedQueryParams paramBean) protected booleanprotected booleanqueryAndFilter(org.alfresco.query.CannedQueryParameters parameters) Methods inherited from class org.alfresco.repo.security.permissions.impl.acegi.AbstractCannedQueryPermissions
getTotalResultCountMethods inherited from class org.alfresco.query.AbstractCannedQuery
applyPostQueryPaging, applyPostQuerySorting, execute, getParameters, isApplyPostQueryPaging, toString
-
Field Details
-
MAX_FILTER_SORT_PROPS
public static final int MAX_FILTER_SORT_PROPS- See Also:
-
SORT_QNAME_CONTENT_SIZE
-
SORT_QNAME_CONTENT_MIMETYPE
-
SORT_QNAME_NODE_TYPE
-
SORT_QNAME_NODE_IS_FOLDER
-
FILTER_QNAME_NODE_IS_PRIMARY
-
nodeService
-
-
Constructor Details
-
GetChildrenCannedQuery
public GetChildrenCannedQuery(NodeDAO nodeDAO, QNameDAO qnameDAO, CannedQueryDAO cannedQueryDAO, NodePropertyHelper nodePropertyHelper, TenantService tenantService, NodeService nodeService, MethodSecurityBean<NodeRef> methodSecurity, org.alfresco.query.CannedQueryParameters params)
-
-
Method Details
-
getFilterSortChildQuery
protected GetChildrenCannedQuery.FilterSortChildQueryCallback getFilterSortChildQuery(List<GetChildrenCannedQuery.FilterSortNode> children, List<FilterProp> filterProps, GetChildrenCannedQueryParams paramBean) -
getUnsortedChildQueryCallback
protected GetChildrenCannedQuery.UnsortedChildQueryCallback getUnsortedChildQueryCallback(List<NodeRef> rawResult, int requestedCount, GetChildrenCannedQueryParams paramBean) -
queryAndFilter
- Specified by:
queryAndFilterin classorg.alfresco.query.AbstractCannedQuery<NodeRef>
-
isApplyPostQuerySorting
protected boolean isApplyPostQuerySorting()- Overrides:
isApplyPostQuerySortingin classorg.alfresco.query.AbstractCannedQuery<NodeRef>
-
isApplyPostQueryPermissions
protected boolean isApplyPostQueryPermissions()Description copied from class:AbstractCannedQueryPermissionsBy default, the is a permission checking class. Override the method if you wish to switch the behaviour at runtime.- Overrides:
isApplyPostQueryPermissionsin classAbstractCannedQueryPermissions<NodeRef>- Returns:
- true always
-
applyPostQueryPermissions
- Overrides:
applyPostQueryPermissionsin classAbstractCannedQueryPermissions<NodeRef>
-