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
-
public class AssetLineageInstanceHandler extends OMASServiceInstanceHandler
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
Constructors Constructor Description AssetLineageInstanceHandler()Default constructor registers the access service
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssetContextHandlergetAssetContextHandler(String userId, String serverName, String serviceOperationName)Retrieve the specific handler for the access service.AssetLineagePublishergetAssetLineagePublisher(String userId, String serverName, String serviceOperationName)Retrieve the Asset Lineage Publisher available for the existing Asset Lineage OMAS OMRS Topic registredAuditLoggetAuditLog(String userId, String serverName, String serviceOperationName)Retrieve the AuditLog from the service instance.ClassificationHandlergetClassificationHandler(String userId, String serverName, String serviceOperationName)Retrieve classification handler for the access service.GlossaryContextHandlergetGlossaryHandler(String userId, String serverName, String serviceOperationName)Retrieve the specific handler for the access service.HandlerHelpergetHandlerHelper(String userId, String serverName, String serviceOperationName)Retrieve helper handler for the access service.ProcessContextHandlergetProcessHandler(String userId, String serverName, String serviceOperationName)Retrieve the specific handler for processesvoidregisterAccessService()-
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.OMAGServerServiceInstanceHandler
getServerSecurityVerifier, getServerServiceInstance, getServiceName, isServerActive, removeServerServiceInstance
-
-
-
-
Method Detail
-
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
-
getAuditLog
public AuditLog getAuditLog(String userId, String serverName, String serviceOperationName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Retrieve the AuditLog from the service instance.- Overrides:
getAuditLogin classAuditableServerServiceInstanceHandler- Parameters:
userId- calling userIdserverName- name of the server tied to the requestserviceOperationName- name of the REST API call (typically the top-level methodName)- Returns:
- Throws:
InvalidParameterExceptionPropertyServerExceptionUserNotAuthorizedException
-
-