Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.query
Class QueryFilter

java.lang.Object
  extended by org.nuxeo.ecm.core.query.QueryFilter
All Implemented Interfaces:
Serializable

public class QueryFilter
extends Object
implements Serializable

Filtering parameters that can be passed when executing a FilterableQuery.

This includes filtering on the BROWSE permission for the given principal, filtering on facets, and applying query transformers.

You can also include a limit and offset, to get a subset of the total.

Author:
Florent Guillaume
See Also:
Serialized Form

Field Summary
static QueryFilter EMPTY
           
 
Constructor Summary
QueryFilter(Principal principal, String[] principals, String[] permissions, FacetFilter facetFilter, Collection<SQLQuery.Transformer> queryTransformers, long limit, long offset)
          Constructs a query filter.
 
Method Summary
 FacetFilter getFacetFilter()
           
 long getLimit()
           
 long getOffset()
           
 String[] getPermissions()
           
 Principal getPrincipal()
           
 String[] getPrincipals()
           
 Collection<SQLQuery.Transformer> getQueryTransformers()
           
static QueryFilter withoutLimitOffset(QueryFilter other)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

public static final QueryFilter EMPTY
Constructor Detail

QueryFilter

public QueryFilter(Principal principal,
                   String[] principals,
                   String[] permissions,
                   FacetFilter facetFilter,
                   Collection<SQLQuery.Transformer> queryTransformers,
                   long limit,
                   long offset)
Constructs a query filter.

Note that the principal MUST be Serializable.

Method Detail

withoutLimitOffset

public static QueryFilter withoutLimitOffset(QueryFilter other)

getPrincipal

public Principal getPrincipal()

getPrincipals

public String[] getPrincipals()

getPermissions

public String[] getPermissions()

getFacetFilter

public FacetFilter getFacetFilter()

getQueryTransformers

public Collection<SQLQuery.Transformer> getQueryTransformers()

getLimit

public long getLimit()

getOffset

public long getOffset()

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.