public abstract class IdentityPatchOperation
extends java.lang.Object
PatchOpTypeComplexValue values.IdentityAttributePath
for details.
add(String, String) and add(String, List)addComplexValue(String, ComplexValue) and addComplexValues(String, List)replace(String, String) and replace(String, List)replaceComplexValue(String, ComplexValue) and replaceComplexValues(String, List)remove(String, String) and remove(String, List)removeComplexValue(String, ComplexValue) and removeComplexValues(String, List)remove(String)| Modifier and Type | Method and Description |
|---|---|
static IdentityPatchOperation |
add(java.lang.String attributeName,
java.util.List<java.lang.String> values)
Creates a new "add value(s)" patch operation for the specified attribute, with the specified list of value(s).
|
static IdentityPatchOperation |
add(java.lang.String attributeName,
java.lang.String value)
Creates a new "add value" patch operation for the specified attribute, with the specified value.
|
static IdentityPatchOperation |
addComplexValue(java.lang.String attributeName,
ComplexValue complexValue)
Creates a new "add complex value" patch operation for the specified attribute, with the specified complex value.
|
static IdentityPatchOperation |
addComplexValues(java.lang.String attributeName,
java.util.List<ComplexValue> complexValues)
Creates a new "add complex value(s)" patch operation for the specified attribute, with the specified complex value(s).
|
IdentityAttributePath |
getAttributePath()
Returns the attribute path for this patch operation.
|
java.util.List<ComplexValue> |
getComplexValues()
Returns the list of complex values for this patch operation.
|
ComplexValue |
getFirstComplexValue()
Returns the first complex value found in the list of values for this patch operation.
|
java.lang.String |
getFirstValueAsString()
Returns the first value found in the list of values for this patch operation.
|
abstract PatchOpType |
getOpType()
Returns the operation type (add value(s), replace value(s) or delete value(s)) for this patch operation.
|
java.util.List<java.lang.String> |
getValuesAsString()
Returns the list of values for this patch operation.
|
boolean |
isValueComplex()
Indicates whether this patch operation is using complex values.
|
static IdentityPatchOperation |
remove(java.lang.String attributeName)
Creates a new "remove attribute" patch operation for the specified attribute.
|
static IdentityPatchOperation |
remove(java.lang.String attributeName,
java.util.List<java.lang.String> values)
Creates a new "remove value(s)" patch operation for the specified attribute.
|
static IdentityPatchOperation |
remove(java.lang.String attributeName,
java.lang.String value)
Creates a new "remove value" patch operation for the specified attribute.
|
static IdentityPatchOperation |
removeComplexValue(java.lang.String attributeName,
ComplexValue complexValue)
Creates a new "remove complex value" patch operation for the specified attribute.
|
static IdentityPatchOperation |
removeComplexValues(java.lang.String attributeName,
java.util.List<ComplexValue> complexValues)
Creates a new "remove complex value(s)" patch operation for the specified attribute.
|
static IdentityPatchOperation |
replace(java.lang.String attributeName,
java.util.List<java.lang.String> values)
Creates a new "replace value(s)" patch operation for the specified attribute.
|
static IdentityPatchOperation |
replace(java.lang.String attributeName,
java.lang.String value)
Creates a new "replace value" patch operation for the specified attribute.
|
static IdentityPatchOperation |
replaceComplexValue(java.lang.String attributeName,
ComplexValue complexValue)
Creates a new "replace complex value" patch operation for the specified attribute.
|
static IdentityPatchOperation |
replaceComplexValues(java.lang.String attributeName,
java.util.List<ComplexValue> complexValues)
Creates a new "replace complex value(s)" patch operation for the specified attribute.
|
void |
setValuesFromString(java.util.List<java.lang.String> values) |
java.lang.String |
toString()
Returns the String representation of this object.
|
java.lang.String |
toString(boolean isHideValueOfPasswordAttributes)
Returns the String representation of this object.
|
public abstract PatchOpType getOpType()
public IdentityAttributePath getAttributePath()
public java.lang.String getFirstValueAsString()
public java.util.List<java.lang.String> getValuesAsString()
public void setValuesFromString(java.util.List<java.lang.String> values)
public ComplexValue getFirstComplexValue()
isValueComplex() method to verify whether
this object is using complex values before calling this method to avoid a potential IllegalArgumentException.public java.util.List<ComplexValue> getComplexValues()
isValueComplex() method to verify whether
this object is using complex values before calling this method to avoid a potential IllegalArgumentException.public boolean isValueComplex()
true if this patch operation is using complex values, or false otherwise.public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(boolean isHideValueOfPasswordAttributes)
isHideValueOfPasswordAttributes - Indicates whether attributes with password values should be hidden
from the returned String.public static IdentityPatchOperation add(java.lang.String attributeName, java.lang.String value)
attributeName - The name of the attribute.value - The value for the "add value" patch operation on the attribute.public static IdentityPatchOperation add(java.lang.String attributeName, java.util.List<java.lang.String> values)
attributeName - The name of the attribute.values - The values for the "add value" patch operation on the attribute.public static IdentityPatchOperation addComplexValue(java.lang.String attributeName, ComplexValue complexValue)
attributeName - The name of the attribute.complexValue - The complex value for the "add value" patch operation on the attribute.public static IdentityPatchOperation addComplexValues(java.lang.String attributeName, java.util.List<ComplexValue> complexValues)
attributeName - The name of the attribute.complexValues - The complex value(s) for the "add value(s)" patch operation on the attribute.public static IdentityPatchOperation remove(java.lang.String attributeName)
attributeName - The name of the attribute.public static IdentityPatchOperation remove(java.lang.String attributeName, java.lang.String value)
attributeName - The name of the attribute.value - The value for the "remove value" operation.public static IdentityPatchOperation remove(java.lang.String attributeName, java.util.List<java.lang.String> values)
attributeName - The name of the attribute.values - The list of values for the "remove value(s)" operation.public static IdentityPatchOperation removeComplexValue(java.lang.String attributeName, ComplexValue complexValue)
attributeName - The name of the attribute.complexValue - The complex value to remove as part of the "remove complex value" operation.public static IdentityPatchOperation removeComplexValues(java.lang.String attributeName, java.util.List<ComplexValue> complexValues)
attributeName - The name of the attribute.complexValues - The list of complex value(s) to remove as part of the "remove complex value" operation.public static IdentityPatchOperation replace(java.lang.String attributeName, java.lang.String value)
attributeName - The name of the attribute.value - The new value to set for the attribute as part of the "replace value" patch operation.public static IdentityPatchOperation replace(java.lang.String attributeName, java.util.List<java.lang.String> values)
attributeName - The name of the attribute.values - The new value(s) to set for the attribute as part of the "replace value(s)" patch operation.public static IdentityPatchOperation replaceComplexValue(java.lang.String attributeName, ComplexValue complexValue)
attributeName - The name of the attribute.complexValue - The new complex value to set for the attribute as part of the "replace complex value" patch operation.public static IdentityPatchOperation replaceComplexValues(java.lang.String attributeName, java.util.List<ComplexValue> complexValues)
attributeName - The name of the attribute.complexValues - The new complex values to set for the attribute as part of the "replace complex value(s)" patch operation.