public class QueryFilter extends Object implements Serializable
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.
Modifier and Type | Field and Description |
---|---|
static QueryFilter |
EMPTY |
protected FacetFilter |
facetFilter |
protected long |
limit |
protected long |
offset |
protected String[] |
permissions |
protected Principal |
principal
The principal.
|
protected String[] |
principals |
protected Collection<SQLQuery.Transformer> |
queryTransformers |
Constructor and Description |
---|
QueryFilter(Principal principal,
String[] principals,
String[] permissions,
FacetFilter facetFilter,
Collection<SQLQuery.Transformer> queryTransformers,
long limit,
long offset)
Constructs a query filter.
|
Modifier and Type | Method and Description |
---|---|
FacetFilter |
getFacetFilter() |
long |
getLimit() |
long |
getOffset() |
String[] |
getPermissions() |
Principal |
getPrincipal() |
String[] |
getPrincipals() |
Collection<SQLQuery.Transformer> |
getQueryTransformers() |
String |
toString() |
static QueryFilter |
withoutLimitOffset(QueryFilter other) |
public static final QueryFilter EMPTY
protected final Principal principal
Serializable
.protected final String[] principals
protected final String[] permissions
protected final FacetFilter facetFilter
protected final Collection<SQLQuery.Transformer> queryTransformers
protected final long limit
protected final long offset
public QueryFilter(Principal principal, String[] principals, String[] permissions, FacetFilter facetFilter, Collection<SQLQuery.Transformer> queryTransformers, long limit, long offset)
Note that the principal MUST be Serializable
.
public static QueryFilter withoutLimitOffset(QueryFilter other)
public Principal getPrincipal()
public String[] getPrincipals()
public String[] getPermissions()
public FacetFilter getFacetFilter()
public Collection<SQLQuery.Transformer> getQueryTransformers()
public long getLimit()
public long getOffset()
Copyright © 2015 Nuxeo SA. All rights reserved.