org.alfresco.repo.node.getchildren
Class GetChildrenCannedQuery

java.lang.Object
  extended by org.alfresco.query.AbstractCannedQuery
      extended by org.alfresco.repo.security.permissions.impl.acegi.AbstractCannedQueryPermissions
          extended by org.alfresco.repo.node.getchildren.GetChildrenCannedQuery
All Implemented Interfaces:
org.alfresco.query.CannedQuery

public class GetChildrenCannedQuery
extends AbstractCannedQueryPermissions

GetChidren canned query To get paged list of children of a parent node filtered by child type. Also optionally filtered and/or sorted by one or more properties (up to three).

Since:
4.0

Field Summary
static int MAX_FILTER_SORT_PROPS
           
static org.alfresco.service.namespace.QName SORT_QNAME_CONTENT_MIMETYPE
           
static org.alfresco.service.namespace.QName SORT_QNAME_CONTENT_SIZE
           
static org.alfresco.service.namespace.QName SORT_QNAME_NODE_TYPE
           
 
Constructor Summary
GetChildrenCannedQuery(NodeDAO nodeDAO, QNameDAO qnameDAO, CannedQueryDAO cannedQueryDAO, NodePropertyHelper nodePropertyHelper, org.alfresco.repo.tenant.TenantService tenantService, MethodSecurityBean methodSecurity, org.alfresco.query.CannedQueryParameters params)
           
 
Method Summary
protected  java.util.List applyPostQueryPermissions(java.util.List results, int requestedCount)
           
protected  boolean isApplyPostQueryPermissions()
          

By default, the is a permission checking class.

protected  boolean isApplyPostQuerySorting()
           
protected  java.util.List queryAndFilter(org.alfresco.query.CannedQueryParameters parameters)
           
 
Methods inherited from class org.alfresco.repo.security.permissions.impl.acegi.AbstractCannedQueryPermissions
getTotalResultCount
 
Methods inherited from class org.alfresco.query.AbstractCannedQuery
applyPostQueryPaging, applyPostQuerySorting, execute, getParameters, isApplyPostQueryPaging, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_FILTER_SORT_PROPS

public static final int MAX_FILTER_SORT_PROPS
See Also:
Constant Field Values

SORT_QNAME_CONTENT_SIZE

public static final org.alfresco.service.namespace.QName SORT_QNAME_CONTENT_SIZE

SORT_QNAME_CONTENT_MIMETYPE

public static final org.alfresco.service.namespace.QName SORT_QNAME_CONTENT_MIMETYPE

SORT_QNAME_NODE_TYPE

public static final org.alfresco.service.namespace.QName SORT_QNAME_NODE_TYPE
Constructor Detail

GetChildrenCannedQuery

public GetChildrenCannedQuery(NodeDAO nodeDAO,
                              QNameDAO qnameDAO,
                              CannedQueryDAO cannedQueryDAO,
                              NodePropertyHelper nodePropertyHelper,
                              org.alfresco.repo.tenant.TenantService tenantService,
                              MethodSecurityBean methodSecurity,
                              org.alfresco.query.CannedQueryParameters params)
Method Detail

queryAndFilter

protected java.util.List queryAndFilter(org.alfresco.query.CannedQueryParameters parameters)
Specified by:
queryAndFilter in class org.alfresco.query.AbstractCannedQuery

isApplyPostQuerySorting

protected boolean isApplyPostQuerySorting()
Overrides:
isApplyPostQuerySorting in class org.alfresco.query.AbstractCannedQuery

isApplyPostQueryPermissions

protected boolean isApplyPostQueryPermissions()
Description copied from class: AbstractCannedQueryPermissions

By default, the is a permission checking class. Override the method if you wish to switch the behaviour at runtime.

Overrides:
isApplyPostQueryPermissions in class AbstractCannedQueryPermissions
Returns:
true always

applyPostQueryPermissions

protected java.util.List applyPostQueryPermissions(java.util.List results,
                                                   int requestedCount)
Overrides:
applyPostQueryPermissions in class AbstractCannedQueryPermissions


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.