Class AssetCatalogInstance


public class AssetCatalogInstance extends OMVSServiceInstance
AssetCatalogInstance caches references to objects it needs for a specific server. It is also responsible for registering itself in the instance map.
  • Constructor Details

    • AssetCatalogInstance

      public AssetCatalogInstance(String serverName, AuditLog auditLog, String localServerUserId, String localServerSecretsStoreProvider, String localServerSecretsStoreLocation, String localServerSecretsStoreCollection, int maxPageSize, String remoteServerName, String remoteServerURL, List<String> supportedAssetTypeNames) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
      Set up the Asset Catalog OMVS instance
      Parameters:
      serverName - name of this server
      auditLog - logging destination
      localServerUserId - user id to use on OMRS calls where there is no end user, or as part of an HTTP authentication mechanism with serverUserPassword.
      localServerSecretsStoreProvider - secrets store connector for bearer token
      localServerSecretsStoreLocation - secrets store location for bearer token
      localServerSecretsStoreCollection - secrets store collection for bearer token
      maxPageSize - maximum page size
      remoteServerName - remote server name
      remoteServerURL - remote server URL
      Throws:
      InvalidParameterException - invalid parameter - probably null by could be an invalid type name
      PropertyServerException - problem communicating with the remote metadata repository
      UserNotAuthorizedException - problem with the userId
  • Method Details

    • getSupportedAssetTypes

      public List<Type> getSupportedAssetTypes()
      Return the values from the SupportedTypesForSearch view service option.
      Returns:
      list of strings. If null then all asset types are supported.
    • getConnectorContext

      public ConnectorContextBase getConnectorContext(String userId)
      Return a connector context for the calling user. This is the object that the Open Integration Framework's DCAT mapper and generator work through; it gives them the same clients that an integration connector has.
      Parameters:
      userId - calling user
      Returns:
      connector context
    • getConnectedAssetClient

      public ConnectedAssetClient getConnectedAssetClient()
      Return the connected asset client. This client is from the Open Connector Framework (OCF) and is used to create connectors to the assets catalogued in open metadata - in particular the integration daemons that distribute DCAT documents.
      Returns:
      client
    • getAssetHandler

      public AssetHandler getAssetHandler()
      Return the main Asset Maker client.
      Returns:
      client