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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterPropertiesSet()  
      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.StoreRef storeRef, java.util.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)
      void setMethodSecurity​(MethodSecurityBean<org.alfresco.service.cmr.repository.NodeRef> methodSecurity)  
      void setNodeDAO​(NodeDAO nodeDAO)  
      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
    • 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,
                                                                                                          java.util.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 java.lang.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:
        java.lang.Exception