Class PatchHandler
java.lang.Object
de.captaingoldfish.scim.sdk.server.patch.PatchHandler
author Pascal Knueppel
created at: 29.10.2019 - 09:40
this class is used to resolve patch operations on resources
created at: 29.10.2019 - 09:40
this class is used to resolve patch operations on resources
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionthis object will hold the attributes that have been present within the operations.booleanthis 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 Details
-
PatchHandler
-
-
Method Details
-
patchResource
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
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
-