Class DefaultPatchHandler
java.lang.Object
org.apache.directory.scim.core.repository.DefaultPatchHandler
- All Implemented Interfaces:
PatchHandler
The default implementation of a PatchHandler that applies PatchOperations by walking a map equivalent
of ScimResource.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends ScimResource>
Tapply
(T original, List<PatchOperation> patchOperations) Applies patch operations to a ScimResource.static AttributeReference
attributeReference
(ValuePathExpression expression) static ValuePathExpression
valuePathExpression
(PatchOperation operation)
-
Field Details
-
PRIMARY
- See Also:
-
-
Constructor Details
-
DefaultPatchHandler
-
DefaultPatchHandler
protected DefaultPatchHandler()
-
-
Method Details
-
apply
Description copied from interface:PatchHandler
Applies patch operations to a ScimResource.- Specified by:
apply
in interfacePatchHandler
- Type Parameters:
T
- The type of ScimResource.- Parameters:
original
- The source ScimResource to apply patches to.patchOperations
- The list of patch operations to apply.- Returns:
- An updated ScimResource with all patches applied
-
valuePathExpression
-
attributeReference
-