public class SCIMFilter extends Object
| Constructor and Description |
|---|
SCIMFilter(SCIMFilterType filterType,
AttributePath filterAttribute,
String filterValue,
boolean quoteFilterValue,
List<SCIMFilter> filterComponents)
Create a new SCIM filter from the provided information.
|
| Modifier and Type | Method and Description |
|---|---|
static SCIMFilter |
createAndFilter(List<SCIMFilter> filterComponents)
Create a new and filter.
|
static SCIMFilter |
createContainsFilter(AttributePath filterAttribute,
String filterValue)
Create a new contains filter.
|
static SCIMFilter |
createEqualityFilter(AttributePath filterAttribute,
String filterValue)
Create a new equality filter.
|
static SCIMFilter |
createGreaterOrEqualFilter(AttributePath filterAttribute,
String filterValue)
Create a new greater or equal filter.
|
static SCIMFilter |
createGreaterThanFilter(AttributePath filterAttribute,
String filterValue)
Create a new greater than filter.
|
static SCIMFilter |
createLessOrEqualFilter(AttributePath filterAttribute,
String filterValue)
Create a new less or equal filter.
|
static SCIMFilter |
createLessThanFilter(AttributePath filterAttribute,
String filterValue)
Create a new less than filter.
|
static SCIMFilter |
createOrFilter(List<SCIMFilter> filterComponents)
Create a new or filter.
|
static SCIMFilter |
createPresenceFilter(AttributePath filterAttribute)
Create a new presence filter.
|
static SCIMFilter |
createStartsWithFilter(AttributePath filterAttribute,
String filterValue)
Create a new starts with filter.
|
AttributePath |
getFilterAttribute()
Retrieve the attribute or sub-attribute to filter by, or
null if
not applicable for this filter type. |
List<SCIMFilter> |
getFilterComponents()
Retrieve the filter components for an 'and' or 'or' filter.
|
SCIMFilterType |
getFilterType()
Retrieve the filter type.
|
String |
getFilterValue()
Retrieve the filter attribute value.
|
boolean |
isQuoteFilterValue()
Determine whether the filter attribute value is quoted in the string
representation of the filter.
|
static SCIMFilter |
parse(String filterString)
Parse a filter from its string representation.
|
static SCIMFilter |
parse(String filterString,
String defaultSchema)
Parse a filter from its string representation.
|
String |
toString() |
void |
toString(StringBuilder builder)
Append the string representation of the filter to the provided buffer.
|
public SCIMFilter(SCIMFilterType filterType, AttributePath filterAttribute, String filterValue, boolean quoteFilterValue, List<SCIMFilter> filterComponents)
filterType - The filter type.filterAttribute - The attribute or sub-attribute to filter by, or
null if not applicable.filterValue - The filter attribute value, or null if not
applicable.quoteFilterValue - Specifies whether the filter value is quoted in
the string representation of the filter.filterComponents - The filter components for 'or' and 'and' filter
types, or null if not applicable.public static SCIMFilter parse(String filterString) throws SCIMException
filterString - The string representation of the filter expression.SCIMException - If the filter string could not be parsed.public static SCIMFilter parse(String filterString, String defaultSchema) throws SCIMException
filterString - The string representation of the filter expression.defaultSchema - The default schema that should be assumed when parsing
attributes without the schema explicitly defined in
the URN.SCIMException - If the filter string could not be parsed.public static SCIMFilter createAndFilter(List<SCIMFilter> filterComponents)
filterComponents - The filter components.public static SCIMFilter createOrFilter(List<SCIMFilter> filterComponents)
filterComponents - The filter components.public static SCIMFilter createEqualityFilter(AttributePath filterAttribute, String filterValue)
filterAttribute - The attribute or sub-attribute to filter by.filterValue - The filter attribute value.public static SCIMFilter createContainsFilter(AttributePath filterAttribute, String filterValue)
filterAttribute - The attribute or sub-attribute to filter by.filterValue - The filter attribute value.public static SCIMFilter createStartsWithFilter(AttributePath filterAttribute, String filterValue)
filterAttribute - The attribute or sub-attribute to filter by.filterValue - The filter attribute value.public static SCIMFilter createPresenceFilter(AttributePath filterAttribute)
filterAttribute - The attribute or sub-attribute to filter by.public static SCIMFilter createGreaterThanFilter(AttributePath filterAttribute, String filterValue)
filterAttribute - The attribute or sub-attribute to filter by.filterValue - The filter attribute value.public static SCIMFilter createGreaterOrEqualFilter(AttributePath filterAttribute, String filterValue)
filterAttribute - The attribute or sub-attribute to filter by.filterValue - The filter attribute value.public static SCIMFilter createLessThanFilter(AttributePath filterAttribute, String filterValue)
filterAttribute - The attribute or sub-attribute to filter by.filterValue - The filter attribute value.public static SCIMFilter createLessOrEqualFilter(AttributePath filterAttribute, String filterValue)
filterAttribute - The attribute or sub-attribute to filter by.filterValue - The filter attribute value.public SCIMFilterType getFilterType()
public AttributePath getFilterAttribute()
null if
not applicable for this filter type.public String getFilterValue()
null if not applicable
for this filter type.public boolean isQuoteFilterValue()
true if the filter attribute value is quoted in the string
representation of the filter.public List<SCIMFilter> getFilterComponents()
public void toString(StringBuilder builder)
builder - The buffer to which the string representation of the
filter is to be appended.Copyright © 2011–2016 UnboundID. All rights reserved.