Class GetNodesWithAspectCannedQueryFactory

java.lang.Object
org.alfresco.query.AbstractCannedQueryFactory<NodeRef>
org.alfresco.repo.node.GetNodesWithAspectCannedQueryFactory
All Implemented Interfaces:
org.alfresco.query.CannedQueryFactory<NodeRef>, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean

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

    • GetNodesWithAspectCannedQueryFactory

      public GetNodesWithAspectCannedQueryFactory()
  • Method Details

    • setNodeDAO

      public void setNodeDAO(NodeDAO nodeDAO)
    • setTenantService

      public void setTenantService(TenantService tenantService)
    • setMethodSecurity

      public void setMethodSecurity(MethodSecurityBean<NodeRef> methodSecurity)
    • getCannedQuery

      public org.alfresco.query.CannedQuery<NodeRef> getCannedQuery(org.alfresco.query.CannedQueryParameters parameters)
    • getCannedQuery

      public org.alfresco.query.CannedQuery<NodeRef> getCannedQuery(StoreRef storeRef, Set<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<NodeRef>
      Throws:
      Exception