Class GetChildrenCannedQuery
- java.lang.Object
-
- org.alfresco.query.AbstractCannedQuery<R>
-
- org.alfresco.repo.security.permissions.impl.acegi.AbstractCannedQueryPermissions<org.alfresco.service.cmr.repository.NodeRef>
-
- org.alfresco.repo.node.getchildren.GetChildrenCannedQuery
-
- All Implemented Interfaces:
org.alfresco.query.CannedQuery<org.alfresco.service.cmr.repository.NodeRef>
- Direct Known Subclasses:
GetChildrenCannedQuery
public class GetChildrenCannedQuery extends AbstractCannedQueryPermissions<org.alfresco.service.cmr.repository.NodeRef>
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 Classes Modifier and Type Class Description protected classGetChildrenCannedQuery.DefaultFilterSortChildQueryCallbackprotected classGetChildrenCannedQuery.DefaultUnsortedChildQueryCallbackprotected static interfaceGetChildrenCannedQuery.FilterSortChildQueryCallbackprotected classGetChildrenCannedQuery.FilterSortNodeprotected classGetChildrenCannedQuery.FilterSortResultHandlerprotected static interfaceGetChildrenCannedQuery.UnsortedChildQueryCallback
-
Field Summary
Fields Modifier and Type Field Description static org.alfresco.service.namespace.QNameFILTER_QNAME_NODE_IS_PRIMARYstatic intMAX_FILTER_SORT_PROPSprotected org.alfresco.service.cmr.repository.NodeServicenodeServicestatic org.alfresco.service.namespace.QNameSORT_QNAME_CONTENT_MIMETYPEstatic org.alfresco.service.namespace.QNameSORT_QNAME_CONTENT_SIZEstatic org.alfresco.service.namespace.QNameSORT_QNAME_NODE_IS_FOLDERstatic org.alfresco.service.namespace.QNameSORT_QNAME_NODE_TYPE
-
Constructor Summary
Constructors Constructor Description GetChildrenCannedQuery(NodeDAO nodeDAO, QNameDAO qnameDAO, CannedQueryDAO cannedQueryDAO, NodePropertyHelper nodePropertyHelper, org.alfresco.repo.tenant.TenantService tenantService, org.alfresco.service.cmr.repository.NodeService nodeService, MethodSecurityBean<org.alfresco.service.cmr.repository.NodeRef> methodSecurity, org.alfresco.query.CannedQueryParameters params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<org.alfresco.service.cmr.repository.NodeRef>applyPostQueryPermissions(java.util.List<org.alfresco.service.cmr.repository.NodeRef> results, int requestedCount)protected GetChildrenCannedQuery.FilterSortChildQueryCallbackgetFilterSortChildQuery(java.util.List<GetChildrenCannedQuery.FilterSortNode> children, java.util.List<FilterProp> filterProps, GetChildrenCannedQueryParams paramBean)protected GetChildrenCannedQuery.UnsortedChildQueryCallbackgetUnsortedChildQueryCallback(java.util.List<org.alfresco.service.cmr.repository.NodeRef> rawResult, int requestedCount, GetChildrenCannedQueryParams paramBean)protected booleanisApplyPostQueryPermissions()protected booleanisApplyPostQuerySorting()protected java.util.List<org.alfresco.service.cmr.repository.NodeRef>queryAndFilter(org.alfresco.query.CannedQueryParameters parameters)-
Methods inherited from class org.alfresco.repo.security.permissions.impl.acegi.AbstractCannedQueryPermissions
getTotalResultCount
-
-
-
-
Field Detail
-
MAX_FILTER_SORT_PROPS
public static final int MAX_FILTER_SORT_PROPS
- See Also:
- Constant Field Values
-
SORT_QNAME_CONTENT_SIZE
public static final org.alfresco.service.namespace.QName SORT_QNAME_CONTENT_SIZE
-
SORT_QNAME_CONTENT_MIMETYPE
public static final org.alfresco.service.namespace.QName SORT_QNAME_CONTENT_MIMETYPE
-
SORT_QNAME_NODE_TYPE
public static final org.alfresco.service.namespace.QName SORT_QNAME_NODE_TYPE
-
SORT_QNAME_NODE_IS_FOLDER
public static final org.alfresco.service.namespace.QName SORT_QNAME_NODE_IS_FOLDER
-
FILTER_QNAME_NODE_IS_PRIMARY
public static final org.alfresco.service.namespace.QName FILTER_QNAME_NODE_IS_PRIMARY
-
nodeService
protected org.alfresco.service.cmr.repository.NodeService nodeService
-
-
Constructor Detail
-
GetChildrenCannedQuery
public GetChildrenCannedQuery(NodeDAO nodeDAO, QNameDAO qnameDAO, CannedQueryDAO cannedQueryDAO, NodePropertyHelper nodePropertyHelper, org.alfresco.repo.tenant.TenantService tenantService, org.alfresco.service.cmr.repository.NodeService nodeService, MethodSecurityBean<org.alfresco.service.cmr.repository.NodeRef> methodSecurity, org.alfresco.query.CannedQueryParameters params)
-
-
Method Detail
-
getFilterSortChildQuery
protected GetChildrenCannedQuery.FilterSortChildQueryCallback getFilterSortChildQuery(java.util.List<GetChildrenCannedQuery.FilterSortNode> children, java.util.List<FilterProp> filterProps, GetChildrenCannedQueryParams paramBean)
-
getUnsortedChildQueryCallback
protected GetChildrenCannedQuery.UnsortedChildQueryCallback getUnsortedChildQueryCallback(java.util.List<org.alfresco.service.cmr.repository.NodeRef> rawResult, int requestedCount, GetChildrenCannedQueryParams paramBean)
-
queryAndFilter
protected java.util.List<org.alfresco.service.cmr.repository.NodeRef> queryAndFilter(org.alfresco.query.CannedQueryParameters parameters)
- Specified by:
queryAndFilterin classorg.alfresco.query.AbstractCannedQuery<org.alfresco.service.cmr.repository.NodeRef>
-
isApplyPostQuerySorting
protected boolean isApplyPostQuerySorting()
- Overrides:
isApplyPostQuerySortingin classorg.alfresco.query.AbstractCannedQuery<org.alfresco.service.cmr.repository.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<org.alfresco.service.cmr.repository.NodeRef>- Returns:
- true always
-
applyPostQueryPermissions
protected java.util.List<org.alfresco.service.cmr.repository.NodeRef> applyPostQueryPermissions(java.util.List<org.alfresco.service.cmr.repository.NodeRef> results, int requestedCount)- Overrides:
applyPostQueryPermissionsin classAbstractCannedQueryPermissions<org.alfresco.service.cmr.repository.NodeRef>
-
-