java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.FFDCRESTClientBase
org.odpi.openmetadata.commonservices.ffdc.rest.FFDCRESTClient
org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.client.OCFRESTClient
org.odpi.openmetadata.accessservices.assetcatalog.AssetCatalog
All Implemented Interfaces:
AssetCatalogInterface

public class AssetCatalog extends org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.client.OCFRESTClient implements AssetCatalogInterface
The Asset Catalog Open Metadata Access Service (OMAS) provides an interface to search for assets including data stores, event feeds, APIs and data sets, related assets and relationships. Also, it can return the connection details for the asset metadata. The Asset Catalog OMAS includes:
  • Client-side provides language-specific client packages to make it easier for data tools and applications to call the interface.
  • OMAS Server calls to retrieve assets and information related to the assets.
  • Field Summary

    Fields inherited from class org.odpi.openmetadata.commonservices.ffdc.rest.FFDCRESTClientBase

    auditLog, exceptionHandler, serverName, serverPlatformURLRoot
  • Constructor Summary

    Constructors
    Constructor
    Description
    AssetCatalog(String serverName, String serverPlatformURLRoot)
    Create a new AssetCatalog client.
    AssetCatalog(String serverName, String serverPlatformURLRoot, String userId, String password)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.AssetResponse
    getAssetContext(String userId, String assetGUID, String assetType)
    Return the full context of an asset/glossary term based on its identifier.
    org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.AssetCatalogResponse
    getAssetDetails(String userId, String assetGUID, String assetType)
    Fetch asset's header, classification and properties
    org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.RelationshipListResponse
    getAssetRelationships(String userId, String assetGUID, String assetType, String relationshipType, Integer from, Integer pageSize)
    Fetch the relationships for a specific asset
    org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.AssetCatalogResponse
    getAssetUniverse(String userId, String assetGUID, String assetType)
    Fetch asset's header, classification, properties and relationships
    org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.ClassificationListResponse
    getClassificationsForAsset(String userId, String assetGUID, String assetType, String classificationName)
    Fetch the classification for a specific asset
    org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.RelationshipResponse
    getRelationshipBetweenEntities(String userId, String entity1GUID, String entity2GUID, String relationshipType)
    Fetch relationship between entities details based on its unique identifier of the ends Filtering based on the relationship type is supported
    org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.AssetCatalogSupportedTypes
    Returns the list with supported types for search, including the sub-types supported
    org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.AssetListResponse
    searchByType(String userId, String searchCriteria, org.odpi.openmetadata.accessservices.assetcatalog.model.rest.body.SearchParameters searchParameters)
    Return a list of assets matching the search criteria without the full context
    org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.AssetListResponse
    searchByTypeGUID(String userId, String typeGUID)
    Return a list of assets matching the type GUID without the full context The list includes also subtypes
    org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.AssetListResponse
    searchByTypeName(String userId, String typeName)
    Return a list of assets matching the type name without the full context The list includes also subtypes

    Methods inherited from class org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.client.OCFRESTClient

    callOCFAssetGetRESTCall, callOCFAssetsGetRESTCall, callOCFAssetsPostRESTCall, callOCFConnectionGetRESTCall, callOCFTagGetRESTCall, callOCFTagListGetRESTCall, callOCFTagListPostRESTCall

    Methods inherited from class org.odpi.openmetadata.commonservices.ffdc.rest.FFDCRESTClient

    callCountGetRESTCall, callGUIDGetRESTCall, callGUIDListGetRESTCall, callGUIDListPostRESTCall, callGUIDPostRESTCall, callNameListGetRESTCall, callOCFConnectorReportGetRESTCall, callStringMapGetRESTCall, callVoidGetRESTCall, callVoidPostRESTCall

    Methods inherited from class org.odpi.openmetadata.commonservices.ffdc.rest.FFDCRESTClientBase

    callDeleteRESTCall, callDeleteRESTCall, callGetRESTCall, callGetRESTCall, callGetRESTCallNoParams, callPostRESTCall, callPostRESTCall, callPostRESTCallNoParams, callPutRESTCall, callPutRESTCall

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AssetCatalog

      public AssetCatalog(String serverName, String serverPlatformURLRoot) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      Create a new AssetCatalog client.
      Parameters:
      serverName - name of the server to connect to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - if parameter validation fails
    • AssetCatalog

      public AssetCatalog(String serverName, String serverPlatformURLRoot, String userId, String password) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
  • Method Details

    • getAssetDetails

      public org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.AssetCatalogResponse getAssetDetails(String userId, String assetGUID, String assetType) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Fetch asset's header, classification and properties
      Specified by:
      getAssetDetails in interface AssetCatalogInterface
      Parameters:
      userId - the unique identifier for the user
      assetGUID - the unique identifier for the asset
      assetType - the type of the asset
      Returns:
      the asset with its header and the list of associated classifications and specific properties
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - if parameter validation fails
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - if a problem occurs while serving the request
    • getAssetUniverse

      public org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.AssetCatalogResponse getAssetUniverse(String userId, String assetGUID, String assetType) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Fetch asset's header, classification, properties and relationships
      Specified by:
      getAssetUniverse in interface AssetCatalogInterface
      Parameters:
      userId - the unique identifier for the user
      assetGUID - the unique identifier for the asset
      assetType - the asset type
      Returns:
      the asset with its header and the list of associated classifications and relationship
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - if parameter validation fails
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - if a problem occurs while serving the request
    • getAssetRelationships

      public org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.RelationshipListResponse getAssetRelationships(String userId, String assetGUID, String assetType, String relationshipType, Integer from, Integer pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Fetch the relationships for a specific asset
      Specified by:
      getAssetRelationships in interface AssetCatalogInterface
      Parameters:
      userId - the unique identifier for the user
      assetGUID - the unique identifier for the asset
      assetType - the type of the asset
      relationshipType - the type of the relationship
      from - offset
      pageSize - limit the number of the assets returned
      Returns:
      list of relationships for the given asset
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - if parameter validation fails
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - if a problem occurs while serving the request
    • getClassificationsForAsset

      public org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.ClassificationListResponse getClassificationsForAsset(String userId, String assetGUID, String assetType, String classificationName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Fetch the classification for a specific asset
      Specified by:
      getClassificationsForAsset in interface AssetCatalogInterface
      Parameters:
      userId - the unique identifier for the user
      assetGUID - the unique identifier for the asset
      assetType - the type of the asset
      classificationName - the name of the classification
      Returns:
      ClassificationsResponse the classification for the asset
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - if parameter validation fails
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - if a problem occurs while serving the request
    • searchByType

      public org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.AssetListResponse searchByType(String userId, String searchCriteria, org.odpi.openmetadata.accessservices.assetcatalog.model.rest.body.SearchParameters searchParameters) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Return a list of assets matching the search criteria without the full context
      Specified by:
      searchByType in interface AssetCatalogInterface
      Parameters:
      userId - the unique identifier for the user
      searchCriteria - a string expression of the characteristics of the required assets
      searchParameters - constrains to make the assets's search results more precise
      Returns:
      list of properties used to narrow the search
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - if parameter validation fails
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - if a problem occurs while serving the request
    • searchByTypeName

      public org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.AssetListResponse searchByTypeName(String userId, String typeName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Return a list of assets matching the type name without the full context The list includes also subtypes
      Specified by:
      searchByTypeName in interface AssetCatalogInterface
      Parameters:
      userId - the unique identifier for the user
      typeName - the assets type name to search for
      Returns:
      list of assets by type name or GUID
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - if parameter validation fails
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - if a problem occurs while serving the request
    • searchByTypeGUID

      public org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.AssetListResponse searchByTypeGUID(String userId, String typeGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Return a list of assets matching the type GUID without the full context The list includes also subtypes
      Specified by:
      searchByTypeGUID in interface AssetCatalogInterface
      Parameters:
      userId - the unique identifier for the user
      typeGUID - the assets type GUID to search for
      Returns:
      list of assets by type name or GUID
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - if parameter validation fails
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - if a problem occurs while serving the request
    • getAssetContext

      public org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.AssetResponse getAssetContext(String userId, String assetGUID, String assetType) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Return the full context of an asset/glossary term based on its identifier. The response contains the list of the connections assigned to the asset.
      Specified by:
      getAssetContext in interface AssetCatalogInterface
      Parameters:
      userId - the unique identifier for the user
      assetGUID - the global unique identifier of the asset
      assetType - the type of the asset
      Returns:
      list of properties used to narrow the search
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - if parameter validation fails
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - if a problem occurs while serving the request
    • getRelationshipBetweenEntities

      public org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.RelationshipResponse getRelationshipBetweenEntities(String userId, String entity1GUID, String entity2GUID, String relationshipType) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Fetch relationship between entities details based on its unique identifier of the ends Filtering based on the relationship type is supported
      Specified by:
      getRelationshipBetweenEntities in interface AssetCatalogInterface
      Parameters:
      userId - the unique identifier for the user
      entity1GUID - Entity guid of the first end of the relationship
      entity2GUID - Entity guid of the second end of the relationship
      relationshipType - Type of the relationship
      Returns:
      relationships between entities
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - if parameter validation fails
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - if a problem occurs while serving the request
    • getSupportedTypes

      public org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.AssetCatalogSupportedTypes getSupportedTypes(String userId, String type) throws org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      Description copied from interface: AssetCatalogInterface
      Returns the list with supported types for search, including the sub-types supported
      Specified by:
      getSupportedTypes in interface AssetCatalogInterface
      Parameters:
      userId - the unique identifier for the user
      type - the type
      Returns:
      list of types and sub-types supported for search
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - if a problem occurs while serving the request
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - if parameter validation fails