Class 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 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
      • getResourceSchema

        public Schema getResourceSchema​(String id)
        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