Class DataEngineSchemaAttributeHandler

java.lang.Object
org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineSchemaAttributeHandler

public class DataEngineSchemaAttributeHandler extends Object
DataEngineSchemaAttributeHandler manages schema attributes objects from the property server. It runs server-side in the DataEngine OMAS and creates and retrieves schema type entities through the OMRSRepositoryConnector.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DataEngineSchemaAttributeHandler(String serviceName, String serverName, org.odpi.openmetadata.commonservices.ffdc.InvalidParameterHandler invalidParameterHandler, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, org.odpi.openmetadata.commonservices.generichandlers.SchemaAttributeHandler<org.odpi.openmetadata.accessservices.dataengine.model.Attribute,org.odpi.openmetadata.accessservices.dataengine.model.SchemaType> schemaAttributeHandler, DataEngineRegistrationHandler dataEngineRegistrationHandler, DataEngineCommonHandler dataEngineCommonHandler)
    Construct the handler information needed to interact with the repository services
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    upsertSchemaAttributes(String userId, List<org.odpi.openmetadata.accessservices.dataengine.model.Attribute> attributeList, String externalSourceName, String externalSourceGUID, String schemaTypeGUID)
    Creates or updates the list of schema attributes

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DataEngineSchemaAttributeHandler

      public DataEngineSchemaAttributeHandler(String serviceName, String serverName, org.odpi.openmetadata.commonservices.ffdc.InvalidParameterHandler invalidParameterHandler, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, org.odpi.openmetadata.commonservices.generichandlers.SchemaAttributeHandler<org.odpi.openmetadata.accessservices.dataengine.model.Attribute,org.odpi.openmetadata.accessservices.dataengine.model.SchemaType> schemaAttributeHandler, DataEngineRegistrationHandler dataEngineRegistrationHandler, DataEngineCommonHandler dataEngineCommonHandler)
      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
      repositoryHelper - provides utilities for manipulating the repository services objects
      dataEngineRegistrationHandler - provides calls for retrieving external data engine guid
      dataEngineCommonHandler - provides utilities for manipulating entities
      schemaAttributeHandler - handler for managing schema attributes in the metadata repositories
  • Method Details

    • upsertSchemaAttributes

      public void upsertSchemaAttributes(String userId, List<org.odpi.openmetadata.accessservices.dataengine.model.Attribute> attributeList, String externalSourceName, String externalSourceGUID, String schemaTypeGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      Creates or updates the list of schema attributes
      Parameters:
      userId - the name of the calling user
      attributeList - the list of attributes
      externalSourceName - the unique name of the external source
      externalSourceGUID - the guid of the external source
      schemaTypeGUID - the guid of the schema type
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - the bean properties are invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - user not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing the property server