Class PatchHandler
- java.lang.Object
-
- de.captaingoldfish.scim.sdk.server.patch.PatchHandler
-
public class PatchHandler extends Object
author Pascal Knueppel
created at: 29.10.2019 - 09:40
this class is used to resolve patch operations on resources
-
-
Constructor Summary
Constructors Constructor Description PatchHandler(PatchConfig patchConfig, ResourceType resourceType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScimObjectNodegetRequestedAttributes()this object will hold the attributes that have been present within the operations.booleanisChangedResource()this attribute tells us if the resource was effectively changed meaning that an attribute did receive a new value that differs from the value before<T extends ResourceNode>
TpatchResource(T resource, PatchOpRequest patchOpRequest)this method will execute the patch operation on the given resource
-
-
-
Constructor Detail
-
PatchHandler
public PatchHandler(PatchConfig patchConfig, ResourceType resourceType)
-
-
Method Detail
-
patchResource
public <T extends ResourceNode> T patchResource(T resource, PatchOpRequest patchOpRequest)
this method will execute the patch operation on the given resource- Parameters:
resource- the resource representation that should be patchedpatchOpRequest- the patch operation that should be executed on the resource- Returns:
- the patched resource
-
getRequestedAttributes
public ScimObjectNode getRequestedAttributes()
this object will hold the attributes that have been present within the operations. This is used to return these attributes in requests in which the attributes parameter was present.
-
isChangedResource
public boolean isChangedResource()
this attribute tells us if the resource was effectively changed meaning that an attribute did receive a new value that differs from the value before
-
-