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 Details

    • PatchOperationBuilder

      public PatchOperationBuilder(PatchBuilder<T> patchBuilder)
  • 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

      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
    • 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

      public PatchBuilder<T> build()
      builds this operation
    • next

      builds this patch operation and goes on to the next operation