Class GetPeopleCannedQueryFactory
- java.lang.Object
-
- org.alfresco.query.AbstractCannedQueryFactory<NodeRef>
-
- org.alfresco.repo.security.person.GetPeopleCannedQueryFactory
-
- All Implemented Interfaces:
CannedQueryFactory<NodeRef>,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
public class GetPeopleCannedQueryFactory extends AbstractCannedQueryFactory<NodeRef>
GetPeople canned query factory - to get paged list of people- Since:
- 4.1.2
- Author:
- janv
-
-
Field Summary
Fields Modifier and Type Field Description protected AuthorityServiceauthorityServiceprotected CannedQueryDAOcannedQueryDAOprotected NodeDAOnodeDAOprotected NodeServicenodeServiceprotected QNameDAOqnameDAOprotected TenantServicetenantService
-
Constructor Summary
Constructors Constructor Description GetPeopleCannedQueryFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()CannedQuery<NodeRef>getCannedQuery(CannedQueryParameters parameters)CannedQuery<NodeRef>getCannedQuery(NodeRef parentRef, String pattern, List<QName> filterProps, Set<QName> inclusiveAspects, Set<QName> exclusiveAspects, boolean includeAdministrators, List<Pair<QName,Boolean>> sortProps, 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.voidsetAuthorityService(AuthorityService authorityService)voidsetCannedQueryDAO(CannedQueryDAO cannedQueryDAO)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 Detail
-
nodeDAO
protected NodeDAO nodeDAO
-
qnameDAO
protected QNameDAO qnameDAO
-
cannedQueryDAO
protected CannedQueryDAO cannedQueryDAO
-
tenantService
protected TenantService tenantService
-
nodeService
protected NodeService nodeService
-
authorityService
protected AuthorityService authorityService
-
-
Method Detail
-
setNodeDAO
public void setNodeDAO(NodeDAO nodeDAO)
-
setQnameDAO
public void setQnameDAO(QNameDAO qnameDAO)
-
setCannedQueryDAO
public void setCannedQueryDAO(CannedQueryDAO cannedQueryDAO)
-
setTenantService
public void setTenantService(TenantService tenantService)
-
setNodeService
public void setNodeService(NodeService nodeService)
-
setAuthorityService
public void setAuthorityService(AuthorityService authorityService)
-
getCannedQuery
public CannedQuery<NodeRef> getCannedQuery(CannedQueryParameters parameters)
-
getCannedQuery
public CannedQuery<NodeRef> getCannedQuery(NodeRef parentRef, String pattern, List<QName> filterProps, Set<QName> inclusiveAspects, Set<QName> exclusiveAspects, boolean includeAdministrators, List<Pair<QName,Boolean>> sortProps, 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 '*')filterProps- filter propsinclusiveAspects- 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.includeAdministrators- include administrators in the returned resultssortProps- sort property pairs (QName and Boolean - true if ascending)pagingRequest- skipCount, maxItems - optionally queryExecutionId and requestTotalCountMax- Returns:
- an implementation that will execute the query
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSetin classAbstractCannedQueryFactory<NodeRef>- Throws:
Exception
-
-