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 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 user
      serverName - name of the server tied to the request
      serviceOperationName - 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 server
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - user does not have access to the requested server
      org.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 user
      serverName - name of the server tied to the request
      serviceOperationName - 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 server
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - user does not have access to the requested server
      org.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 user
      serverName - name of the server tied to the request
      serviceOperationName - name of the calling operation
      Returns:
      handler for processes
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - no available instance for the requested server
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - user does not have access to the requested server
      org.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 id
      serverName - the server name
      serviceOperationName - the service operation name
      Returns:
      the classification handler
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - the invalid parameter exception
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user not authorized exception
      org.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 id
      serverName - the server name
      serviceOperationName - the service operation name
      Returns:
      the classification handler
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - the invalid parameter exception
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user not authorized exception
      org.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 id
      serverName - the server name
      serviceOperationName - the service operation name
      Returns:
      the asset lineage publisher
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - the invalid parameter exception
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user not authorized exception
      org.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:
      getAuditLog in class org.odpi.openmetadata.commonservices.multitenant.AuditableServerServiceInstanceHandler
      Parameters:
      userId - calling userId
      serverName - name of the server tied to the request
      serviceOperationName - name of the REST API call (typically the top-level methodName)
      Returns:
      Throws:
      org.odpi.openmetadata.commonservices.ffdc.exceptions.InvalidParameterException
      org.odpi.openmetadata.commonservices.ffdc.exceptions.PropertyServerException
      org.odpi.openmetadata.commonservices.ffdc.exceptions.UserNotAuthorizedException