public class SchemaChecker extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SchemaChecker.Option
Enumeration that defines options affecting the way schema checking is
performed.
|
static class |
SchemaChecker.Results
Schema checking results.
|
| Constructor and Description |
|---|
SchemaChecker(ResourceTypeDefinition resourceType)
Create a new instance that may be used to validate and enforce schema
constraints for a resource type.
|
| Modifier and Type | Method and Description |
|---|---|
SchemaChecker.Results |
checkCreate(com.fasterxml.jackson.databind.node.ObjectNode objectNode)
Check a new SCIM resource against the schema.
|
SchemaChecker.Results |
checkModify(Iterable<com.unboundid.scim2.common.messages.PatchOperation> patchOperations,
com.fasterxml.jackson.databind.node.ObjectNode currentObjectNode)
Check a set of modify patch operations against the schema.
|
SchemaChecker.Results |
checkReplace(com.fasterxml.jackson.databind.node.ObjectNode replacementObjectNode,
com.fasterxml.jackson.databind.node.ObjectNode currentObjectNode)
Check a replacement SCIM resource against the schema.
|
SchemaChecker.Results |
checkSearch(com.unboundid.scim2.common.filters.Filter filter)
Check the provided filter against the schema.
|
void |
disable(SchemaChecker.Option option)
Disable an option.
|
void |
enable(SchemaChecker.Option option)
Enable an option.
|
com.fasterxml.jackson.databind.node.ObjectNode |
removeReadOnlyAttributes(com.fasterxml.jackson.databind.node.ObjectNode objectNode)
Remove any read-only attributes and/or sub-attributes that are present in
the provided SCIM resource.
|
public SchemaChecker(ResourceTypeDefinition resourceType)
resourceType - The resource type whose schema(s) to enforce.public void enable(SchemaChecker.Option option)
option - The option to enable.public void disable(SchemaChecker.Option option)
option - The option to disable.public SchemaChecker.Results checkCreate(com.fasterxml.jackson.databind.node.ObjectNode objectNode) throws com.unboundid.scim2.common.exceptions.ScimException
objectNode - The SCIM resource that will be created.com.unboundid.scim2.common.exceptions.ScimException - If an error occurred while checking the schema.public SchemaChecker.Results checkModify(Iterable<com.unboundid.scim2.common.messages.PatchOperation> patchOperations, com.fasterxml.jackson.databind.node.ObjectNode currentObjectNode) throws com.unboundid.scim2.common.exceptions.ScimException
patchOperations - The set of modify patch operations to check.currentObjectNode - The current state of the SCIM resource or
null if not available.com.unboundid.scim2.common.exceptions.ScimException - If an error occurred while checking the schema.public SchemaChecker.Results checkReplace(com.fasterxml.jackson.databind.node.ObjectNode replacementObjectNode, com.fasterxml.jackson.databind.node.ObjectNode currentObjectNode) throws com.unboundid.scim2.common.exceptions.ScimException
replacementObjectNode - The replacement SCIM resource to check.currentObjectNode - The current state of the SCIM resource or
null if not available.com.unboundid.scim2.common.exceptions.ScimException - If an error occurred while checking the schema.public com.fasterxml.jackson.databind.node.ObjectNode removeReadOnlyAttributes(com.fasterxml.jackson.databind.node.ObjectNode objectNode)
objectNode - The SCIM resource to remove read-only attributes from.
This method will not alter the provided resource.public SchemaChecker.Results checkSearch(com.unboundid.scim2.common.filters.Filter filter) throws com.unboundid.scim2.common.exceptions.ScimException
filter - The filter to check.com.unboundid.scim2.common.exceptions.ScimException - If an error occurred while checking the schema.Copyright © 2015–2018 Ping Identity Corporation. All rights reserved.