Class GetNodesWithAspectCannedQueryFactory

  • 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

    public class GetNodesWithAspectCannedQueryFactory
    extends org.alfresco.query.AbstractCannedQueryFactory<org.alfresco.service.cmr.repository.NodeRef>
    GetNodesWithAspectCannedQuery canned query factory - to get paged list of Nodes with a given Aspect
    Since:
    4.1
    Author:
    Nick Burch
    • Constructor Detail

      • GetNodesWithAspectCannedQueryFactory

        public GetNodesWithAspectCannedQueryFactory()
    • Method Detail

      • setNodeDAO

        public void setNodeDAO​(NodeDAO nodeDAO)
      • setTenantService

        public void setTenantService​(org.alfresco.repo.tenant.TenantService tenantService)
      • 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.StoreRef storeRef,
                                                                                                          Set<org.alfresco.service.namespace.QName> aspectQNames,
                                                                                                          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:
        storeRef - the store to search in, if requested
        aspectQNames - qnames of aspects to search for
        pagingRequest - skipCount, maxItems - optionally queryExecutionId and requestTotalCountMax
        Returns:
        an implementation that will execute the query
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Overrides:
        afterPropertiesSet in class org.alfresco.query.AbstractCannedQueryFactory<org.alfresco.service.cmr.repository.NodeRef>
        Throws:
        Exception