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
FieldsModifier and TypeFieldDescriptionprotected CannedQueryDAOstatic final QNamestatic final intprotected NodeDAOprotected NodePropertyHelperprotected NodeServiceprotected QNameDAOprotected static final Stringprotected static final Stringprotected static final Stringstatic final QNamestatic final QNamestatic final QNamestatic final QNameprotected TenantServiceFields inherited from class org.alfresco.query.AbstractCannedQuery
parameters, queryExecutionId -
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) executeQuery(List<FilterProp> filterProps, List<Pair<QName, org.alfresco.query.CannedQuerySortDetails.SortOrder>> sortPairs, FilterSortNodeEntity params, GetChildrenCannedQueryParams paramBean, int filterSortPropCnt) getFilterSortChildQuery(List<GetChildrenCannedQuery.FilterSortNode> children, List<FilterProp> filterProps, GetChildrenCannedQueryParams paramBean) getUnsortedChildQueryCallback(List<NodeRef> rawResult, int requestedCount, GetChildrenCannedQueryParams paramBean) protected booleanprotected 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, createCannedQueryResults, execute, getParameters, isApplyPostQueryPaging, toString
-
Field Details
-
QUERY_NAMESPACE
- See Also:
-
QUERY_SELECT_GET_CHILDREN_WITH_PROPS
- See Also:
-
QUERY_SELECT_GET_CHILDREN_WITHOUT_PROPS
- See Also:
-
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
-
nodeDAO
-
qnameDAO
-
cannedQueryDAO
-
nodePropertyHelper
-
tenantService
-
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>
-
executeQuery
protected List<NodeRef> executeQuery(List<FilterProp> filterProps, List<Pair<QName, org.alfresco.query.CannedQuerySortDetails.SortOrder>> sortPairs, FilterSortNodeEntity params, GetChildrenCannedQueryParams paramBean, int filterSortPropCnt) -
isApplyPostQuerySorting
protected boolean isApplyPostQuerySorting()- Overrides:
isApplyPostQuerySortingin classorg.alfresco.query.AbstractCannedQuery<NodeRef>
-
includeAspects
-
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>
-