Class PatchBuilder.PatchOperationBuilder<T extends ResourceNode>
java.lang.Object
de.captaingoldfish.scim.sdk.client.builder.PatchBuilder.PatchOperationBuilder<T>
- Enclosing class:
- PatchBuilder<T extends ResourceNode>
used to build a simple patch operation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds this operationnext()builds this patch operation and goes on to the next operationsets the operation that should be executed on the resource
Note that the "path"-attribute is required for a remove operationsets the optional path attribute.
Note that the valueNode is considered the resource itself if not path attribute is setsets a single value to this patch operationvalueNode(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 targetvalueNodes(List<? extends com.fasterxml.jackson.databind.JsonNode> valueNodes) sets a list of nodes that might be a simple text-nodes, json objects or json arrays that will then be added into an array node.sets a set of values that might be added, replaced or removed from the targeted resource
-
Constructor Details
-
PatchOperationBuilder
-
-
Method Details
-
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
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
sets a single value to this patch operation -
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
-
valueNodes
public PatchBuilder.PatchOperationBuilder<T> valueNodes(List<? extends com.fasterxml.jackson.databind.JsonNode> valueNodes) sets a list of nodes that might be a simple text-nodes, json objects or json arrays that will then be added into an array node.- Parameters:
valueNode- list of simple text-nodes, json objects or json arrays
-
build
builds this operation -
next
builds this patch operation and goes on to the next operation
-