Uses of Class
org.forgerock.json.resource.PatchOperation
Package
Description
Classes and interfaces for core types including connections, request
handlers, resources, and their exceptions.
-
Uses of PatchOperation in org.forgerock.json.resource
Modifier and TypeMethodDescriptionstatic PatchOperation
Creates a new "add" patch operation which will add the provided value(s) to the specified field.static PatchOperation
PatchOperation.add
(JsonPointer field, Object value) Creates a new "add" patch operation which will add the provided value(s) to the specified field.static PatchOperation
Creates a new "copy" patch operation which will copy the value found at `from` to `path`.static PatchOperation
PatchOperation.copy
(JsonPointer from, JsonPointer field) Creates a new "copy" patch operation which will copy the value found at `from` to `path`.static PatchOperation
PatchOperation.copyOf
(PatchOperation operation) Returns a deep copy of the provided patch operation.static PatchOperation
Creates a new "increment" patch operation which will increment the value(s) of the specified field by the amount provided.static PatchOperation
PatchOperation.increment
(JsonPointer field, Number amount) Creates a new "increment" patch operation which will increment the value(s) of the specified field by the amount provided.static PatchOperation
Creates a new "move" patch operation which will move the value found at `from` to `path`.static PatchOperation
PatchOperation.move
(JsonPointer from, JsonPointer field) Creates a new "move" patch operation which will move the value found at `from` to `path`.static PatchOperation
Creates a new patch operation having the specified operation type, field, and value(s).static PatchOperation
PatchOperation.operation
(String operation, JsonPointer field, Object value) Creates a new patch operation having the specified operation type, field, and value(s).static PatchOperation
Creates a new "remove" patch operation which will remove the specified field.static PatchOperation
Creates a new "remove" patch operation which will remove the provided value(s) from the specified field.static PatchOperation
PatchOperation.remove
(JsonPointer field) Creates a new "remove" patch operation which will remove the specified field.static PatchOperation
PatchOperation.remove
(JsonPointer field, Object value) Creates a new "remove" patch operation which will remove the provided value(s) from the specified field.static PatchOperation
Creates a new "replace" patch operation which will replace the value(s) of the specified field with the provided value(s).static PatchOperation
PatchOperation.replace
(JsonPointer field, Object value) Creates a new "replace" patch operation which will replace the value(s) of the specified field with the provided value(s).static PatchOperation
Creates a new "transform" patch operation which sets the value at field based on a transformation.static PatchOperation
PatchOperation.transform
(JsonPointer field, Object transform) Creates a new "transform" patch operation which sets the value at field based on a transformation.static PatchOperation
Parses the provided JSON content as a patch operation.Modifier and TypeMethodDescriptionPatchRequest.getPatchOperations()
Returns the list of patch operations which should be performed against the targeted resource.static List<PatchOperation>
PatchOperation.valueOfList
(JsonValue json) Parses the provided JSON content as a list of patch operations.Modifier and TypeMethodDescriptionPatchRequest.addPatchOperation
(PatchOperation... operations) Adds one or more patch operations which should be performed against the targeted resource.static PatchOperation
PatchOperation.copyOf
(PatchOperation operation) Returns a deep copy of the provided patch operation.static PatchRequest
Requests.newPatchRequest
(String resourceContainer, String resourceId, PatchOperation... operations) Returns a new patch request with the provided resource container path, resource ID, and JSON patch operations.static PatchRequest
Requests.newPatchRequest
(String resourcePath, PatchOperation... operations) Returns a new patch request with the provided resource path and JSON patch operations.static PatchRequest
Requests.newPatchRequest
(ResourcePath resourceContainer, String resourceId, PatchOperation... operations) Returns a new patch request with the provided resource container path, resource ID, and JSON patch operations.static PatchRequest
Requests.newPatchRequest
(ResourcePath resourcePath, PatchOperation... operations) Returns a new patch request with the provided resource path and JSON patch operations.