Class AbstractPatch
- java.lang.Object
-
- de.captaingoldfish.scim.sdk.server.patch.AbstractPatch
-
- Direct Known Subclasses:
PatchResourceHandler,PatchTargetHandler
public abstract class AbstractPatch extends Object
author Pascal Knueppel
created at: 30.10.2019 - 09:10
abstract class that provides basic methods for patching
-
-
Field Summary
Fields Modifier and Type Field Description protected ResourceTyperesourceTypethis resource type is used to get the attribute definitions of the values from the patch operations
-
Constructor Summary
Constructors Constructor Description AbstractPatch(ResourceType resourceType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
resourceType
protected final ResourceType resourceType
this resource type is used to get the attribute definitions of the values from the patch operations
-
-
Constructor Detail
-
AbstractPatch
public AbstractPatch(ResourceType resourceType)
-
-
Method Detail
-
getSchemaAttribute
protected SchemaAttribute getSchemaAttribute(String key)
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
-
-