Class RequestValidatorHandler
- java.lang.Object
-
- de.captaingoldfish.scim.sdk.server.endpoints.validation.RequestValidatorHandler
-
public class RequestValidatorHandler extends Object
Initiates the custom validation of the resources- Since:
- 07.04.2021
- Author:
- Pascal Knueppel
-
-
Constructor Summary
Constructors Constructor Description RequestValidatorHandler(ResourceHandler resourceHandler, RequestResourceValidator requestResourceValidator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidateCreate(ResourceNode resourceNode)execute the validation for creating a resourcevoidvalidateUpdate(Supplier<ResourceNode> oldResourceSupplier, ResourceNode newResource)execute the validation for updating a resource
-
-
-
Constructor Detail
-
RequestValidatorHandler
public RequestValidatorHandler(ResourceHandler resourceHandler, RequestResourceValidator requestResourceValidator)
-
-
Method Detail
-
validateCreate
public void validateCreate(ResourceNode resourceNode)
execute the validation for creating a resource- Parameters:
resourceNode- the resource to create
-
validateUpdate
public void validateUpdate(Supplier<ResourceNode> oldResourceSupplier, ResourceNode newResource)
execute the validation for updating a resource- Parameters:
oldResourceSupplier- extracts the old resource representation by calling the SCIM get-endpoint when * not already done by the ETag implementationresourceNode- the new resource representation
-
-