Package org.alfresco.repo.query
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classAn instance of aAbstractQNameAwareCannedQueryFactory.PropertyBasedComparatorfor aNodeBackedEntitystatic classUtility class to sort Entities on the basis of a Comparable property. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CannedQueryDAOprotected MethodSecurityBean<R>protected NodeDAOprotected QNameDAOprotected TenantService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected org.alfresco.query.CannedQueryPageDetailscreateCQPageDetails(org.alfresco.query.PagingRequest pagingReq) protected org.alfresco.query.CannedQuerySortDetailscreateCQSortDetails(List<Pair<QName, Boolean>> sort) Creates a Canned Query sort details, for the given list of properties and if they should be Ascending or Descendingorg.alfresco.query.CannedQuerySortDetailsorg.alfresco.query.CannedQuerySortDetailsprotected Longprotected LonggetQNameId(QName qname) voidsetCannedQueryDAO(CannedQueryDAO cannedQueryDAO) voidsetMethodSecurity(MethodSecurityBean<R> methodSecurity) voidsetNodeDAO(NodeDAO nodeDAO) voidsetQnameDAO(QNameDAO qnameDAO) voidsetTenantService(TenantService tenantService) Methods inherited from class org.alfresco.query.AbstractCannedQueryFactory
getCannedQuery, getQueryExecutionId, setBeanName, setRegistryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.alfresco.query.CannedQueryFactory
getCannedQuery
-
Field Details
-
methodSecurity
-
nodeDAO
-
qnameDAO
-
tenantService
-
cannedQueryDAO
-
-
Constructor Details
-
AbstractQNameAwareCannedQueryFactory
public AbstractQNameAwareCannedQueryFactory()
-
-
Method Details
-
setNodeDAO
-
setQnameDAO
-
setCannedQueryDAO
-
setTenantService
-
setMethodSecurity
-
afterPropertiesSet
-
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
-
getNodeId
-
createDateAscendingCQSortDetails
public org.alfresco.query.CannedQuerySortDetails createDateAscendingCQSortDetails() -
createDateDescendingCQSortDetails
public org.alfresco.query.CannedQuerySortDetails createDateDescendingCQSortDetails()
-