Class GetChildrenCannedQueryFactory
- java.lang.Object
-
- org.alfresco.query.AbstractCannedQueryFactory<org.alfresco.service.cmr.repository.NodeRef>
-
- org.alfresco.repo.node.getchildren.GetChildrenCannedQueryFactory
-
- All Implemented Interfaces:
org.alfresco.query.CannedQueryFactory<org.alfresco.service.cmr.repository.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<org.alfresco.service.cmr.repository.NodeRef>GetChildren canned query factory - to get paged list of children of a parent node- Since:
- 4.0
- Author:
- janv
-
-
Field Summary
Fields Modifier and Type Field Description protected CannedQueryDAOcannedQueryDAOprotected ContentDataDAOcontentDataDAOprotected org.alfresco.service.cmr.dictionary.DictionaryServicedictionaryServiceprotected LocaleDAOlocaleDAOprotected MethodSecurityBean<org.alfresco.service.cmr.repository.NodeRef>methodSecurityprotected NodeDAOnodeDAOprotected org.alfresco.service.cmr.repository.NodeServicenodeServiceprotected QNameDAOqnameDAOprotected org.alfresco.repo.tenant.TenantServicetenantService
-
Constructor Summary
Constructors Constructor Description GetChildrenCannedQueryFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()org.alfresco.query.CannedQuery<org.alfresco.service.cmr.repository.NodeRef>getCannedQuery(org.alfresco.query.CannedQueryParameters parameters)org.alfresco.query.CannedQuery<org.alfresco.service.cmr.repository.NodeRef>getCannedQuery(org.alfresco.service.cmr.repository.NodeRef parentRef, java.lang.String pattern, java.util.Set<org.alfresco.service.namespace.QName> assocTypeQNames, java.util.Set<org.alfresco.service.namespace.QName> childTypeQNames, java.util.List<FilterProp> filterProps, java.util.List<org.alfresco.util.Pair<org.alfresco.service.namespace.QName,java.lang.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<org.alfresco.service.cmr.repository.NodeRef>getCannedQuery(org.alfresco.service.cmr.repository.NodeRef parentRef, java.lang.String pattern, java.util.Set<org.alfresco.service.namespace.QName> assocTypeQNames, java.util.Set<org.alfresco.service.namespace.QName> childTypeQNames, java.util.Set<org.alfresco.service.namespace.QName> inclusiveAspects, java.util.Set<org.alfresco.service.namespace.QName> exclusiveAspects, java.util.List<FilterProp> filterProps, java.util.List<org.alfresco.util.Pair<org.alfresco.service.namespace.QName,java.lang.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<org.alfresco.service.cmr.repository.NodeRef>getCannedQuery(org.alfresco.service.cmr.repository.NodeRef parentRef, java.lang.String pattern, java.util.Set<org.alfresco.service.namespace.QName> assocTypeQNames, java.util.Set<org.alfresco.service.namespace.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(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)voidsetLocaleDAO(LocaleDAO localeDAO)voidsetMethodSecurity(MethodSecurityBean<org.alfresco.service.cmr.repository.NodeRef> methodSecurity)voidsetNodeDAO(NodeDAO nodeDAO)voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)voidsetQnameDAO(QNameDAO qnameDAO)voidsetTenantService(org.alfresco.repo.tenant.TenantService tenantService)
-
-
-
Field Detail
-
dictionaryService
protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
-
nodeDAO
protected NodeDAO nodeDAO
-
qnameDAO
protected QNameDAO qnameDAO
-
localeDAO
protected LocaleDAO localeDAO
-
contentDataDAO
protected ContentDataDAO contentDataDAO
-
cannedQueryDAO
protected CannedQueryDAO cannedQueryDAO
-
tenantService
protected org.alfresco.repo.tenant.TenantService tenantService
-
nodeService
protected org.alfresco.service.cmr.repository.NodeService nodeService
-
methodSecurity
protected MethodSecurityBean<org.alfresco.service.cmr.repository.NodeRef> methodSecurity
-
-
Method Detail
-
setDictionaryService
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
-
setNodeDAO
public void setNodeDAO(NodeDAO nodeDAO)
-
setQnameDAO
public void setQnameDAO(QNameDAO qnameDAO)
-
setLocaleDAO
public void setLocaleDAO(LocaleDAO localeDAO)
-
setContentDataDAO
public void setContentDataDAO(ContentDataDAO contentDataDAO)
-
setCannedQueryDAO
public void setCannedQueryDAO(CannedQueryDAO cannedQueryDAO)
-
setTenantService
public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
-
setMethodSecurity
public void setMethodSecurity(MethodSecurityBean<org.alfresco.service.cmr.repository.NodeRef> methodSecurity)
-
getCannedQuery
public org.alfresco.query.CannedQuery<org.alfresco.service.cmr.repository.NodeRef> getCannedQuery(org.alfresco.query.CannedQueryParameters parameters)
-
getCannedQuery
public org.alfresco.query.CannedQuery<org.alfresco.service.cmr.repository.NodeRef> getCannedQuery(org.alfresco.service.cmr.repository.NodeRef parentRef, java.lang.String pattern, java.util.Set<org.alfresco.service.namespace.QName> assocTypeQNames, java.util.Set<org.alfresco.service.namespace.QName> childTypeQNames, java.util.List<FilterProp> filterProps, java.util.List<org.alfresco.util.Pair<org.alfresco.service.namespace.QName,java.lang.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<org.alfresco.service.cmr.repository.NodeRef> getCannedQuery(org.alfresco.service.cmr.repository.NodeRef parentRef, java.lang.String pattern, java.util.Set<org.alfresco.service.namespace.QName> assocTypeQNames, java.util.Set<org.alfresco.service.namespace.QName> childTypeQNames, java.util.Set<org.alfresco.service.namespace.QName> inclusiveAspects, java.util.Set<org.alfresco.service.namespace.QName> exclusiveAspects, java.util.List<FilterProp> filterProps, java.util.List<org.alfresco.util.Pair<org.alfresco.service.namespace.QName,java.lang.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<org.alfresco.service.cmr.repository.NodeRef> getCannedQuery(org.alfresco.service.cmr.repository.NodeRef parentRef, java.lang.String pattern, java.util.Set<org.alfresco.service.namespace.QName> assocTypeQNames, java.util.Set<org.alfresco.service.namespace.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
public void afterPropertiesSet() throws java.lang.Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSetin classorg.alfresco.query.AbstractCannedQueryFactory<org.alfresco.service.cmr.repository.NodeRef>- Throws:
java.lang.Exception
-
-