Class DataEngineCommonHandler
java.lang.Object
org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineCommonHandler
DataEngineCommonHandler manages objects from the property server. It runs server-side in the DataEngine OMAS
and creates port entities with wire relationships through the OMRSRepositoryConnector.
-
Constructor Summary
ConstructorsConstructorDescriptionDataEngineCommonHandler(String serviceName, String serverName, org.odpi.openmetadata.commonservices.ffdc.InvalidParameterHandler invalidParameterHandler, org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler<org.odpi.openmetadata.accessservices.dataengine.model.Referenceable> genericHandler, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, DataEngineRegistrationHandler dataEngineRegistrationHandler, ClockService clockService) Construct the handler information needed to interact with the repository services -
Method Summary
Modifier and TypeMethodDescriptionOptional<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail>findEntity(String userId, String qualifiedName, String entityTypeName) Find out if the entity is already stored in the repository.Optional<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail>getEntityDetails(String userId, String entityDetailGUID, String entityTypeName) Fetch the entity using the identifier and the type name.voidthrowEntityNotDeletedException(org.odpi.openmetadata.accessservices.dataengine.ffdc.DataEngineErrorCode errorCode, String methodName, String... params) Thrown anEntityNotDeletedExceptionvoidthrowInvalidParameterException(org.odpi.openmetadata.accessservices.dataengine.ffdc.DataEngineErrorCode errorCode, String methodName, String... params) Thrown anInvalidParameterException
-
Constructor Details
-
DataEngineCommonHandler
public DataEngineCommonHandler(String serviceName, String serverName, org.odpi.openmetadata.commonservices.ffdc.InvalidParameterHandler invalidParameterHandler, org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler<org.odpi.openmetadata.accessservices.dataengine.model.Referenceable> genericHandler, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, DataEngineRegistrationHandler dataEngineRegistrationHandler, ClockService clockService) Construct the handler information needed to interact with the repository services- Parameters:
serviceName- name of this serviceserverName- name of the local serverinvalidParameterHandler- handler for managing parameter errorsgenericHandler- manages calls to the repository servicesrepositoryHelper- provides utilities for manipulating the repository services objectsdataEngineRegistrationHandler- provides calls for retrieving external data engine guid
-
-
Method Details
-
findEntity
public Optional<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail> findEntity(String userId, String qualifiedName, String entityTypeName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Find out if the entity 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 entity to be searchedentityTypeName- the type name of the entity- Returns:
- optional with entity details if found, empty optional if not found
- 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
-
getEntityDetails
public Optional<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail> getEntityDetails(String userId, String entityDetailGUID, String entityTypeName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Fetch the entity using the identifier and the type name. It uses the unique identifier to retrieve the entity- Parameters:
userId- the user identifierentityDetailGUID- the entity unique identifierentityTypeName- the entity type name- Returns:
- optional with entity details if found, empty optional if not found
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem retrieving the entity.
-
throwInvalidParameterException
public void throwInvalidParameterException(org.odpi.openmetadata.accessservices.dataengine.ffdc.DataEngineErrorCode errorCode, String methodName, String... params) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Thrown anInvalidParameterException- Parameters:
errorCode- error codemethodName- calling methodparams- additional params for error message- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- Thrown anInvalidParameterExceptionwith specific error code and message
-
throwEntityNotDeletedException
public void throwEntityNotDeletedException(org.odpi.openmetadata.accessservices.dataengine.ffdc.DataEngineErrorCode errorCode, String methodName, String... params) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.EntityNotDeletedException Thrown anEntityNotDeletedException- Parameters:
errorCode- error codemethodName- calling methodparams- additional params for error message- Throws:
org.odpi.openmetadata.repositoryservices.ffdc.exception.EntityNotDeletedException- Thrown anEntityNotDeletedExceptionwith specific error code and message
-