public final class SchemaFactory extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
SchemaFactory(ResourceTypeFactory resourceTypeFactory)
this constructor will register the default schemas defined by RFC7643
|
| Modifier and Type | Method and Description |
|---|---|
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
|
Schema |
getResourceSchema(String id)
extracts a resource schema that will define a resource like "User" or "Group"
|
void |
registerResourceSchema(com.fasterxml.jackson.databind.JsonNode jsonSchema)
will register a new resource schema
|
protected SchemaFactory(ResourceTypeFactory resourceTypeFactory)
public void registerResourceSchema(com.fasterxml.jackson.databind.JsonNode jsonSchema)
jsonSchema - the schema as json nodepublic Schema getMetaSchema(String id)
id - the fully qualified id of the meta schemaCopyright © 2019. All rights reserved.