Class DataEngineEventTypeHandler

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

public class DataEngineEventTypeHandler extends Object
DataEngineEventTypeHandler manages event type objects. It runs server-side in the DataEngine OMAS and creates and retrieves collections entities through the OMRSRepositoryConnector.
  • Field Details

  • Constructor Details

    • DataEngineEventTypeHandler

      public DataEngineEventTypeHandler(org.odpi.openmetadata.commonservices.ffdc.InvalidParameterHandler invalidParameterHandler, org.odpi.openmetadata.commonservices.generichandlers.EventTypeHandler<org.odpi.openmetadata.accessservices.dataengine.model.EventType> eventTypeHandler, DataEngineRegistrationHandler dataEngineRegistrationHandler, DataEngineCommonHandler dataEngineCommonHandler, DataEngineSchemaAttributeHandler dataEngineSchemaAttributeHandler)
      Construct the handler information needed to interact with the repository services
      Parameters:
      invalidParameterHandler - handler for managing parameter errors
      eventTypeHandler - provides utilities specific for manipulating event type entities
      dataEngineCommonHandler - provides utilities for manipulating entities
      dataEngineRegistrationHandler - provides utilities for engine entities
      dataEngineSchemaAttributeHandler - provides utilities specific for schema attribute entities
  • Method Details

    • upsertEventType

      public String upsertEventType(String userId, org.odpi.openmetadata.accessservices.dataengine.model.EventType eventType, String topicGUID, String externalSourceName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      Create or update the event type with event schema attributes
      Parameters:
      userId - the name of the calling user
      eventType - the values of the event type
      topicGUID - the unique identifier of the topic
      externalSourceName - the unique name of the external source
      Returns:
      unique identifier of the event type in the repository
      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
    • removeEventType

      public void removeEventType(String userId, String eventTypeGUID, String qualifiedName, String externalSourceName, org.odpi.openmetadata.accessservices.dataengine.model.DeleteSemantic deleteSemantic) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.FunctionNotSupportedException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      Remove the event type
      Parameters:
      userId - the name of the calling user
      eventTypeGUID - unique identifier of the event type to be removed
      qualifiedName - event type's qualified name
      externalSourceName - the external data engine name
      deleteSemantic - the delete semantic
      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
      org.odpi.openmetadata.repositoryservices.ffdc.exception.FunctionNotSupportedException - the repository does not support this call.