Class PatchGenerator
java.lang.Object
org.apache.directory.scim.tools.diff.PatchGenerator
Generates a diff (i.e. a list of
PatchOperation
s) between two SCIM resources.
This class could be used by SCIM clients when they only want to send PATCH requests over the wire (and communicate
only the delta between the original and the modified resource).
This class can also be used when testing SCIM servers as an easy way to generate a list of PatchOperation
s.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends ScimResource>
List<PatchOperation>diff
(T left, T right) Returns a list ofPatchOperation
s that contain the differences between twoScimResource
s.
-
Constructor Details
-
PatchGenerator
-
-
Method Details
-
diff
Returns a list ofPatchOperation
s that contain the differences between twoScimResource
s.- Type Parameters:
T
- The type of the scim resource.- Parameters:
left
- an unmodified scim resource, as represented in a datastore.right
- the modified version of the original scim resource.- Returns:
- a list of
PatchOperation
s that contain the differences between twoScimResource
s.
-