Package org.nuxeo.ecm.core.query
Class QueryFilter
java.lang.Object
org.nuxeo.ecm.core.query.QueryFilter
- All Implemented Interfaces:
QueryFilter<SQLQuery.Transformer>
Filtering parameters that can be passed when executing a query.
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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QueryFilter
protected final FacetFilter
protected final long
protected final long
protected final String[]
protected final NuxeoPrincipal
protected final String[]
protected final Collection<SQLQuery.Transformer>
-
Constructor Summary
ConstructorDescriptionQueryFilter
(NuxeoPrincipal principal, String[] principals, String[] permissions, FacetFilter facetFilter, Collection<SQLQuery.Transformer> queryTransformers, long limit, long offset) Constructs a query filter. -
Method Summary
Modifier and TypeMethodDescriptionlong
getLimit()
long
String[]
String[]
toString()
static QueryFilter
withoutLimitOffset
(QueryFilter other)
-
Field Details
-
EMPTY
-
principal
-
principals
-
permissions
-
facetFilter
-
queryTransformers
-
limit
protected final long limit -
offset
protected final long offset
-
-
Constructor Details
-
QueryFilter
public QueryFilter(NuxeoPrincipal principal, String[] principals, String[] permissions, FacetFilter facetFilter, Collection<SQLQuery.Transformer> queryTransformers, long limit, long offset) Constructs a query filter.
-
-
Method Details
-
withoutLimitOffset
-
getPrincipal
- Specified by:
getPrincipal
in interfaceQueryFilter<SQLQuery.Transformer>
-
getPrincipals
- Specified by:
getPrincipals
in interfaceQueryFilter<SQLQuery.Transformer>
-
getPermissions
- Specified by:
getPermissions
in interfaceQueryFilter<SQLQuery.Transformer>
-
getFacetFilter
- Specified by:
getFacetFilter
in interfaceQueryFilter<SQLQuery.Transformer>
-
getQueryTransformers
- Specified by:
getQueryTransformers
in interfaceQueryFilter<SQLQuery.Transformer>
-
getLimit
public long getLimit()- Specified by:
getLimit
in interfaceQueryFilter<SQLQuery.Transformer>
-
getOffset
public long getOffset()- Specified by:
getOffset
in interfaceQueryFilter<SQLQuery.Transformer>
-
toString
-