Class SchemaFactory
java.lang.Object
de.captaingoldfish.scim.sdk.server.schemas.SchemaFactory
author Pascal Knueppel
created at: 28.09.2019 - 17:01
this class can be used to read new resource schemas into the scim context
created at: 28.09.2019 - 17:01
this class can be used to read new resource schemas into the scim context
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSchemaFactory(ResourceTypeFactory resourceTypeFactory) this constructor will register the default schemas defined by RFC7643 -
Method Summary
Modifier and TypeMethodDescriptiongetMetaSchema(String id) extracts a meta schema that will define the base of another schema like the user resource schema or group resource schemathis map will hold the meta schemata that will define how other schemata must be buildextracts a resource schema that will define a resource like "User" or "Group"this map will hold the resource schemata that will define how the resources itself must be buildprotected ResourceTypeFactoryused for unit tests in order to prevent application context pollutionprotected voidregisterMetaSchema(com.fasterxml.jackson.databind.JsonNode jsonSchema) will register a new schemaregisterResourceSchema(com.fasterxml.jackson.databind.JsonNode jsonSchema) will register a new resource schema
-
Constructor Details
-
SchemaFactory
this constructor will register the default schemas defined by RFC7643
-
-
Method Details
-
registerMetaSchema
protected void registerMetaSchema(com.fasterxml.jackson.databind.JsonNode jsonSchema) will register a new schema- Parameters:
jsonSchema- the schema as json node
-
registerResourceSchema
will register a new resource schema- Parameters:
jsonSchema- the schema as json node
-
getMetaSchema
extracts a meta schema that will define the base of another schema like the user resource schema or group resource schema- Parameters:
id- the fully qualified id of the meta schema- Returns:
- the meta schema if it does exist or null
-
getResourceSchema
extracts a resource schema that will define a resource like "User" or "Group"- Parameters:
id- the fully qualified id of the resource schema- Returns:
- the resource schema if it does exist or null
-
getAllResourceSchemas
- Returns:
- all registered resource schematas
-
getMetaSchemas
this map will hold the meta schemata that will define how other schemata must be build -
getResourceSchemas
this map will hold the resource schemata that will define how the resources itself must be build -
getResourceTypeFactory
used for unit tests in order to prevent application context pollution
-