Class AbstractQNameAwareCannedQueryFactory<R>

java.lang.Object
org.alfresco.query.AbstractCannedQueryFactory<R>
org.alfresco.repo.query.AbstractQNameAwareCannedQueryFactory<R>
All Implemented Interfaces:
org.alfresco.query.CannedQueryFactory<R>, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
AbstractBlogPostsCannedQueryFactory, GetArchivedNodesCannedQueryFactory, GetCalendarEntriesCannedQueryFactory, GetChildrenAuditableCannedQueryFactory, GetChildrenWithTargetAssocsAuditableCannedQueryFactory, GetDiscussionTopcisWithPostsCannedQueryFactory, GetDownloadsCannedQueryFactory

public abstract class AbstractQNameAwareCannedQueryFactory<R> extends org.alfresco.query.AbstractCannedQueryFactory<R>
An intermediate AbstractCannedQueryFactory layer, for various implementations that need to know about QName IDs and similar
Since:
4.0
Author:
Nick Burch
  • Field Details

  • Constructor Details

    • AbstractQNameAwareCannedQueryFactory

      public AbstractQNameAwareCannedQueryFactory()
  • Method Details

    • setNodeDAO

      public void setNodeDAO(NodeDAO nodeDAO)
    • setQnameDAO

      public void setQnameDAO(QNameDAO qnameDAO)
    • setCannedQueryDAO

      public void setCannedQueryDAO(CannedQueryDAO cannedQueryDAO)
    • setTenantService

      public void setTenantService(TenantService tenantService)
    • setMethodSecurity

      public void setMethodSecurity(MethodSecurityBean<R> methodSecurity)
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Overrides:
      afterPropertiesSet in class org.alfresco.query.AbstractCannedQueryFactory<R>
      Throws:
      Exception
    • createCQSortDetails

      protected org.alfresco.query.CannedQuerySortDetails createCQSortDetails(List<Pair<QName,Boolean>> sort)
      Creates a Canned Query sort details, for the given list of properties and if they should be Ascending or Descending
    • createCQPageDetails

      protected org.alfresco.query.CannedQueryPageDetails createCQPageDetails(org.alfresco.query.PagingRequest pagingReq)
    • getQNameId

      protected Long getQNameId(QName qname)
    • getNodeId

      protected Long getNodeId(NodeRef nodeRef)
    • createDateAscendingCQSortDetails

      public org.alfresco.query.CannedQuerySortDetails createDateAscendingCQSortDetails()
    • createDateDescendingCQSortDetails

      public org.alfresco.query.CannedQuerySortDetails createDateDescendingCQSortDetails()