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 Summary
Fields Modifier and Type Field Description static StringEVENT_TYPE_GUID_PARAMETER_NAME
-
Constructor Summary
Constructors Constructor Description DataEngineEventTypeHandler(InvalidParameterHandler invalidParameterHandler, EventTypeHandler<EventType> eventTypeHandler, DataEngineRegistrationHandler dataEngineRegistrationHandler, DataEngineCommonHandler dataEngineCommonHandler, DataEngineSchemaAttributeHandler dataEngineSchemaAttributeHandler)Construct the handler information needed to interact with the repository services
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidremoveEventType(String userId, String eventTypeGUID, String qualifiedName, String externalSourceName, DeleteSemantic deleteSemantic)Remove the event typeStringupsertEventType(String userId, EventType eventType, String topicGUID, String externalSourceName)Create or update the event type with event schema attributes
-
-
-
Field Detail
-
EVENT_TYPE_GUID_PARAMETER_NAME
public static final String EVENT_TYPE_GUID_PARAMETER_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 software server capability entitiesdataEngineSchemaAttributeHandler- provides utilities specific for schema attribute entities
-
-
Method Detail
-
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 removedexternalSourceName- 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.
-
-