public abstract class AbstractQNameAwareCannedQueryFactory<R>
extends org.alfresco.query.AbstractCannedQueryFactory<R>
AbstractCannedQueryFactory
layer, for various
implementations that need to know about QName IDs and similarModifier and Type | Class and Description |
---|---|
static class |
AbstractQNameAwareCannedQueryFactory.NestedComparator<R> |
static class |
AbstractQNameAwareCannedQueryFactory.NodeBackedEntityComparator
An instance of a
AbstractQNameAwareCannedQueryFactory.PropertyBasedComparator for a NodeBackedEntity |
static class |
AbstractQNameAwareCannedQueryFactory.PropertyBasedComparator<R>
Utility class to sort Entities on the basis of a Comparable property.
|
Modifier and Type | Field and Description |
---|---|
protected CannedQueryDAO |
cannedQueryDAO |
protected MethodSecurityBean<R> |
methodSecurity |
protected NodeDAO |
nodeDAO |
protected QNameDAO |
qnameDAO |
protected org.alfresco.repo.tenant.TenantService |
tenantService |
Constructor and Description |
---|
AbstractQNameAwareCannedQueryFactory() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected org.alfresco.query.CannedQueryPageDetails |
createCQPageDetails(org.alfresco.query.PagingRequest pagingReq) |
protected org.alfresco.query.CannedQuerySortDetails |
createCQSortDetails(List<org.alfresco.util.Pair<org.alfresco.service.namespace.QName,Boolean>> sort)
Creates a Canned Query sort details, for the given list of properties
and if they should be Ascending or Descending
|
org.alfresco.query.CannedQuerySortDetails |
createDateAscendingCQSortDetails() |
org.alfresco.query.CannedQuerySortDetails |
createDateDescendingCQSortDetails() |
protected Long |
getNodeId(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
protected Long |
getQNameId(org.alfresco.service.namespace.QName qname) |
void |
setCannedQueryDAO(CannedQueryDAO cannedQueryDAO) |
void |
setMethodSecurity(MethodSecurityBean<R> methodSecurity) |
void |
setNodeDAO(NodeDAO nodeDAO) |
void |
setQnameDAO(QNameDAO qnameDAO) |
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService) |
getCannedQuery, getQueryExecutionId, setBeanName, setRegistry
protected MethodSecurityBean<R> methodSecurity
protected NodeDAO nodeDAO
protected QNameDAO qnameDAO
protected org.alfresco.repo.tenant.TenantService tenantService
protected CannedQueryDAO cannedQueryDAO
public AbstractQNameAwareCannedQueryFactory()
public void setNodeDAO(NodeDAO nodeDAO)
public void setQnameDAO(QNameDAO qnameDAO)
public void setCannedQueryDAO(CannedQueryDAO cannedQueryDAO)
public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
public void setMethodSecurity(MethodSecurityBean<R> methodSecurity)
public void afterPropertiesSet() throws Exception
protected org.alfresco.query.CannedQuerySortDetails createCQSortDetails(List<org.alfresco.util.Pair<org.alfresco.service.namespace.QName,Boolean>> sort)
protected org.alfresco.query.CannedQueryPageDetails createCQPageDetails(org.alfresco.query.PagingRequest pagingReq)
protected Long getQNameId(org.alfresco.service.namespace.QName qname)
protected Long getNodeId(org.alfresco.service.cmr.repository.NodeRef nodeRef)
public org.alfresco.query.CannedQuerySortDetails createDateAscendingCQSortDetails()
public org.alfresco.query.CannedQuerySortDetails createDateDescendingCQSortDetails()
Copyright © 2005–2017 Alfresco Software. All rights reserved.