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 |
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
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.