Package be.personify.iam.scim.schema
Class SchemaReader
- java.lang.Object
-
- be.personify.iam.scim.schema.SchemaReader
-
public class SchemaReader extends Object
-
-
Constructor Summary
Constructors Constructor Description SchemaReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemagetSchema(String id)Gets the schema from the cacheSchemagetSchemaByResourceType(String resourceType)ListgetSchemas()voidread()Map<String,Object>validate(Schema schema, Map<String,Object> map, boolean checkRequired, String operation)Validates
-
-
-
Method Detail
-
read
@PostConstruct public void read() throws Exception
- Throws:
Exception
-
getSchema
public Schema getSchema(String id)
Gets the schema from the cache- Parameters:
id- the id of the schema- Returns:
- the schema with the given id
-
validate
public Map<String,Object> validate(Schema schema, Map<String,Object> map, boolean checkRequired, String operation) throws SchemaException
Validates- Parameters:
schema- the schema 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
-
-