Class AbstractPatch
java.lang.Object
de.captaingoldfish.scim.sdk.server.patch.AbstractPatch
- Direct Known Subclasses:
PatchResourceHandler,PatchTargetHandler
author Pascal Knueppel
created at: 30.10.2019 - 09:10
abstract class that provides basic methods for patching
created at: 30.10.2019 - 09:10
abstract class that provides basic methods for patching
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ResourceTypethis resource type is used to get the attribute definitions of the values from the patch operations -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.fasterxml.jackson.databind.JsonNodegetAttributeFromObject(com.fasterxml.jackson.databind.JsonNode parentNode, String attributeName) gets or creates a new attribute from or into the given parent node based on the given attribute nameprotected SchemaAttributegetSchemaAttribute(String key) tries to resolve that attribute path and gets the schema of the attribute
-
Field Details
-
resourceType
this resource type is used to get the attribute definitions of the values from the patch operations
-
-
Constructor Details
-
AbstractPatch
-
-
Method Details
-
getSchemaAttribute
tries to resolve that attribute path and gets the schema of the attribute- Parameters:
key- the attribute name of which the definition should be extracted- Returns:
- the schema attribute or an exception if the definition does not exist for the resourceType
-
getAttributeFromObject
protected com.fasterxml.jackson.databind.JsonNode getAttributeFromObject(com.fasterxml.jackson.databind.JsonNode parentNode, String attributeName) gets or creates a new attribute from or into the given parent node based on the given attribute name- Parameters:
parentNode- the parent node that might already hold the specified node or will get a node in the type of the attributes definitionattributeName- the attribute name- Returns:
- the child object from the parentNode
-