Package | Description |
---|---|
org.forgerock.json.resource |
Classes and interfaces for core types including connections, request
handlers, resources, and their exceptions.
|
Modifier and Type | Method and Description |
---|---|
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 |
PatchOperation.add(String field,
Object value)
Creates a new "add" patch operation which will add the provided value(s)
to the specified field.
|
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.copy(String from,
String 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 |
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 |
PatchOperation.increment(String 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 |
PatchOperation.move(JsonPointer from,
JsonPointer field)
Creates a new "move" patch operation which will move the value found at `from` to `path`.
|
static PatchOperation |
PatchOperation.move(String from,
String field)
Creates a new "move" patch operation which will move the value found at `from` to `path`.
|
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 |
PatchOperation.operation(String operation,
String field,
Object value)
Creates a new patch operation having the specified operation type, field,
and value(s).
|
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 |
PatchOperation.remove(String field)
Creates a new "remove" patch operation which will remove the specified
field.
|
static PatchOperation |
PatchOperation.remove(String field,
Object value)
Creates a new "remove" patch operation which will remove the provided
value(s) from the specified field.
|
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 |
PatchOperation.replace(String 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 |
PatchOperation.transform(JsonPointer field,
Object transform)
Creates a new "transform" patch operation which sets the value at field based on a
transformation.
|
static PatchOperation |
PatchOperation.transform(String field,
Object transform)
Creates a new "transform" patch operation which sets the value at field based on a
transformation.
|
static PatchOperation |
PatchOperation.valueOf(JsonValue json)
Parses the provided JSON content as a patch operation.
|
Modifier and Type | Method and Description |
---|---|
List<PatchOperation> |
PatchRequest.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 Type | Method and Description |
---|---|
PatchRequest |
PatchRequest.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(ResourcePath 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(String resourcePath,
PatchOperation... operations)
Returns a new patch request with the provided resource path and JSON
patch operations.
|
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.
|
Copyright © 2010-2018, ForgeRock All Rights Reserved.