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.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDataEngineEventTypeHandler
(InvalidParameterHandler invalidParameterHandler, EventTypeHandler<EventType> eventTypeHandler, DataEngineRegistrationHandler dataEngineRegistrationHandler, DataEngineCommonHandler dataEngineCommonHandler, DataEngineSchemaAttributeHandler dataEngineSchemaAttributeHandler) Construct the handler information needed to interact with the repository services -
Method Summary
Modifier and TypeMethodDescriptionvoid
removeEventType
(String userId, String eventTypeGUID, String qualifiedName, String externalSourceName, DeleteSemantic deleteSemantic) Remove the event typeupsertEventType
(String userId, EventType eventType, String topicGUID, String externalSourceName) Create or update the event type with event schema attributes
-
Field Details
-
EVENT_TYPE_GUID_PARAMETER_NAME
- See Also:
-
-
Constructor Details
-
DataEngineEventTypeHandler
public DataEngineEventTypeHandler(InvalidParameterHandler invalidParameterHandler, EventTypeHandler<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, EventType eventType, String topicGUID, String externalSourceName) throws InvalidParameterException, PropertyServerException, 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:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
removeEventType
public void removeEventType(String userId, String eventTypeGUID, String qualifiedName, String externalSourceName, DeleteSemantic deleteSemantic) throws FunctionNotSupportedException, InvalidParameterException, PropertyServerException, 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:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property serverFunctionNotSupportedException
- the repository does not support this call.
-