Class SchemaFactory
- java.lang.Object
-
- de.captaingoldfish.scim.sdk.server.schemas.SchemaFactory
-
public final class SchemaFactory extends Object
author Pascal Knueppel
created at: 28.09.2019 - 17:01
this class can be used to read new resource schemas into the scim context
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSchemaFactory(ResourceTypeFactory resourceTypeFactory)this constructor will register the default schemas defined by RFC7643
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemagetMetaSchema(String id)extracts a meta schema that will defines the base of another schema like the user resource schema or group resource schemaSchemagetResourceSchema(String id)extracts a resource schema that will define a resource like "User" or "Group"protected voidregisterMetaSchema(com.fasterxml.jackson.databind.JsonNode jsonSchema)will register a new schemavoidregisterResourceSchema(com.fasterxml.jackson.databind.JsonNode jsonSchema)will register a new resource schema
-
-
-
Constructor Detail
-
SchemaFactory
protected SchemaFactory(ResourceTypeFactory resourceTypeFactory)
this constructor will register the default schemas defined by RFC7643
-
-
Method Detail
-
registerMetaSchema
protected void registerMetaSchema(com.fasterxml.jackson.databind.JsonNode jsonSchema)
will register a new schema- Parameters:
jsonSchema- the schema as json node
-
registerResourceSchema
public void registerResourceSchema(com.fasterxml.jackson.databind.JsonNode jsonSchema)
will register a new resource schema- Parameters:
jsonSchema- the schema as json node
-
getMetaSchema
public Schema getMetaSchema(String id)
extracts a meta schema that will defines 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
-
-