public class IdentityDataUtils
extends java.lang.Object
IdentityData objects.
This includes methods that can check for conditions on IdentityData objects, apply functions on IdentityData objects,
and compare IdentityData objects.| Modifier and Type | Method and Description |
|---|---|
static boolean |
applyFilter(IdentityData identityData,
IdentityFilter identityFilter)
Indicates whether the specified IdentityData object matches the specified filter.
|
static boolean |
applyFilter(IdentityData identityData,
IdentityFilter identityFilter,
java.util.Map<java.lang.String,java.lang.String> extraParams)
Indicates whether the specified IdentityData object or the extra attributes and values matches the specified filter.
|
static boolean |
applyFilters(IdentityData identityData,
java.util.List<IdentityFilter> identityFilters)
Indicates whether the specified IdentityData object matches all the specified filters.
|
static boolean |
applyFilters(IdentityData identityData,
java.util.List<IdentityFilter> identityFilters,
java.util.Map<java.lang.String,java.lang.String> extraParams)
Indicates whether the specified IdentityData object or the extra attributes and values match all the specified filters.
|
static void |
applyPatch(IdentityData identityData,
IdentityPatch identityPatch)
Applies a set of patch operations (modifications to attribute(s) and their value(s)) to the specified
identity data object.
|
static void |
applyPatchOperation(IdentityData identityData,
IdentityPatchOperation identityPatchOp)
Applies a single patch operation to the specified identity data object.
|
static void |
applyValues(IdentityData identityData,
IdentityAttributePath attrPath,
java.util.List<java.lang.String> values)
Sets the specified values on the identity data object for the target of the attribute path.
|
static IdentityPatch |
getDelta(IdentityData first,
IdentityData second)
Compares two identity data objects and returns the delta between them in the form of an IdentityPatch object.
|
static IdentityPatch |
getDelta(IdentityData first,
IdentityData second,
IdentityObjectSchema identityObjectSchema)
Compares two identity data objects and returns the delta between them in the form of an IdentityPatch object.
|
static java.util.List<java.lang.String> |
getValuesAsString(IdentityData identityData,
IdentityAttributePath identityAttributePath)
Returns the list of values found inside the identity data object at the specified attribute path.
|
static boolean |
hasSubAttribute(IdentityData identityData,
java.lang.String attributeName,
java.lang.String subAttrName)
Indicates whether the identity data object contains the specified attribute and its associated sub-attribute.
|
static boolean |
isAttributeValuesComplex(IdentityData identityData,
IdentityAttributePath identityAttributePath)
Indicates whether the values found inside the identity data object at the specified attribute path are complex
values.
|
static boolean |
isListEqualIgnoreCaseAndOrder(java.util.List<java.lang.String> values1,
java.util.List<java.lang.String> values2)
Indicates whether the two lists are equal (same number of elements), ignoring element order, and ignoring case.
|
public static boolean applyFilter(IdentityData identityData, IdentityFilter identityFilter)
identityData - An IdentityData object.identityFilter - An IdentityFilter object (a conditional filter or predicate).true if the specified IdentityData object matches the specified filter.
Returns false otherwise.public static boolean applyFilters(IdentityData identityData, java.util.List<IdentityFilter> identityFilters)
identityData - An IdentityData object.identityFilters - A list of IdentityFilter objects (a conditional filter or predicate).true if the specified IdentityData object matches all the specified filters.
Returns false otherwise.public static boolean applyFilter(IdentityData identityData, IdentityFilter identityFilter, java.util.Map<java.lang.String,java.lang.String> extraParams)
identityData - An IdentityData object.identityFilter - An IdentityFilter object (a conditional filter or predicate).extraParams - A map of extra attributes and their associated value (key: attribute name, value: attribute value).true if the specified IdentityData object or the extra attributes and values matches the specified filter.
Returns false otherwise.public static boolean applyFilters(IdentityData identityData, java.util.List<IdentityFilter> identityFilters, java.util.Map<java.lang.String,java.lang.String> extraParams)
identityData - An IdentityData object.identityFilters - A list of IdentityFilter objects (a conditional filter or predicate).extraParams - A map of extra attributes and their associated value (key: attribute name, value: attribute value).true if the specified IdentityData object or the extra attributes and values match all the specified filters.
Returns false otherwise.public static boolean isAttributeValuesComplex(IdentityData identityData, IdentityAttributePath identityAttributePath)
identityData - The identity data object.identityAttributePath - An attribute path.true if the values found inside the identity data object at the specified attribute path are
complex values, or false otherwise.public static java.util.List<java.lang.String> getValuesAsString(IdentityData identityData, IdentityAttributePath identityAttributePath)
identityData - An identity data object.identityAttributePath - An attribute path.public static void applyPatch(IdentityData identityData, IdentityPatch identityPatch)
identityData - An identity data object.identityPatch - A set of patch operations to apply on the identity data object.public static void applyPatchOperation(IdentityData identityData, IdentityPatchOperation identityPatchOp)
identityData - An identity data object.identityPatchOp - A single patch operation to apply on the identity data object.public static void applyValues(IdentityData identityData, IdentityAttributePath attrPath, java.util.List<java.lang.String> values)
null, the target of the attribute path will be removed.identityData - An identity data object.attrPath - An attribute path.values - The set of values to set for the target of the attribute path.public static boolean hasSubAttribute(IdentityData identityData, java.lang.String attributeName, java.lang.String subAttrName)
identityData - An identity data object.attributeName - The name of the attribute.subAttrName - The name of the sub-attribute.true if the identity data object contains the specified attribute and its associated sub-attribute.
Returns false otherwise.public static IdentityPatch getDelta(IdentityData first, IdentityData second)
first - An identity data object.second - An identity data object.public static IdentityPatch getDelta(IdentityData first, IdentityData second, IdentityObjectSchema identityObjectSchema)
first - An identity data object.second - An identity data object.identityObjectSchema - The schema for the attributes contained in the identity data objects.public static boolean isListEqualIgnoreCaseAndOrder(java.util.List<java.lang.String> values1,
java.util.List<java.lang.String> values2)
values1 - A list of values.values2 - A list of values.true if the two lists are equal, or false otherwise.