Class RequestSchemaValidator
- java.lang.Object
-
- de.captaingoldfish.scim.sdk.server.schemas.validation.AbstractSchemaValidator
-
- de.captaingoldfish.scim.sdk.server.schemas.validation.RequestSchemaValidator
-
public class RequestSchemaValidator extends AbstractSchemaValidator
- Since:
- 24.04.2021
- Author:
- Pascal Knueppel
-
-
Field Summary
-
Fields inherited from class de.captaingoldfish.scim.sdk.server.schemas.validation.AbstractSchemaValidator
resourceNodeType
-
-
Constructor Summary
Constructors Constructor Description RequestSchemaValidator(ServiceProvider serviceProvider, Class resourceNodeType, HttpMethod httpMethod)RequestSchemaValidator(ServiceProvider serviceProvider, Class resourceNodeType, HttpMethod httpMethod, ValidationContext validationContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ValidationContextgetValidationContext()the current validation context for the request.protected Optional<com.fasterxml.jackson.databind.JsonNode>validateAttribute(SchemaAttribute schemaAttribute, com.fasterxml.jackson.databind.JsonNode attribute)validates the attribute in a request context-
Methods inherited from class de.captaingoldfish.scim.sdk.server.schemas.validation.AbstractSchemaValidator
checkDocumentAndMetaSchemaRelationship, getAttributeExtractor, validateDocument, validateDocument
-
-
-
-
Constructor Detail
-
RequestSchemaValidator
public RequestSchemaValidator(ServiceProvider serviceProvider, Class resourceNodeType, HttpMethod httpMethod)
-
RequestSchemaValidator
public RequestSchemaValidator(ServiceProvider serviceProvider, Class resourceNodeType, HttpMethod httpMethod, ValidationContext validationContext)
-
-
Method Detail
-
validateAttribute
protected Optional<com.fasterxml.jackson.databind.JsonNode> validateAttribute(SchemaAttribute schemaAttribute, com.fasterxml.jackson.databind.JsonNode attribute)
validates the attribute in a request context- Specified by:
validateAttributein classAbstractSchemaValidator- Parameters:
schemaAttribute- the definition of the attribute that must be validatedattribute- the attribute to validate- Returns:
- the validated attribute
-
getValidationContext
protected ValidationContext getValidationContext()
the current validation context for the request. If any error occurs the execution must be aborted before theResourceHandlerimplementation is called
-
-