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:
CannedQuery<NodeRef>
- Direct Known Subclasses:
GetChildrenCannedQuery
public class GetChildrenCannedQuery extends AbstractCannedQueryPermissions<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 QNameFILTER_QNAME_NODE_IS_PRIMARYstatic intMAX_FILTER_SORT_PROPSprotected NodeServicenodeServicestatic QNameSORT_QNAME_CONTENT_MIMETYPEstatic QNameSORT_QNAME_CONTENT_SIZEstatic QNameSORT_QNAME_NODE_IS_FOLDERstatic QNameSORT_QNAME_NODE_TYPE
-
Constructor Summary
Constructors Constructor Description GetChildrenCannedQuery(NodeDAO nodeDAO, QNameDAO qnameDAO, CannedQueryDAO cannedQueryDAO, NodePropertyHelper nodePropertyHelper, TenantService tenantService, NodeService nodeService, MethodSecurityBean<NodeRef> methodSecurity, CannedQueryParameters params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<NodeRef>applyPostQueryPermissions(List<NodeRef> results, int requestedCount)protected GetChildrenCannedQuery.FilterSortChildQueryCallbackgetFilterSortChildQuery(List<GetChildrenCannedQuery.FilterSortNode> children, List<FilterProp> filterProps, GetChildrenCannedQueryParams paramBean)protected GetChildrenCannedQuery.UnsortedChildQueryCallbackgetUnsortedChildQueryCallback(List<NodeRef> rawResult, int requestedCount, GetChildrenCannedQueryParams paramBean)protected booleanisApplyPostQueryPermissions()protected booleanisApplyPostQuerySorting()protected List<NodeRef>queryAndFilter(CannedQueryParameters parameters)-
Methods inherited from class org.alfresco.repo.security.permissions.impl.acegi.AbstractCannedQueryPermissions
getTotalResultCount
-
Methods inherited from class org.alfresco.query.AbstractCannedQuery
applyPostQueryPaging, applyPostQuerySorting, execute, getParameters, isApplyPostQueryPaging, toString
-
-
-
-
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 QName SORT_QNAME_CONTENT_SIZE
-
SORT_QNAME_CONTENT_MIMETYPE
public static final QName SORT_QNAME_CONTENT_MIMETYPE
-
SORT_QNAME_NODE_TYPE
public static final QName SORT_QNAME_NODE_TYPE
-
SORT_QNAME_NODE_IS_FOLDER
public static final QName SORT_QNAME_NODE_IS_FOLDER
-
FILTER_QNAME_NODE_IS_PRIMARY
public static final QName FILTER_QNAME_NODE_IS_PRIMARY
-
nodeService
protected NodeService nodeService
-
-
Constructor Detail
-
GetChildrenCannedQuery
public GetChildrenCannedQuery(NodeDAO nodeDAO, QNameDAO qnameDAO, CannedQueryDAO cannedQueryDAO, NodePropertyHelper nodePropertyHelper, TenantService tenantService, NodeService nodeService, MethodSecurityBean<NodeRef> methodSecurity, CannedQueryParameters params)
-
-
Method Detail
-
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
protected List<NodeRef> queryAndFilter(CannedQueryParameters parameters)
- Specified by:
queryAndFilterin classAbstractCannedQuery<NodeRef>
-
isApplyPostQuerySorting
protected boolean isApplyPostQuerySorting()
- Overrides:
isApplyPostQuerySortingin classAbstractCannedQuery<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
protected List<NodeRef> applyPostQueryPermissions(List<NodeRef> results, int requestedCount)
- Overrides:
applyPostQueryPermissionsin classAbstractCannedQueryPermissions<NodeRef>
-
-