Class DbSortingGetChildrenCannedQuery
java.lang.Object
org.alfresco.query.AbstractCannedQuery<NodeRef>
org.alfresco.repo.security.permissions.impl.acegi.AbstractCannedQueryPermissions<NodeRef>
org.alfresco.repo.node.getchildren.GetChildrenCannedQuery
org.alfresco.repo.model.filefolder.GetChildrenCannedQuery
org.alfresco.repo.model.filefolder.DbSortingGetChildrenCannedQuery
- All Implemented Interfaces:
org.alfresco.query.CannedQuery<NodeRef>
GetChildren canned query that performs sorting in the database.
This query handles the specific case of default sorting (folders first descending, name ascending).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classNested classes/interfaces inherited from class org.alfresco.repo.node.getchildren.GetChildrenCannedQuery
GetChildrenCannedQuery.DefaultFilterSortChildQueryCallback, GetChildrenCannedQuery.DefaultUnsortedChildQueryCallback, GetChildrenCannedQuery.FilterSortChildQueryCallback, GetChildrenCannedQuery.FilterSortNode, GetChildrenCannedQuery.FilterSortResultHandler, GetChildrenCannedQuery.UnsortedChildQueryCallback -
Field Summary
Fields inherited from class org.alfresco.repo.node.getchildren.GetChildrenCannedQuery
cannedQueryDAO, FILTER_QNAME_NODE_IS_PRIMARY, MAX_FILTER_SORT_PROPS, nodeDAO, nodePropertyHelper, qnameDAO, QUERY_NAMESPACE, QUERY_SELECT_GET_CHILDREN_WITH_PROPS, QUERY_SELECT_GET_CHILDREN_WITHOUT_PROPS, SORT_QNAME_CONTENT_MIMETYPE, SORT_QNAME_CONTENT_SIZE, SORT_QNAME_NODE_IS_FOLDER, SORT_QNAME_NODE_TYPE, tenantServiceFields inherited from class org.alfresco.query.AbstractCannedQuery
parameters, queryExecutionId -
Constructor Summary
ConstructorsConstructorDescriptionDbSortingGetChildrenCannedQuery(NodeDAO nodeDAO, QNameDAO qnameDAO, CannedQueryDAO cannedQueryDAO, NodePropertyHelper nodePropertyHelper, TenantService tenantService, NodeService nodeService, MethodSecurityBean<NodeRef> methodSecurity, org.alfresco.query.CannedQueryParameters params, HiddenAspect hiddenAspect, DictionaryService dictionaryService, Set<QName> ignoreAspectQNames) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.alfresco.query.CannedQueryResults<NodeRef> executeQuery(List<FilterProp> filterProps, List<Pair<QName, org.alfresco.query.CannedQuerySortDetails.SortOrder>> sortPairs, FilterSortNodeEntity params, GetChildrenCannedQueryParams paramBean, int filterSortPropCnt) protected booleanprotected booleanMethods inherited from class org.alfresco.repo.model.filefolder.GetChildrenCannedQuery
getFilterSortChildQuery, getUnsortedChildQueryCallback, includeImplMethods inherited from class org.alfresco.repo.node.getchildren.GetChildrenCannedQuery
applyPostQueryPermissions, includeAspects, isApplyPostQuerySorting, queryAndFilterMethods inherited from class org.alfresco.repo.security.permissions.impl.acegi.AbstractCannedQueryPermissions
getTotalResultCountMethods inherited from class org.alfresco.query.AbstractCannedQuery
applyPostQueryPaging, applyPostQuerySorting, execute, getParameters, toString
-
Constructor Details
-
DbSortingGetChildrenCannedQuery
public DbSortingGetChildrenCannedQuery(NodeDAO nodeDAO, QNameDAO qnameDAO, CannedQueryDAO cannedQueryDAO, NodePropertyHelper nodePropertyHelper, TenantService tenantService, NodeService nodeService, MethodSecurityBean<NodeRef> methodSecurity, org.alfresco.query.CannedQueryParameters params, HiddenAspect hiddenAspect, DictionaryService dictionaryService, Set<QName> ignoreAspectQNames)
-
-
Method Details
-
executeQuery
protected List<NodeRef> executeQuery(List<FilterProp> filterProps, List<Pair<QName, org.alfresco.query.CannedQuerySortDetails.SortOrder>> sortPairs, FilterSortNodeEntity params, GetChildrenCannedQueryParams paramBean, int filterSortPropCnt) - Overrides:
executeQueryin classGetChildrenCannedQuery
-
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 classGetChildrenCannedQuery- Returns:
- true always
-
isApplyPostQueryPaging
protected boolean isApplyPostQueryPaging()- Overrides:
isApplyPostQueryPagingin classorg.alfresco.query.AbstractCannedQuery<NodeRef>
-
createCannedQueryResults
protected org.alfresco.query.CannedQueryResults<NodeRef> createCannedQueryResults(List<List<NodeRef>> finalPages, List<NodeRef> rawResults) - Overrides:
createCannedQueryResultsin classorg.alfresco.query.AbstractCannedQuery<NodeRef>
-