Class AssetLineageInstanceHandler
java.lang.Object
org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstanceHandler
org.odpi.openmetadata.commonservices.multitenant.AuditableServerServiceInstanceHandler
org.odpi.openmetadata.commonservices.multitenant.OMASServiceInstanceHandler
org.odpi.openmetadata.accessservices.assetlineage.server.AssetLineageInstanceHandler
AssetLineageInstanceHandler retrieves information from the instance map for the
access service instances. The instance map is thread-safe. Instances are added
and removed by the AssetLineageAdmin class.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstanceHandler
platformInstanceMap, serviceName
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor registers the access service -
Method Summary
Modifier and TypeMethodDescriptiongetAssetContextHandler
(String userId, String serverName, String serviceOperationName) Retrieve the specific handler for the access service.getAssetLineagePublisher
(String userId, String serverName, String serviceOperationName) Retrieve the Asset Lineage Publisher available for the existing Asset Lineage OMAS OMRS Topic registredgetClassificationHandler
(String userId, String serverName, String serviceOperationName) Retrieve classification handler for the access service.getGlossaryHandler
(String userId, String serverName, String serviceOperationName) Retrieve the specific handler for the access service.getHandlerHelper
(String userId, String serverName, String serviceOperationName) Retrieve helper handler for the access service.getProcessHandler
(String userId, String serverName, String serviceOperationName) Retrieve the specific handler for processesvoid
Methods inherited from class org.odpi.openmetadata.commonservices.multitenant.OMASServiceInstanceHandler
getDefaultZones, getDefaultZones, getErrorHandler, getExceptionHandler, getInTopicConnection, getMetadataCollection, getOutTopicConnection, getPublishZones, getPublishZones, getRepositoryConnector, getRepositoryHandler, getRepositoryHelper, getServiceName, getSupportedZones, getSupportedZones
Methods inherited from class org.odpi.openmetadata.commonservices.multitenant.AuditableServerServiceInstanceHandler
getAuditLog
Methods inherited from class org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstanceHandler
getServerSecurityVerifier, getServerServiceInstance, getServiceName, isServerActive, removeServerServiceInstance
-
Constructor Details
-
AssetLineageInstanceHandler
public AssetLineageInstanceHandler()Default constructor registers the access service
-
-
Method Details
-
registerAccessService
public void registerAccessService() -
getGlossaryHandler
public GlossaryContextHandler getGlossaryHandler(String userId, String serverName, String serviceOperationName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the specific handler for the access service.- Parameters:
userId
- calling userserverName
- name of the server tied to the requestserviceOperationName
- name of the calling operation- Returns:
- handler for use by the requested instance
- Throws:
InvalidParameterException
- no available instance for the requested serverUserNotAuthorizedException
- user does not have access to the requested serverPropertyServerException
- error in the requested server
-
getAssetContextHandler
public AssetContextHandler getAssetContextHandler(String userId, String serverName, String serviceOperationName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the specific handler for the access service.- Parameters:
userId
- calling userserverName
- name of the server tied to the requestserviceOperationName
- name of the calling operation- Returns:
- handler for use by the requested instance
- Throws:
InvalidParameterException
- no available instance for the requested serverUserNotAuthorizedException
- user does not have access to the requested serverPropertyServerException
- error in the requested server
-
getProcessHandler
public ProcessContextHandler getProcessHandler(String userId, String serverName, String serviceOperationName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the specific handler for processes- Parameters:
userId
- calling userserverName
- name of the server tied to the requestserviceOperationName
- name of the calling operation- Returns:
- handler for processes
- Throws:
InvalidParameterException
- no available instance for the requested serverUserNotAuthorizedException
- user does not have access to the requested serverPropertyServerException
- error in the requested server
-
getClassificationHandler
public ClassificationHandler getClassificationHandler(String userId, String serverName, String serviceOperationName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve classification handler for the access service.- Parameters:
userId
- the user idserverName
- the server nameserviceOperationName
- the service operation name- Returns:
- the classification handler
- Throws:
InvalidParameterException
- the invalid parameter exceptionUserNotAuthorizedException
- the user not authorized exceptionPropertyServerException
- the property server exception
-
getHandlerHelper
public HandlerHelper getHandlerHelper(String userId, String serverName, String serviceOperationName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Retrieve helper handler for the access service.- Parameters:
userId
- the user idserverName
- the server nameserviceOperationName
- the service operation name- Returns:
- the classification handler
- Throws:
InvalidParameterException
- the invalid parameter exceptionUserNotAuthorizedException
- the user not authorized exceptionPropertyServerException
- the property server exception
-
getAssetLineagePublisher
public AssetLineagePublisher getAssetLineagePublisher(String userId, String serverName, String serviceOperationName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the Asset Lineage Publisher available for the existing Asset Lineage OMAS OMRS Topic registred- Parameters:
userId
- the user idserverName
- the server nameserviceOperationName
- the service operation name- Returns:
- the asset lineage publisher
- Throws:
InvalidParameterException
- the invalid parameter exceptionUserNotAuthorizedException
- the user not authorized exceptionPropertyServerException
- the property server exception
-