public class ServerSideValidator extends AbstractValidator
| Constructor and Description |
|---|
ServerSideValidator() |
| Modifier and Type | Method and Description |
|---|---|
static void |
validateCreatedSCIMObject(AbstractSCIMObject scimObject,
SCIMResourceTypeSchema resourceSchema) |
static AbstractSCIMObject |
validateResourceTypeSCIMObject(AbstractSCIMObject scimObject) |
static void |
validateRetrievedSCIMObject(AbstractSCIMObject scimObject,
SCIMResourceTypeSchema resourceSchema,
String reuqestedAttributes,
String requestedExcludingAttributes) |
static void |
validateRetrievedSCIMObjectInList(AbstractSCIMObject scimObject,
SCIMResourceTypeSchema resourceSchema,
String reuqestedAttributes,
String requestedExcludingAttributes) |
static void |
validateRetrievedSCIMRoleObject(Role scimObject,
String requestedAttributes,
String requestedExcludingAttributes)
Validate Retrieved SCIM Role Object.
|
static AbstractSCIMObject |
validateUpdatedSCIMObject(AbstractSCIMObject oldObject,
AbstractSCIMObject newObject,
SCIMResourceTypeSchema resourceSchema)
Perform validation on SCIM Object update on service provider side.
|
static AbstractSCIMObject |
validateUpdatedSCIMObject(AbstractSCIMObject oldObject,
AbstractSCIMObject newObject,
SCIMResourceTypeSchema resourceSchema,
boolean validatePerPatchOperation)
Perform validation on SCIM Object update on service provider side.
|
checkIfReadOnlyAndImmutableAttributesModified, removeAnyReadOnlyAttributes, setDisplayNameInComplexMultiValuedAttributes, validatePatchOperationEffectForRequiredAttributes, validateReturnedAttributes, validateSchemaList, validateSCIMObjectForRequiredAttributespublic static void validateCreatedSCIMObject(AbstractSCIMObject scimObject, SCIMResourceTypeSchema resourceSchema) throws CharonException, BadRequestException, NotFoundException
public static void validateRetrievedSCIMObjectInList(AbstractSCIMObject scimObject, SCIMResourceTypeSchema resourceSchema, String reuqestedAttributes, String requestedExcludingAttributes) throws BadRequestException, CharonException
BadRequestExceptionCharonExceptionpublic static void validateRetrievedSCIMObject(AbstractSCIMObject scimObject, SCIMResourceTypeSchema resourceSchema, String reuqestedAttributes, String requestedExcludingAttributes) throws BadRequestException, CharonException
BadRequestExceptionCharonExceptionpublic static void validateRetrievedSCIMRoleObject(Role scimObject, String requestedAttributes, String requestedExcludingAttributes)
scimObject - Role object.requestedExcludingAttributes - RequestedExcludingAttributes.public static AbstractSCIMObject validateUpdatedSCIMObject(AbstractSCIMObject oldObject, AbstractSCIMObject newObject, SCIMResourceTypeSchema resourceSchema) throws CharonException, BadRequestException
oldObject - Old scim object.newObject - New scim object.resourceSchema - Schema of the scim resource.CharonException - When error occurred while validating the scim object.BadRequestException - When error in the user's input.public static AbstractSCIMObject validateUpdatedSCIMObject(AbstractSCIMObject oldObject, AbstractSCIMObject newObject, SCIMResourceTypeSchema resourceSchema, boolean validatePerPatchOperation) throws CharonException, BadRequestException
oldObject - Old scim object used for comparison.newObject - Updated scim object.resourceSchema - Schema for the scim resource.validatePerPatchOperation - Whether this validation is done per patch operation.CharonException - When error occurred while validating the scim object.BadRequestException - When error in the user's input.public static AbstractSCIMObject validateResourceTypeSCIMObject(AbstractSCIMObject scimObject) throws NotFoundException, BadRequestException, CharonException
Copyright © 2022 WSO2. All rights reserved.