org.alfresco.repo.node.getchildren
Class GetChildrenCannedQueryFactory
java.lang.Object
org.alfresco.query.AbstractCannedQueryFactory
org.alfresco.repo.node.getchildren.GetChildrenCannedQueryFactory
- All Implemented Interfaces:
- org.alfresco.query.CannedQueryFactory, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean
public class GetChildrenCannedQueryFactory
- extends org.alfresco.query.AbstractCannedQueryFactory
GetChildren canned query factory - to get paged list of children of a parent node
- Since:
- 4.0
Method Summary |
void |
afterPropertiesSet()
|
org.alfresco.query.CannedQuery |
getCannedQuery(org.alfresco.query.CannedQueryParameters parameters)
|
org.alfresco.query.CannedQuery |
getCannedQuery(org.alfresco.service.cmr.repository.NodeRef parentRef,
java.lang.String pattern,
java.util.Set childTypeQNames,
java.util.List filterProps,
java.util.List sortProps,
org.alfresco.query.PagingRequest pagingRequest)
Retrieve an optionally filtered/sorted instance of a CannedQuery based 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 |
getCannedQuery(org.alfresco.service.cmr.repository.NodeRef parentRef,
java.lang.String pattern,
java.util.Set childTypeQNames,
org.alfresco.query.PagingRequest pagingRequest)
Retrieve an unsorted instance of a CannedQuery based on parameters including request for a total count (up to a given max) |
void |
setCannedQueryDAO(CannedQueryDAO cannedQueryDAO)
|
void |
setContentDataDAO(ContentDataDAO contentDataDAO)
|
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
|
void |
setLocaleDAO(LocaleDAO localeDAO)
|
void |
setMethodSecurity(MethodSecurityBean methodSecurity)
|
void |
setNodeDAO(NodeDAO nodeDAO)
|
void |
setQnameDAO(QNameDAO qnameDAO)
|
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
|
Methods inherited from class org.alfresco.query.AbstractCannedQueryFactory |
getCannedQuery, getQueryExecutionId, setBeanName, setRegistry |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GetChildrenCannedQueryFactory
public GetChildrenCannedQueryFactory()
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)
setMethodSecurity
public void setMethodSecurity(MethodSecurityBean methodSecurity)
getCannedQuery
public org.alfresco.query.CannedQuery getCannedQuery(org.alfresco.query.CannedQueryParameters parameters)
getCannedQuery
public org.alfresco.query.CannedQuery getCannedQuery(org.alfresco.service.cmr.repository.NodeRef parentRef,
java.lang.String pattern,
java.util.Set childTypeQNames,
java.util.List filterProps,
java.util.List sortProps,
org.alfresco.query.PagingRequest pagingRequest)
- Retrieve an optionally filtered/sorted instance of a
CannedQuery
based 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 '*')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 getCannedQuery(org.alfresco.service.cmr.repository.NodeRef parentRef,
java.lang.String pattern,
java.util.Set childTypeQNames,
org.alfresco.query.PagingRequest pagingRequest)
- Retrieve an unsorted instance of a
CannedQuery
based on parameters including request for a total count (up to a given max)
- Parameters:
parentRef
- parent node refchildTypeQNames
- 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:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Overrides:
afterPropertiesSet
in class org.alfresco.query.AbstractCannedQueryFactory
- Throws:
java.lang.Exception
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.