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 org.odpi.openmetadata.commonservices.multitenant.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.
-
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 registredorg.odpi.openmetadata.frameworks.auditlog.AuditLoggetAuditLog(String userId, String serverName, String serviceOperationName) Retrieve the AuditLog from the service instance.getClassificationHandler(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 processesvoidMethods inherited from class org.odpi.openmetadata.commonservices.multitenant.OMASServiceInstanceHandler
getDefaultZones, getDefaultZones, getErrorHandler, getExceptionHandler, getInTopicConnection, getMetadataCollection, getOutTopicConnection, getPublishZones, getPublishZones, getRepositoryConnector, getRepositoryHandler, getRepositoryHelper, getServiceName, getSupportedZones, getSupportedZonesMethods inherited from class org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstanceHandler
getServerSecurityVerifier, 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 org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.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:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- no available instance for the requested serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user does not have access to the requested serverorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- error in the requested server
-
getAssetContextHandler
public AssetContextHandler getAssetContextHandler(String userId, String serverName, String serviceOperationName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.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:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- no available instance for the requested serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user does not have access to the requested serverorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- error in the requested server
-
getProcessHandler
public ProcessContextHandler getProcessHandler(String userId, String serverName, String serviceOperationName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.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:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- no available instance for the requested serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user does not have access to the requested serverorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- error in the requested server
-
getClassificationHandler
public ClassificationHandler getClassificationHandler(String userId, String serverName, String serviceOperationName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.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:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the invalid parameter exceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user not authorized exceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the property server exception
-
getHandlerHelper
public HandlerHelper getHandlerHelper(String userId, String serverName, String serviceOperationName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.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:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the invalid parameter exceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user not authorized exceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the property server exception
-
getAssetLineagePublisher
public AssetLineagePublisher getAssetLineagePublisher(String userId, String serverName, String serviceOperationName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.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:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the invalid parameter exceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user not authorized exceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the property server exception
-
getAuditLog
public org.odpi.openmetadata.frameworks.auditlog.AuditLog getAuditLog(String userId, String serverName, String serviceOperationName) throws org.odpi.openmetadata.commonservices.ffdc.exceptions.InvalidParameterException, org.odpi.openmetadata.commonservices.ffdc.exceptions.PropertyServerException, org.odpi.openmetadata.commonservices.ffdc.exceptions.UserNotAuthorizedException Retrieve the AuditLog from the service instance.- Overrides:
getAuditLogin classorg.odpi.openmetadata.commonservices.multitenant.AuditableServerServiceInstanceHandler- 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:
org.odpi.openmetadata.commonservices.ffdc.exceptions.InvalidParameterExceptionorg.odpi.openmetadata.commonservices.ffdc.exceptions.PropertyServerExceptionorg.odpi.openmetadata.commonservices.ffdc.exceptions.UserNotAuthorizedException
-