org.nuxeo.ecm.core.query
Class QueryFilter
java.lang.Object
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
EMPTY
public static final QueryFilter EMPTY
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
.
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()
Copyright © 2011 Nuxeo SAS. All Rights Reserved.