Uses of Class
org.forgerock.json.resource.PatchOperation
Packages that use 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
Methods in org.forgerock.json.resource that return PatchOperationModifier and TypeMethodDescriptionstatic PatchOperationCreates a new "add" patch operation which will add the provided value(s) to the specified field.static PatchOperationPatchOperation.add(JsonPointer field, Object value) Creates a new "add" patch operation which will add the provided value(s) to the specified field.static PatchOperationCreates a new "copy" patch operation which will copy the value found at `from` to `path`.static PatchOperationPatchOperation.copy(JsonPointer from, JsonPointer field) Creates a new "copy" patch operation which will copy the value found at `from` to `path`.static PatchOperationPatchOperation.copyOf(PatchOperation operation) Returns a deep copy of the provided patch operation.static PatchOperationCreates a new "increment" patch operation which will increment the value(s) of the specified field by the amount provided.static PatchOperationPatchOperation.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 PatchOperationCreates a new "move" patch operation which will move the value found at `from` to `path`.static PatchOperationPatchOperation.move(JsonPointer from, JsonPointer field) Creates a new "move" patch operation which will move the value found at `from` to `path`.static PatchOperationCreates a new patch operation having the specified operation type, field, and value(s).static PatchOperationPatchOperation.operation(String operation, JsonPointer field, Object value) Creates a new patch operation having the specified operation type, field, and value(s).static PatchOperationCreates a new "remove" patch operation which will remove the specified field.static PatchOperationCreates a new "remove" patch operation which will remove the provided value(s) from the specified field.static PatchOperationPatchOperation.remove(JsonPointer field) Creates a new "remove" patch operation which will remove the specified field.static PatchOperationPatchOperation.remove(JsonPointer field, Object value) Creates a new "remove" patch operation which will remove the provided value(s) from the specified field.static PatchOperationCreates a new "replace" patch operation which will replace the value(s) of the specified field with the provided value(s).static PatchOperationPatchOperation.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 PatchOperationCreates a new "transform" patch operation which sets the value at field based on a transformation.static PatchOperationPatchOperation.transform(JsonPointer field, Object transform) Creates a new "transform" patch operation which sets the value at field based on a transformation.static PatchOperationParses the provided JSON content as a patch operation.Methods in org.forgerock.json.resource that return types with arguments of type PatchOperationModifier 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.Methods in org.forgerock.json.resource with parameters of type PatchOperationModifier and TypeMethodDescriptionPatchRequest.addPatchOperation(PatchOperation... operations) Adds one or more patch operations which should be performed against the targeted resource.static PatchOperationPatchOperation.copyOf(PatchOperation operation) Returns a deep copy of the provided patch operation.static PatchRequestRequests.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 PatchRequestRequests.newPatchRequest(String resourcePath, PatchOperation... operations) Returns a new patch request with the provided resource path and JSON patch operations.static PatchRequestRequests.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 PatchRequestRequests.newPatchRequest(ResourcePath resourcePath, PatchOperation... operations) Returns a new patch request with the provided resource path and JSON patch operations.