Class RequestValidatorHandler
java.lang.Object
de.captaingoldfish.scim.sdk.server.endpoints.validation.RequestValidatorHandler
Initiates the custom validation of the resources
- Since:
- 07.04.2021
- Author:
- Pascal Knueppel
-
Constructor Summary
ConstructorsConstructorDescriptionRequestValidatorHandler(ResourceHandler resourceHandler, RequestResourceValidator requestResourceValidator, Context requestContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidateCreate(ResourceNode resourceNode) execute the validation for creating a resourcevoidvalidateUpdate(Supplier<ResourceNode> oldResourceSupplier, ResourceNode newResource) execute the validation for updating a resource
-
Constructor Details
-
RequestValidatorHandler
public RequestValidatorHandler(ResourceHandler resourceHandler, RequestResourceValidator requestResourceValidator, Context requestContext)
-
-
Method Details
-
validateCreate
execute the validation for creating a resource- Parameters:
resourceNode- the resource to create
-
validateUpdate
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
-