Class GetChildrenCannedQueryFactory
java.lang.Object
org.alfresco.query.AbstractCannedQueryFactory<NodeRef>
org.alfresco.repo.node.getchildren.GetChildrenCannedQueryFactory
- All Implemented Interfaces:
org.alfresco.query.CannedQueryFactory<NodeRef>,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
GetChildrenCannedQueryFactory
public class GetChildrenCannedQueryFactory
extends org.alfresco.query.AbstractCannedQueryFactory<NodeRef>
GetChildren canned query factory - to get paged list of children of a parent node
- Since:
- 4.0
- Author:
- janv
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CannedQueryDAOprotected ContentDataDAOprotected DictionaryServiceprotected LocaleDAOprotected MethodSecurityBean<NodeRef>protected NodeDAOprotected NodeServiceprotected QNameDAOprotected TenantService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.alfresco.query.CannedQuery<NodeRef>getCannedQuery(org.alfresco.query.CannedQueryParameters parameters) org.alfresco.query.CannedQuery<NodeRef>getCannedQuery(NodeRef parentRef, String pattern, Set<QName> assocTypeQNames, Set<QName> childTypeQNames, List<FilterProp> filterProps, List<Pair<QName, Boolean>> sortProps, org.alfresco.query.PagingRequest pagingRequest) Retrieve an optionally filtered/sorted instance of aCannedQuerybased on parameters including request for a total count (up to a given max) Note: if both filtering and sorting is required then the combined total of unique QName properties should be the 0 to 3.org.alfresco.query.CannedQuery<NodeRef>getCannedQuery(NodeRef parentRef, String pattern, Set<QName> assocTypeQNames, Set<QName> childTypeQNames, Set<QName> inclusiveAspects, Set<QName> exclusiveAspects, List<FilterProp> filterProps, List<Pair<QName, Boolean>> sortProps, org.alfresco.query.PagingRequest pagingRequest) Retrieve an optionally filtered/sorted instance of aCannedQuerybased on parameters including request for a total count (up to a given max) Note: if both filtering and sorting is required then the combined total of unique QName properties should be the 0 to 3.org.alfresco.query.CannedQuery<NodeRef>getCannedQuery(NodeRef parentRef, String pattern, Set<QName> assocTypeQNames, Set<QName> childTypeQNames, org.alfresco.query.PagingRequest pagingRequest) Retrieve an unsorted instance of aCannedQuerybased on parameters including request for a total count (up to a given max)voidsetCannedQueryDAO(CannedQueryDAO cannedQueryDAO) voidsetContentDataDAO(ContentDataDAO contentDataDAO) voidsetDictionaryService(DictionaryService dictionaryService) voidsetLocaleDAO(LocaleDAO localeDAO) voidsetMethodSecurity(MethodSecurityBean<NodeRef> methodSecurity) voidsetNodeDAO(NodeDAO nodeDAO) voidsetNodeService(NodeService nodeService) voidsetQnameDAO(QNameDAO qnameDAO) voidsetTenantService(TenantService tenantService) Methods inherited from class org.alfresco.query.AbstractCannedQueryFactory
getCannedQuery, getQueryExecutionId, setBeanName, setRegistry
-
Field Details
-
dictionaryService
-
nodeDAO
-
qnameDAO
-
localeDAO
-
contentDataDAO
-
cannedQueryDAO
-
tenantService
-
nodeService
-
methodSecurity
-
-
Constructor Details
-
GetChildrenCannedQueryFactory
public GetChildrenCannedQueryFactory()
-
-
Method Details
-
setDictionaryService
-
setNodeDAO
-
setQnameDAO
-
setLocaleDAO
-
setContentDataDAO
-
setCannedQueryDAO
-
setTenantService
-
setNodeService
-
setMethodSecurity
-
getCannedQuery
public org.alfresco.query.CannedQuery<NodeRef> getCannedQuery(org.alfresco.query.CannedQueryParameters parameters) -
getCannedQuery
public org.alfresco.query.CannedQuery<NodeRef> getCannedQuery(NodeRef parentRef, String pattern, Set<QName> assocTypeQNames, Set<QName> childTypeQNames, List<FilterProp> filterProps, List<Pair<QName, Boolean>> sortProps, org.alfresco.query.PagingRequest pagingRequest) Retrieve an optionally filtered/sorted instance of aCannedQuerybased on parameters including request for a total count (up to a given max) Note: if both filtering and sorting is required then the combined total of unique QName properties should be the 0 to 3.- Parameters:
parentRef- parent node refpattern- the pattern to use to filter children (wildcard character is '*')assocTypeQNames- qnames of assocs to include (may be null)childTypeQNames- type qnames of children nodes (pre-filter)filterProps- filter propertiessortProps- sort property pairs (QName and Boolean - true if ascending)pagingRequest- skipCount, maxItems - optionally queryExecutionId and requestTotalCountMax- Returns:
- an implementation that will execute the query
-
getCannedQuery
public org.alfresco.query.CannedQuery<NodeRef> getCannedQuery(NodeRef parentRef, String pattern, Set<QName> assocTypeQNames, Set<QName> childTypeQNames, Set<QName> inclusiveAspects, Set<QName> exclusiveAspects, List<FilterProp> filterProps, List<Pair<QName, Boolean>> sortProps, org.alfresco.query.PagingRequest pagingRequest) Retrieve an optionally filtered/sorted instance of aCannedQuerybased on parameters including request for a total count (up to a given max) Note: if both filtering and sorting is required then the combined total of unique QName properties should be the 0 to 3.- Parameters:
parentRef- parent node refpattern- the pattern to use to filter children (wildcard character is '*')assocTypeQNames- qnames of assocs to include (may be null)childTypeQNames- type qnames of children nodes (pre-filter)inclusiveAspects- If not null, only child nodes with any aspect in this collection will be included in the results.exclusiveAspects- If not null, any child nodes with any aspect in this collection will be excluded in the results.filterProps- filter propertiessortProps- sort property pairs (QName and Boolean - true if ascending)pagingRequest- skipCount, maxItems - optionally queryExecutionId and requestTotalCountMax- Returns:
- an implementation that will execute the query
-
getCannedQuery
public org.alfresco.query.CannedQuery<NodeRef> getCannedQuery(NodeRef parentRef, String pattern, Set<QName> assocTypeQNames, Set<QName> childTypeQNames, org.alfresco.query.PagingRequest pagingRequest) Retrieve an unsorted instance of aCannedQuerybased on parameters including request for a total count (up to a given max)- Parameters:
parentRef- parent node refpattern- the pattern to use to filter children (wildcard character is '*')assocTypeQNames- qnames of assocs to include (may be null)childTypeQNames- type qnames of children nodespagingRequest- skipCount, maxItems - optionally queryExecutionId and requestTotalCountMax- Returns:
- an implementation that will execute the query
-
afterPropertiesSet
-