Class DataEngineTopicHandler
java.lang.Object
org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineTopicHandler
DataEngineTopicHandler manages topic objects. It runs server-side in the
DataEngine OMAS and creates and retrieves collections entities through the OMRSRepositoryConnector.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDataEngineTopicHandler
(InvalidParameterHandler invalidParameterHandler, AssetHandler<Topic> topicHandler, DataEngineRegistrationHandler dataEngineRegistrationHandler, DataEngineCommonHandler dataEngineCommonHandler) Construct the handler information needed to interact with the repository services -
Method Summary
Modifier and TypeMethodDescriptionfindTopicEntity
(String userId, String qualifiedName) Find out if the Topic object is already stored in the repository.void
removeTopic
(String userId, String topicGUID, String externalSourceName, DeleteSemantic deleteSemantic) Remove the topicupsertTopic
(String userId, Topic topic, String externalSourceName) Create or update the topic with event types
-
Field Details
-
TOPIC_GUID_PARAMETER_NAME
- See Also:
-
-
Constructor Details
-
DataEngineTopicHandler
public DataEngineTopicHandler(InvalidParameterHandler invalidParameterHandler, AssetHandler<Topic> topicHandler, DataEngineRegistrationHandler dataEngineRegistrationHandler, DataEngineCommonHandler dataEngineCommonHandler) Construct the handler information needed to interact with the repository services- Parameters:
invalidParameterHandler
- handler for managing parameter errorstopicHandler
- provides utilities specific for manipulating topic entitiesdataEngineCommonHandler
- provides utilities for manipulating entitiesdataEngineRegistrationHandler
- provides utilities for engine entities
-
-
Method Details
-
upsertTopic
public String upsertTopic(String userId, Topic topic, String externalSourceName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Create or update the topic with event types- Parameters:
userId
- the name of the calling usertopic
- the values of the topicexternalSourceName
- the unique name of the external source- Returns:
- unique identifier of the topic in the repository
- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
findTopicEntity
public Optional<EntityDetail> findTopicEntity(String userId, String qualifiedName) throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException Find out if the Topic object is already stored in the repository. It uses the fully qualified name to retrieve the entity- Parameters:
userId
- the name of the calling userqualifiedName
- the qualifiedName name of the process to be searched- Returns:
- optional with entity details if found, empty optional if not found
- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
removeTopic
public void removeTopic(String userId, String topicGUID, String externalSourceName, DeleteSemantic deleteSemantic) throws FunctionNotSupportedException, InvalidParameterException, PropertyServerException, UserNotAuthorizedException Remove the topic- Parameters:
userId
- the name of the calling usertopicGUID
- unique identifier of the topic 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.
-