Class DataEngineEventTypeHandler
java.lang.Object
org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineEventTypeHandler
DataEngineEventTypeHandler manages event type objects. It runs server-side in the
DataEngine OMAS and creates and retrieves collections entities through the OMRSRepositoryConnector.
-
Constructor Summary
ConstructorsConstructorDescriptionDataEngineEventTypeHandler(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 -
Method Summary
Modifier and TypeMethodDescriptionvoidremoveEventType(String userId, String eventTypeGUID, String qualifiedName, String externalSourceName, org.odpi.openmetadata.accessservices.dataengine.model.DeleteSemantic deleteSemantic) Remove the event typeupsertEventType(String userId, org.odpi.openmetadata.accessservices.dataengine.model.EventType eventType, String topicGUID, String externalSourceName) Create or update the event type with event schema attributes
-
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 errorseventTypeHandler- provides utilities specific for manipulating event type entitiesdataEngineCommonHandler- provides utilities for manipulating entitiesdataEngineRegistrationHandler- provides utilities for engine entitiesdataEngineSchemaAttributeHandler- 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 usereventType- the values of the event typetopicGUID- the unique identifier of the topicexternalSourceName- 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 invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this requestorg.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 usereventTypeGUID- unique identifier of the event type to be removedqualifiedName- event type's qualified nameexternalSourceName- the external data engine namedeleteSemantic- the delete semantic- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the bean properties are invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing the property serverorg.odpi.openmetadata.repositoryservices.ffdc.exception.FunctionNotSupportedException- the repository does not support this call.
-