Class PatchRequestOperation
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializable.Base
com.fasterxml.jackson.databind.JsonNode
com.fasterxml.jackson.databind.node.BaseJsonNode
com.fasterxml.jackson.databind.node.ContainerNode<com.fasterxml.jackson.databind.node.ObjectNode>
com.fasterxml.jackson.databind.node.ObjectNode
de.captaingoldfish.scim.sdk.common.resources.base.ScimObjectNode
de.captaingoldfish.scim.sdk.common.request.PatchRequestOperation
- All Implemented Interfaces:
com.fasterxml.jackson.core.TreeNode,com.fasterxml.jackson.databind.JsonSerializable,com.fasterxml.jackson.databind.node.JsonNodeCreator,ScimNode,Serializable,Iterable<com.fasterxml.jackson.databind.JsonNode>
author Pascal Knueppel
created at: 29.10.2019 - 08:32
represents a single operation within a patch request
created at: 29.10.2019 - 08:32
represents a single operation within a patch request
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonNode
com.fasterxml.jackson.databind.JsonNode.OverwriteModeNested classes/interfaces inherited from interface com.fasterxml.jackson.databind.JsonSerializable
com.fasterxml.jackson.databind.JsonSerializable.Base -
Field Summary
Fields inherited from class com.fasterxml.jackson.databind.node.ObjectNode
_childrenFields inherited from class com.fasterxml.jackson.databind.node.ContainerNode
_nodeFactory -
Constructor Summary
ConstructorsConstructorDescriptionPatchRequestOperation(String path, PatchOp op, List<String> values, com.fasterxml.jackson.databind.JsonNode valueNode) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()getOp()Each PATCH operation object MUST have exactly one "op" member, whose value indicates the operation to perform and MAY be one of "add", "remove", or "replace"
(This will never return null on server side for schema validation is executed before this method is called)getPath()The "path" attribute value is a String containing an attribute path describing the target of the operation.The "path" attribute is OPTIONAL for "add" and "replace" and is REQUIRED for "remove" operations.Optional<com.fasterxml.jackson.databind.JsonNode>getValue()the new value of the targeted attributeOptional<com.fasterxml.jackson.databind.node.ArrayNode>reads the value-attribute and if it is not anArrayNodeit will be parsed to aJsonNodethat will be embedded within anArrayNodethe new value of the targeted attribute
(This will never return null on server side for schema validation is executed before this method is called)voidEach PATCH operation object MUST have exactly one "op" member, whose value indicates the operation to perform and MAY be one of "add", "remove", or "replace"voidThe "path" attribute value is a String containing an attribute path describing the target of the operation.The "path" attribute is OPTIONAL for "add" and "replace" and is REQUIRED for "remove" operations.voidsetValue(com.fasterxml.jackson.databind.JsonNode value) the new value of the targeted attributevoidthe new value of the targeted attributevoidsetValueNode(com.fasterxml.jackson.databind.JsonNode value) the new value of the targeted attribute. in this case the value is represented by the resource itselfvoidthe new value of the targeted attributeMethods inherited from class de.captaingoldfish.scim.sdk.common.resources.base.ScimObjectNode
addAttribute, equals, getArrayAttribute, getBinaryAttribute, getBooleanAttribute, getDateTimeAttribute, getDoubleAttribute, getIntegerAttribute, getLongAttribute, getObjectAttribute, getSchemaAttribute, getSimpleArrayAttribute, getSimpleArrayAttribute, getSimpleArrayAttributeSet, getSimpleArrayAttributeSet, getStringAttribute, getStringAttribute, isEmpty, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeList, setDateTimeAttribute, setDateTimeAttribute, setDateTimeAttribute, setDateTimeAttribute, setStringAttributeList, setStringAttributeList, toPrettyString, toStringMethods inherited from class com.fasterxml.jackson.databind.node.ObjectNode
_at, _childrenEqual, _contentsToSerialize, _put, _withArray, _withArrayAddTailProperty, _withObject, _withObjectAddTailProperty, asToken, deepCopy, elements, equals, fieldNames, fields, findParent, findParents, findValue, findValues, findValuesAsText, forEachEntry, get, get, getNodeType, hashCode, isEmpty, isObject, optional, path, path, properties, propertyStream, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, putAll, putAll, putArray, putIfAbsent, putNull, putObject, putPOJO, putRawValue, remove, remove, removeAll, removeIf, replace, required, retain, retain, serialize, serializeFilteredContents, serializeWithType, set, setAll, setAll, size, values, valueStream, with, withArray, withArrayProperty, withObject, withObjectProperty, without, withoutMethods inherited from class com.fasterxml.jackson.databind.node.ContainerNode
arrayNode, arrayNode, asText, binaryNode, binaryNode, booleanNode, missingNode, nullNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, objectNode, pojoNode, rawValueNode, removeNulls, textNodeMethods inherited from class com.fasterxml.jackson.databind.node.BaseJsonNode
_bigIntFromBigDec, _jsonPointerIfValid, _reportWrongNodeOperation, _reportWrongNodeType, _withXxxMayReplace, _withXxxVerifyReplace, findPath, numberType, required, traverse, traverse, withArray, withObjectMethods inherited from class com.fasterxml.jackson.databind.JsonNode
_reportRequiredViolation, _this, asBoolean, asBoolean, asDouble, asDouble, asInt, asInt, asLong, asLong, asOptional, asText, at, at, bigIntegerValue, binaryValue, booleanValue, canConvertToExactIntegral, canConvertToInt, canConvertToLong, decimalValue, doubleValue, findParents, findValues, findValuesAsText, floatValue, has, has, hasNonNull, hasNonNull, intValue, isArray, isBigDecimal, isBigInteger, isBinary, isBoolean, isContainerNode, isDouble, isFloat, isFloatingPointNumber, isInt, isIntegralNumber, isLong, isMissingNode, isNull, isNumber, isPojo, isShort, isTextual, isValueNode, iterator, longValue, numberValue, optional, require, requiredAt, requiredAt, requireNonNull, shortValue, textValue, withArray, withArray, withObject, withObjectMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface de.captaingoldfish.scim.sdk.common.resources.base.ScimNode
getAttributeDescription, getAttributeName, getCanonicalValues, getMutability, getReferenceTypes, getReturned, getScimNodeName, getUniqueness, getValueType, isCaseExact, isMultiValued, isRequired
-
Constructor Details
-
PatchRequestOperation
-
PatchRequestOperation
public PatchRequestOperation()
-
-
Method Details
-
getPath
The "path" attribute value is a String containing an attribute path describing the target of the operation.The "path" attribute is OPTIONAL for "add" and "replace" and is REQUIRED for "remove" operations. -
setPath
The "path" attribute value is a String containing an attribute path describing the target of the operation.The "path" attribute is OPTIONAL for "add" and "replace" and is REQUIRED for "remove" operations. -
getOp
Each PATCH operation object MUST have exactly one "op" member, whose value indicates the operation to perform and MAY be one of "add", "remove", or "replace"
(This will never return null on server side for schema validation is executed before this method is called) -
setOp
Each PATCH operation object MUST have exactly one "op" member, whose value indicates the operation to perform and MAY be one of "add", "remove", or "replace" -
getValue
the new value of the targeted attribute -
setValue
the new value of the targeted attribute -
setValue
public void setValue(com.fasterxml.jackson.databind.JsonNode value) the new value of the targeted attribute -
getValues
the new value of the targeted attribute
(This will never return null on server side for schema validation is executed before this method is called) -
setValues
the new value of the targeted attribute -
getValueNode
reads the value-attribute and if it is not anArrayNodeit will be parsed to aJsonNodethat will be embedded within anArrayNode -
setValueNode
public void setValueNode(com.fasterxml.jackson.databind.JsonNode value) the new value of the targeted attribute. in this case the value is represented by the resource itself -
builder
-