A factory for creating filters that are used to construct a Query.
Public Constructor Summary
Filters()
|
Public Method Summary
staticFilter | |
staticFilter | |
staticFilter |
contains(SearchableMetadataField<String>
field,Stringvalue)
Returns a filter which checks whether
value is a substring of
field .
|
staticFilter |
eq(CustomPropertyKey
key,String
value)
Returns a filter which checks whether a custom property with the specified
key exists and its value equalsvalue .
|
static <T>Filter |
eq(SearchableMetadataField<T>
field, T value)
Returns a filter which checks if the value of
field equals
value .
|
static <T extendsComparable<T>> Filter |
greaterThan(SearchableOrderedMetadataField<T>
field, T value)
Returns a filter which checks if the value of
field is greater
thanvalue .
|
static <T extendsComparable<T>> Filter |
greaterThanEquals(SearchableOrderedMetadataField<T>
field, T value)
Returns a filter which checks if the value of
field is greater
than or equal tovalue .
|
static <T>Filter |
in(SearchableCollectionMetadataField<T>
field, T value)
Returns a filter which checks whether
value is an element of
field .
|
static <T extendsComparable<T>> Filter |
lessThan(SearchableOrderedMetadataField<T>
field, T value)
Returns a filter which checks if the value of
field is less than
value .
|
static <T extendsComparable<T>> Filter |
lessThanEquals(SearchableOrderedMetadataField<T>
field, T value)
Returns a filter which checks if the value of
field is less than
or equal tovalue .
|
staticFilter | |
staticFilter |
openedByMe()
Returns a filter that matches only items that the current user has opened in
the past.
|
staticFilter | |
staticFilter | |
staticFilter |
ownedByMe()
Returns a filter that matches only items that the current user owns.
|
staticFilter |
sharedWithMe()
Returns a filter that matches only items that are shared with the current user.
|
Inherited Method Summary
Public Constructors
publicFilters()
Public Methods
public staticFilter and(Iterable<Filter> filters)
Returns a filter that matches items which are matched by every element of
filters
.
public staticFilter and(Filterfilter, Filter... additionalFilters)
Returns a logical expression which combines filters with the 'AND' operator.
public staticFilter contains(SearchableMetadataField<String> field,String value)
Returns a filter which checks whethervalue
is a substring of
field
.This filter can only be used with fields that contain a string
value.
public staticFilter eq(CustomPropertyKey key,String value)
Returns a filter which checks whether a custom property with the specified
key
exists and its value equalsvalue
.The provided
value
may not be null.
public staticFilter eq(SearchableMetadataField<T> field, T value)
Returns a filter which checks if the value offield
equals
value
.
public staticFilter greaterThan(SearchableOrderedMetadataField<T> field, T value)
Returns a filter which checks if the value offield
is greater than
value
.This filter can only be used with fields that have a sort
order.
public staticFilter greaterThanEquals(SearchableOrderedMetadataField<T> field, T value)
Returns a filter which checks if the value offield
is greater than or
equal tovalue
.This filter can only be used with fields that have a sort
order.
public staticFilter in(SearchableCollectionMetadataField<T> field, T value)
Returns a filter which checks whethervalue
is an element of
field
.This filter can only be used with fields that contain a collection
value.
public staticFilter lessThan(SearchableOrderedMetadataField<T> field, T value)
Returns a filter which checks if the value offield
is less than
value
.This filter can only be used with fields that have a sort
order.
public staticFilter lessThanEquals(SearchableOrderedMetadataField<T> field, T value)
Returns a filter which checks if the value offield
is less than or
equal tovalue
.This filter can only be used with fields that have a sort
order.
public staticFilter openedByMe()
Returns a filter that matches only items that the current user has opened in the past.
public staticFilter or(Iterable<Filter> filters)
Returns a filter that matches items which are matched by any element of
filters
.
public staticFilter or(Filterfilter, Filter... additionalFilters)
Returns a filter that matches items which are matched by any of the provided filter parameters.
public staticFilter ownedByMe()
Returns a filter that matches only items that the current user owns.
public staticFilter sharedWithMe()
Returns a filter that matches only items that are shared with the current user.