Class PatchBuilder.PatchOperationBuilder<T extends ResourceNode>
- java.lang.Object
-
- de.captaingoldfish.scim.sdk.client.builder.PatchBuilder.PatchOperationBuilder<T>
-
- Enclosing class:
- PatchBuilder<T extends ResourceNode>
public static class PatchBuilder.PatchOperationBuilder<T extends ResourceNode> extends Object
used to build a simple patch operation
-
-
Constructor Summary
Constructors Constructor Description PatchOperationBuilder(PatchBuilder<T> patchBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PatchBuilder<T>build()builds this operationPatchBuilder.PatchOperationBuilder<T>next()builds this patch operation and goes on to the next operationPatchBuilder.PatchOperationBuilder<T>op(PatchOp op)sets the operation that should be executed on the resource
Note that the "path"-attribute is required for a remove operationPatchBuilder.PatchOperationBuilder<T>path(String path)sets the optional path attribute.
Note that the valueNode is considered the resource itself if not path attribute is setPatchBuilder.PatchOperationBuilder<T>value(String values)sets a single value to this patch operationPatchBuilder.PatchOperationBuilder<T>valueNode(com.fasterxml.jackson.databind.JsonNode valueNode)sets a node that might be a simple text-node a json object or a json array that will then be added, replaced or removed from the targetPatchBuilder.PatchOperationBuilder<T>values(List<String> values)sets a set of values that might be added, replaced or removed from the targeted resource
-
-
-
Constructor Detail
-
PatchOperationBuilder
public PatchOperationBuilder(PatchBuilder<T> patchBuilder)
-
-
Method Detail
-
path
public PatchBuilder.PatchOperationBuilder<T> path(String path)
sets the optional path attribute.
Note that the valueNode is considered the resource itself if not path attribute is set- Parameters:
path- the scim node name e.g. "name.givenName" or "emails[primary eq true]" or just "userName"
-
op
public PatchBuilder.PatchOperationBuilder<T> op(PatchOp op)
sets the operation that should be executed on the resource
Note that the "path"-attribute is required for a remove operation- Parameters:
op- the operation that should be executed
-
value
public PatchBuilder.PatchOperationBuilder<T> value(String values)
sets a single value to this patch operation
-
values
public PatchBuilder.PatchOperationBuilder<T> values(List<String> values)
sets a set of values that might be added, replaced or removed from the targeted resource
-
valueNode
public PatchBuilder.PatchOperationBuilder<T> valueNode(com.fasterxml.jackson.databind.JsonNode valueNode)
sets a node that might be a simple text-node a json object or a json array that will then be added, replaced or removed from the target- Parameters:
valueNode- a simple text-node, a json object or a json array
-
build
public PatchBuilder<T> build()
builds this operation
-
next
public PatchBuilder.PatchOperationBuilder<T> next()
builds this patch operation and goes on to the next operation
-
-