public class IdentityFilter
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
IdentityFilter(SCIM2Filter scimFilter) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
applyComplexAttributeCondition(IdentityData ce,
java.lang.String attributeName,
java.lang.String subAttributeName,
java.lang.String comparisonValue,
Operator operator,
ComparisonType comparisonType) |
static boolean |
applyCondition(IdentityData ce,
java.lang.String attributeName,
java.lang.String comparisonValue,
Operator operator,
ComparisonType comparisonType)
Indicates if the attribute found in the IdentityData object matches the
condition described by the given parameters.
|
static IdentityFilter |
fromString(java.lang.String identityFilterStr)
Returns an instance of an IdentityFilter based on the specified String value.
|
java.util.function.Predicate<ComplexValue> |
getComplexValuePredicate() |
java.util.function.Predicate<IdentityData> |
getIdentityDataPredicate(java.util.Map<java.lang.String,java.lang.String> extraParams) |
boolean |
isEmpty()
Indicates whether this filter is empty or has not been set.
|
java.lang.String |
toString() |
public boolean isEmpty()
true if this filter is empty or has not been set. Returns false otherwise.public static IdentityFilter fromString(java.lang.String identityFilterStr) throws IdentityDataException
identityFilterStr - The string representation of a filter (in the SCIM2 filter format).IdentityDataException - If the specified String cannot be parsed or is invalid (not respecting the SCIM2
filter format).public java.util.function.Predicate<IdentityData> getIdentityDataPredicate(java.util.Map<java.lang.String,java.lang.String> extraParams)
public java.util.function.Predicate<ComplexValue> getComplexValuePredicate()
public java.lang.String toString()
toString in class java.lang.Objectpublic static boolean applyComplexAttributeCondition(IdentityData ce, java.lang.String attributeName, java.lang.String subAttributeName, java.lang.String comparisonValue, Operator operator, ComparisonType comparisonType)
public static boolean applyCondition(IdentityData ce, java.lang.String attributeName, java.lang.String comparisonValue, Operator operator, ComparisonType comparisonType)
ce - A IdentityData object containing a list of attributes
and their values.attributeName - The name of the attribute on which the condition will
be checked.comparisonValue - A value used for checking a condition, if the operator
requires a comparison value.operator - The operator for the condition.comparisonType - The comparison type for the condition.true if the condition for the attribute matches, or
false otherwise.