Package be.personify.iam.scim.schema
Class SchemaReader
java.lang.Object
be.personify.iam.scim.schema.SchemaReader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextractSchemas(Map<String, Object> user) getResourceTypeByName(String name) Gets the schema from the cachegetSchemaByName(String name) getSchemaResourceTypeByEndpoint(String endpoint) voidread()validate(SchemaResourceType resourceType, Map<String, Object> map, boolean checkRequired, String operation) Validates
-
Constructor Details
-
SchemaReader
public SchemaReader()
-
-
Method Details
-
read
- Throws:
Exception
-
getSchemaIds
-
getSchemas
- Throws:
Exception
-
getSchema
Gets the schema from the cache- Parameters:
id- the id of the schema- Returns:
- the schema with the given id
-
getSchemaResourceTypeByEndpoint
-
getSchemaByName
-
getResourceTypeByName
-
validate
public Map<String,Object> validate(SchemaResourceType resourceType, Map<String, Object> map, boolean checkRequired, String operation) throws SchemaExceptionValidates- Parameters:
resourceType- the recourcetype to validatemap- the map to be validatedcheckRequired- boolean indicating if the required attributes have to be checked- Returns:
- the same map
- Throws:
SchemaException- exception containing the errors
-
extractSchemas
-