Class Filter
- java.lang.Object
-
- com.unboundid.scim2.common.filters.Filter
-
- Direct Known Subclasses:
CombiningFilter
,ComparisonFilter
,ComplexValueFilter
,NotFilter
,PresentFilter
public abstract class Filter extends Object
Base class for parsing and creating new SCIM 2 filter instances.
-
-
Constructor Summary
Constructors Constructor Description Filter()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Filter
and(Filter filter1, Filter filter2, Filter... filters)
Create a newand
filter.static Filter
and(String filter1, String filter2, String... filters)
Create a newand
filter.static Filter
and(List<Filter> filters)
Create a newand
filter.static Filter
co(Path attributePath, com.fasterxml.jackson.databind.node.ValueNode filterValue)
Create a newcontains
filter.static Filter
co(String attributePath, String filterValue)
Create a newcontains
filter.static Filter
eq(Path attributePath, com.fasterxml.jackson.databind.node.ValueNode filterValue)
Create a newequal
filter.static Filter
eq(String attributePath, byte[] filterValue)
Create a newequal
filter.static Filter
eq(String attributePath, Boolean filterValue)
Create a newequal
filter.static Filter
eq(String attributePath, Double filterValue)
Create a newequal
filter.static Filter
eq(String attributePath, Float filterValue)
Create a newequal
filter.static Filter
eq(String attributePath, Integer filterValue)
Create a newequal
filter.static Filter
eq(String attributePath, Long filterValue)
Create a newequal
filter.static Filter
eq(String attributePath, String filterValue)
Create a newequal
filter.static Filter
eq(String attributePath, Date filterValue)
Create a newequal
filter.static Filter
ew(Path attributePath, com.fasterxml.jackson.databind.node.ValueNode filterValue)
Create a newends with
filter.static Filter
ew(String attributePath, String filterValue)
Create a newends with
filter.static Filter
fromString(String filterString)
Parse a filter from its string representation.static Filter
ge(Path attributePath, com.fasterxml.jackson.databind.node.ValueNode filterValue)
Create a newgreater than or equal
filter.static Filter
ge(String attributePath, Double filterValue)
Create a newgreater than or equal
filter.static Filter
ge(String attributePath, Float filterValue)
Create a newgreater than or equal
filter.static Filter
ge(String attributePath, Integer filterValue)
Create a newgreater than or equal
filter.static Filter
ge(String attributePath, Long filterValue)
Create a newgreater than or equal
filter.static Filter
ge(String attributePath, String filterValue)
Create a newgreater than or equal
filter.static Filter
ge(String attributePath, Date filterValue)
Create a newgreater than or equal
filter.Path
getAttributePath()
Retrieve the path to the attribute to filter by, ornull
if this filter is not a comparison filter or a value filter for complex multi-valued attributes.List<Filter>
getCombinedFilters()
Retrieve the combined filters for a logical combining filter.com.fasterxml.jackson.databind.node.ValueNode
getComparisonValue()
Retrieve the comparison value, ornull
if this filter is not a comparison filter.abstract FilterType
getFilterType()
Retrieve the filter type.Filter
getInvertedFilter()
Retrieve the inverted filter for anot
filter ornull
if this filter is not anot
filter.Filter
getValueFilter()
Retrieve the value filter for complex multi-valued attribute value filter ornull
if this filter is not a value filter.static Filter
gt(Path attributePath, com.fasterxml.jackson.databind.node.ValueNode filterValue)
Create a newgreater than
filter.static Filter
gt(String attributePath, Double filterValue)
Create a newgreater than
filter.static Filter
gt(String attributePath, Float filterValue)
Create a newgreater than
filter.static Filter
gt(String attributePath, Integer filterValue)
Create a newgreater than
filter.static Filter
gt(String attributePath, Long filterValue)
Create a newgreater than
filter.static Filter
gt(String attributePath, String filterValue)
Create a newgreater than
filter.static Filter
gt(String attributePath, Date filterValue)
Create a newgreater than
filter.static Filter
hasComplexValue(Path attributePath, Filter valueFilter)
Create a new complex multi-valued attribute value filter.static Filter
hasComplexValue(String attributePath, Filter valueFilter)
Create a new complex multi-valued attribute value filter.static Filter
hasComplexValue(String attributePath, String valueFilter)
Create a new complex multi-valued attribute value filter.boolean
isCombiningFilter()
Whether this filter is anand
oror
logical combining filter.boolean
isComparisonFilter()
Whether this filter is a filter that compares attribute values against a comparison value.boolean
isComplexValueFilter()
Whether this filter is a complex multi-valued attribute value filter.boolean
isNotFilter()
Whether this filter isnot
filter.static Filter
le(Path attributePath, com.fasterxml.jackson.databind.node.ValueNode filterValue)
Create anew less than or equal
filter.static Filter
le(String attributePath, Double filterValue)
Create anew less than or equal
filter.static Filter
le(String attributePath, Float filterValue)
Create anew less than or equal
filter.static Filter
le(String attributePath, Integer filterValue)
Create anew less than or equal
filter.static Filter
le(String attributePath, Long filterValue)
Create anew less than or equal
filter.static Filter
le(String attributePath, String filterValue)
Create anew less than or equal
filter.static Filter
le(String attributePath, Date filterValue)
Create anew less than or equal
filter.static Filter
lt(Path attributePath, com.fasterxml.jackson.databind.node.ValueNode filterValue)
Create a newless than
filter.static Filter
lt(String attributePath, Double filterValue)
Create a newless than
filter.static Filter
lt(String attributePath, Float filterValue)
Create a newless than
filter.static Filter
lt(String attributePath, Integer filterValue)
Create a newless than
filter.static Filter
lt(String attributePath, Long filterValue)
Create a newless than
filter.static Filter
lt(String attributePath, String filterValue)
Create a newless than
filter.static Filter
lt(String attributePath, Date filterValue)
Create a newless than
filter.static Filter
ne(Path attributePath, com.fasterxml.jackson.databind.node.ValueNode filterValue)
Create a newnot equal
filter.static Filter
ne(String attributePath, byte[] filterValue)
Create a newnot equal
filter.static Filter
ne(String attributePath, Boolean filterValue)
Create a newnot equal
filter.static Filter
ne(String attributePath, Double filterValue)
Create a newnot equal
filter.static Filter
ne(String attributePath, Float filterValue)
Create a newnot equal
filter.static Filter
ne(String attributePath, Integer filterValue)
Create a newnot equal
filter.static Filter
ne(String attributePath, Long filterValue)
Create a newnot equal
filter.static Filter
ne(String attributePath, String filterValue)
Create a newnot equal
filter.static Filter
ne(String attributePath, Date filterValue)
Create a newnot equal
filter.static Filter
not(Filter filter)
Create a newnot
filter.static Filter
not(String filter)
Create a newnot
filter.static Filter
or(Filter filter1, Filter filter2, Filter... filters)
Create a newor
filter.static Filter
or(String filter1, String filter2, String... filters)
Create a newor
filter.static Filter
or(List<Filter> filters)
Create a newor
filter.static Filter
pr(Path attributePath)
Create a newpresent
filter.static Filter
pr(String attributePath)
Create a newpresent
filter.static Filter
sw(Path attributePath, com.fasterxml.jackson.databind.node.ValueNode filterValue)
Create a newstarts with
filter.static Filter
sw(String attributePath, String filterValue)
Create a newstarts with
filter.String
toString()
abstract void
toString(StringBuilder builder)
Append the string representation of the filter to the provided buffer.abstract <R,P>
Rvisit(FilterVisitor<R,P> visitor, P param)
Visit this filter using the provided filter visitor.
-
-
-
Constructor Detail
-
Filter
public Filter()
-
-
Method Detail
-
getFilterType
public abstract FilterType getFilterType()
Retrieve the filter type.- Returns:
- The filter type.
-
visit
public abstract <R,P> R visit(FilterVisitor<R,P> visitor, P param) throws ScimException
Visit this filter using the provided filter visitor.- Type Parameters:
R
- The return type of the filter visitor.P
- The optional parameter type accepted by the filter visitor.- Parameters:
visitor
- TheFilterVisitor
instance.param
- An optional parameter.- Returns:
- The return type from the filter visitor.
- Throws:
ScimException
- The exception thrown from the filter visitor.
-
toString
public abstract void toString(StringBuilder builder)
Append the string representation of the filter to the provided buffer.- Parameters:
builder
- The buffer to which the string representation of the filter is to be appended.
-
isCombiningFilter
public boolean isCombiningFilter()
Whether this filter is anand
oror
logical combining filter.- Returns:
true
if this filter is anand
oror
logical combining filter orfalse
otherwise.
-
getCombinedFilters
public List<Filter> getCombinedFilters()
Retrieve the combined filters for a logical combining filter.- Returns:
- The filter components for a logical combining filter.
-
isNotFilter
public boolean isNotFilter()
Whether this filter isnot
filter.- Returns:
true
if this filter is anot
filter orfalse
otherwise.
-
getInvertedFilter
public Filter getInvertedFilter()
Retrieve the inverted filter for anot
filter ornull
if this filter is not anot
filter.- Returns:
- The inverted filter for a
not
filter ornull
if this filter is not anot
' filter.
-
isComplexValueFilter
public boolean isComplexValueFilter()
Whether this filter is a complex multi-valued attribute value filter.- Returns:
true
if this filter is a complex multi-valued attribute value filter orfalse
otherwise.
-
getValueFilter
public Filter getValueFilter()
Retrieve the value filter for complex multi-valued attribute value filter ornull
if this filter is not a value filter.- Returns:
- The value filter for complex multi-valued attribute value filter
or
null
if this filter is not a value filter.
-
getAttributePath
public Path getAttributePath()
Retrieve the path to the attribute to filter by, ornull
if this filter is not a comparison filter or a value filter for complex multi-valued attributes.- Returns:
- The attribute or sub-attribute to filter by
-
isComparisonFilter
public boolean isComparisonFilter()
Whether this filter is a filter that compares attribute values against a comparison value. The following are comparison filters:eq
,ne
,co
,sw
,ew
,gt
,ge
,lt
,le
.- Returns:
true
if this is a comparison filter orfalse
otherwise.
-
getComparisonValue
public com.fasterxml.jackson.databind.node.ValueNode getComparisonValue()
Retrieve the comparison value, ornull
if this filter is not a comparison filter.- Returns:
- The comparison value, or
null
if this filter is not a comparison filter.
-
eq
public static Filter eq(Path attributePath, com.fasterxml.jackson.databind.node.ValueNode filterValue)
Create a newequal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
equal
filter.
-
eq
public static Filter eq(String attributePath, Integer filterValue) throws BadRequestException
Create a newequal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
eq
public static Filter eq(String attributePath, Long filterValue) throws BadRequestException
Create a newequal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
eq
public static Filter eq(String attributePath, Double filterValue) throws BadRequestException
Create a newequal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
eq
public static Filter eq(String attributePath, Float filterValue) throws BadRequestException
Create a newequal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
eq
public static Filter eq(String attributePath, String filterValue) throws BadRequestException
Create a newequal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
eq
public static Filter eq(String attributePath, Boolean filterValue) throws BadRequestException
Create a newequal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new equality filter.
- Throws:
BadRequestException
- If the path could not be parsed.
-
eq
public static Filter eq(String attributePath, byte[] filterValue) throws BadRequestException
Create a newequal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
eq
public static Filter eq(String attributePath, Date filterValue) throws BadRequestException
Create a newequal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
ne
public static Filter ne(Path attributePath, com.fasterxml.jackson.databind.node.ValueNode filterValue)
Create a newnot equal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
not equal
filter.
-
ne
public static Filter ne(String attributePath, Integer filterValue) throws BadRequestException
Create a newnot equal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
not equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
ne
public static Filter ne(String attributePath, Long filterValue) throws BadRequestException
Create a newnot equal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
not equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
ne
public static Filter ne(String attributePath, Double filterValue) throws BadRequestException
Create a newnot equal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
not equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
ne
public static Filter ne(String attributePath, Float filterValue) throws BadRequestException
Create a newnot equal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
not equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
ne
public static Filter ne(String attributePath, String filterValue) throws BadRequestException
Create a newnot equal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
not equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
ne
public static Filter ne(String attributePath, Boolean filterValue) throws BadRequestException
Create a newnot equal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
not equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
ne
public static Filter ne(String attributePath, byte[] filterValue) throws BadRequestException
Create a newnot equal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
not equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
ne
public static Filter ne(String attributePath, Date filterValue) throws BadRequestException
Create a newnot equal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
not equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
co
public static Filter co(Path attributePath, com.fasterxml.jackson.databind.node.ValueNode filterValue)
Create a newcontains
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
contains
filter.
-
co
public static Filter co(String attributePath, String filterValue) throws BadRequestException
Create a newcontains
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
contains
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
sw
public static Filter sw(Path attributePath, com.fasterxml.jackson.databind.node.ValueNode filterValue)
Create a newstarts with
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
starts with
filter.
-
sw
public static Filter sw(String attributePath, String filterValue) throws BadRequestException
Create a newstarts with
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
starts with
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
ew
public static Filter ew(Path attributePath, com.fasterxml.jackson.databind.node.ValueNode filterValue)
Create a newends with
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
starts with
filter.
-
ew
public static Filter ew(String attributePath, String filterValue) throws BadRequestException
Create a newends with
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
starts with
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
pr
public static Filter pr(Path attributePath)
Create a newpresent
filter.- Parameters:
attributePath
- The path to the attribute to filter by.- Returns:
- A new
present
filter.
-
pr
public static Filter pr(String attributePath) throws BadRequestException
Create a newpresent
filter.- Parameters:
attributePath
- The path to the attribute to filter by.- Returns:
- A new
present
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
gt
public static Filter gt(Path attributePath, com.fasterxml.jackson.databind.node.ValueNode filterValue)
Create a newgreater than
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
greater than
filter.
-
gt
public static Filter gt(String attributePath, Integer filterValue) throws BadRequestException
Create a newgreater than
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
greater than
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
gt
public static Filter gt(String attributePath, Long filterValue) throws BadRequestException
Create a newgreater than
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
greater than
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
gt
public static Filter gt(String attributePath, Double filterValue) throws BadRequestException
Create a newgreater than
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
greater than
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
gt
public static Filter gt(String attributePath, Float filterValue) throws BadRequestException
Create a newgreater than
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
greater than
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
gt
public static Filter gt(String attributePath, String filterValue) throws BadRequestException
Create a newgreater than
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
greater than
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
gt
public static Filter gt(String attributePath, Date filterValue) throws BadRequestException
Create a newgreater than
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
greater than
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
ge
public static Filter ge(Path attributePath, com.fasterxml.jackson.databind.node.ValueNode filterValue)
Create a newgreater than or equal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
greater than or equal
filter.
-
ge
public static Filter ge(String attributePath, Integer filterValue) throws BadRequestException
Create a newgreater than or equal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
greater than or equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
ge
public static Filter ge(String attributePath, Long filterValue) throws BadRequestException
Create a newgreater than or equal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
greater than or equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
ge
public static Filter ge(String attributePath, Double filterValue) throws BadRequestException
Create a newgreater than or equal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
greater than or equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
ge
public static Filter ge(String attributePath, Float filterValue) throws BadRequestException
Create a newgreater than or equal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
greater than or equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
ge
public static Filter ge(String attributePath, String filterValue) throws BadRequestException
Create a newgreater than or equal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
greater than or equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
ge
public static Filter ge(String attributePath, Date filterValue) throws BadRequestException
Create a newgreater than or equal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
greater than or equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
lt
public static Filter lt(Path attributePath, com.fasterxml.jackson.databind.node.ValueNode filterValue)
Create a newless than
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
greater than or equal
filter.
-
lt
public static Filter lt(String attributePath, Integer filterValue) throws BadRequestException
Create a newless than
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
greater than or equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
lt
public static Filter lt(String attributePath, Long filterValue) throws BadRequestException
Create a newless than
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
greater than or equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
lt
public static Filter lt(String attributePath, Double filterValue) throws BadRequestException
Create a newless than
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
greater than or equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
lt
public static Filter lt(String attributePath, Float filterValue) throws BadRequestException
Create a newless than
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
greater than or equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
lt
public static Filter lt(String attributePath, String filterValue) throws BadRequestException
Create a newless than
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
greater than or equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
lt
public static Filter lt(String attributePath, Date filterValue) throws BadRequestException
Create a newless than
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A new
greater than or equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
le
public static Filter le(Path attributePath, com.fasterxml.jackson.databind.node.ValueNode filterValue)
Create anew less than or equal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A
new less than or equal
filter.
-
le
public static Filter le(String attributePath, Integer filterValue) throws BadRequestException
Create anew less than or equal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A
new less than or equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
le
public static Filter le(String attributePath, Long filterValue) throws BadRequestException
Create anew less than or equal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A
new less than or equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
le
public static Filter le(String attributePath, Double filterValue) throws BadRequestException
Create anew less than or equal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A
new less than or equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
le
public static Filter le(String attributePath, Float filterValue) throws BadRequestException
Create anew less than or equal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A
new less than or equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
le
public static Filter le(String attributePath, String filterValue) throws BadRequestException
Create anew less than or equal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A
new less than or equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
le
public static Filter le(String attributePath, Date filterValue) throws BadRequestException
Create anew less than or equal
filter.- Parameters:
attributePath
- The path to the attribute to filter by.filterValue
- The filter attribute value.- Returns:
- A
new less than or equal
filter. - Throws:
BadRequestException
- If the path could not be parsed.
-
and
public static Filter and(Filter filter1, Filter filter2, Filter... filters)
Create a newand
filter.- Parameters:
filter1
- The first filter.filter2
- The second filter.filters
- Additional filter components.- Returns:
- A new
and
filter.
-
and
public static Filter and(String filter1, String filter2, String... filters) throws BadRequestException
Create a newand
filter.- Parameters:
filter1
- The first filter.filter2
- The second filter.filters
- Additional filter components.- Returns:
- A new
and
filter. - Throws:
BadRequestException
- If one of the filters could not be parsed.
-
or
public static Filter or(Filter filter1, Filter filter2, Filter... filters)
Create a newor
filter.- Parameters:
filter1
- The first filter.filter2
- The second filter.filters
- Additional filter components.- Returns:
- A new
or
filter.
-
or
public static Filter or(String filter1, String filter2, String... filters) throws BadRequestException
Create a newor
filter.- Parameters:
filter1
- The first filter.filter2
- The second filter.filters
- Additional filter components.- Returns:
- A new
or
filter. - Throws:
BadRequestException
- If one of the filters could not be parsed.
-
and
public static Filter and(List<Filter> filters)
Create a newand
filter.- Parameters:
filters
- The filter components.- Returns:
- A new
and
filter.
-
or
public static Filter or(List<Filter> filters)
Create a newor
filter.- Parameters:
filters
- The filter components.- Returns:
- A new
or
filter.
-
not
public static Filter not(Filter filter)
Create a newnot
filter.- Parameters:
filter
- The inverted filter.- Returns:
- A new
not
filter.
-
not
public static Filter not(String filter) throws BadRequestException
Create a newnot
filter.- Parameters:
filter
- The inverted filter.- Returns:
- A new
not
filter. - Throws:
BadRequestException
- If the filter could not be parsed.
-
hasComplexValue
public static Filter hasComplexValue(Path attributePath, Filter valueFilter)
Create a new complex multi-valued attribute value filter.- Parameters:
attributePath
- The path to the attribute to filter by.valueFilter
- The value filter.- Returns:
- A new complex multi-valued attribute value filter.
-
hasComplexValue
public static Filter hasComplexValue(String attributePath, Filter valueFilter) throws BadRequestException
Create a new complex multi-valued attribute value filter.- Parameters:
attributePath
- The path to the attribute to filter by.valueFilter
- The value filter.- Returns:
- A new complex multi-valued attribute value filter.
- Throws:
BadRequestException
- If the path could not be parsed.
-
hasComplexValue
public static Filter hasComplexValue(String attributePath, String valueFilter) throws BadRequestException
Create a new complex multi-valued attribute value filter.- Parameters:
attributePath
- The path to the attribute to filter by.valueFilter
- The value filter.- Returns:
- A new complex multi-valued attribute value filter.
- Throws:
BadRequestException
- If the pathor
filter could not be parsed.
-
fromString
public static Filter fromString(String filterString) throws BadRequestException
Parse a filter from its string representation.- Parameters:
filterString
- The string representation of the filter expression.- Returns:
- The parsed filter.
- Throws:
BadRequestException
- If the filter could not be parsed.
-
-