Class SchemaTypeHandler


  • public class SchemaTypeHandler
    extends RootHandler
    SchemaTypeHandler manages SchemaType objects. It runs server-side in the OMAG Server Platform and retrieves SchemaType entities through the OMRSRepositoryConnector.
    • Constructor Detail

      • SchemaTypeHandler

        public SchemaTypeHandler​(String serviceName,
                                 String serverName,
                                 InvalidParameterHandler invalidParameterHandler,
                                 RepositoryHandler repositoryHandler,
                                 OMRSRepositoryHelper repositoryHelper)
        Construct the handler information needed to interact with the repository services
        Parameters:
        serviceName - name of this service
        serverName - name of the local server
        invalidParameterHandler - handler for managing parameter errors
        repositoryHandler - manages calls to the repository services
        repositoryHelper - provides utilities for manipulating the repository services objects
    • Method Detail

      • getEmptyComplexSchemaType

        public ComplexSchemaType getEmptyComplexSchemaType​(String schemaTypeGUID,
                                                           String schemaTypeName)
        Return the requested schemaType with the specific type information filled in. There is no validation of the type name and the bean is assumed to be for the local cohort.
        Parameters:
        schemaTypeGUID - unique identifier of the required type
        schemaTypeName - unique name of the required type
        Returns:
        new object
      • getEmptyTabularColumn

        public SchemaAttribute getEmptyTabularColumn()
        Return a schema attribute object with the type set up. This is for columns that are created in the local cohort only.
        Returns:
        new object
      • getSchemaAttributeBuilder

        public SchemaAttributeBuilder getSchemaAttributeBuilder​(SchemaAttribute schemaAttribute)
        Return the appropriate schemaAttribute builder for the supplied schema attribute bean.
        Parameters:
        schemaAttribute - object with properties
        Returns:
        builder object.