Class AssetCatalogRESTServices
java.lang.Object
org.odpi.openmetadata.tokencontroller.TokenController
org.odpi.openmetadata.viewservices.assetcatalog.server.AssetCatalogRESTServices
The AssetCatalogRESTServices provides the implementation of the Asset Catalog Open Metadata View Service (OMVS).
This interface provides view interfaces for glossary UIs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindInAssetDomain(String serverName, SearchStringRequestBody requestBody) Locate string value in elements that are anchored to assets.getAssetAsDcat(String serverName, String assetGUID) Return the description of an asset in the Data Catalog Vocabulary (DCAT).getAssetGraph(String serverName, String assetGUID, ResultsRequestBody requestBody) Return all the elements that are anchored to an asset plus relationships between these elements and to other elements.getAssetLineageGraph(String serverName, String assetGUID, AssetLineageGraphRequestBody requestBody) Return all the elements that are linked to an asset using lineage relationships.getAssetsByMetadataCollectionId(String serverName, String metadataCollectionId, ResultsRequestBody requestBody) Return a list of assets that come from the requested metadata collection.getSupportedTypes(String serverName) Returns the list with supported types for search, including the subtypes supported.importDcatDocument(String serverName, String document) Catalog a Data Catalog Vocabulary (DCAT) document directly in open metadata.publishDcatDocument(String serverName, String serverGUID, String document) Pass a Data Catalog Vocabulary (DCAT) document to an integration daemon.Methods inherited from class org.odpi.openmetadata.tokencontroller.TokenController
getUser
-
Constructor Details
-
AssetCatalogRESTServices
public AssetCatalogRESTServices()Default constructor
-
-
Method Details
-
getAssetGraph
public OpenMetadataRootElementResponse getAssetGraph(String serverName, String assetGUID, ResultsRequestBody requestBody) Return all the elements that are anchored to an asset plus relationships between these elements and to other elements.- Parameters:
serverName- name of the server instances for this requestassetGUID- unique name for the connection.requestBody- options to control the query- Returns:
- graph of elements or InvalidParameterException - one of the parameters is null or invalid or PropertyServerException - a problem retrieving the connected asset properties from the property server or UserNotAuthorizedException - the requesting user is not authorized to issue this request.
-
getAssetLineageGraph
public OpenMetadataRootElementResponse getAssetLineageGraph(String serverName, String assetGUID, AssetLineageGraphRequestBody requestBody) Return all the elements that are linked to an asset using lineage relationships. The relationships are retrieved both from the asset, and the anchored schema elements- Parameters:
serverName- name of the server instances for this requestassetGUID- unique identifier for the assetrequestBody- list of relationship type names to use in the search- Returns:
- graph of elements or InvalidParameterException - one of the parameters is null or invalid or PropertyServerException - a problem retrieving the connected asset properties from the property server or UserNotAuthorizedException - the requesting user is not authorized to issue this request.
-
findInAssetDomain
public OpenMetadataRootElementsResponse findInAssetDomain(String serverName, SearchStringRequestBody requestBody) Locate string value in elements that are anchored to assets. The results are organized by asset. Paging (startFrom and pageSize) applies to the matching elements, before they are grouped by asset. A page may therefore hold fewer assets than pageSize, and an asset whose matches fall on more than one page is returned on each of those pages, with the matches from that page.- Parameters:
serverName- name of the server instances for this requestrequestBody- string to search for in text- Returns:
- list of results for assets that match the search string or InvalidParameterException the searchString is invalid or PropertyServerException a problem access in the property server or UserNotAuthorizedException the user does not have access to the properties
-
getAssetsByMetadataCollectionId
public OpenMetadataRootElementsResponse getAssetsByMetadataCollectionId(String serverName, String metadataCollectionId, ResultsRequestBody requestBody) Return a list of assets that come from the requested metadata collection.- Parameters:
serverName- name of the server instances for this requestmetadataCollectionId- guid to search forrequestBody- optional type name to restrict search by- Returns:
- list of unique identifiers for Assets with the requested name or InvalidParameterException the name is invalid or PropertyServerException a problem access in the property server or UserNotAuthorizedException the user does not have access to the properties
-
getSupportedTypes
Returns the list with supported types for search, including the subtypes supported. The list is deduplicated.- Parameters:
serverName- name of the server to route the request to- Returns:
- the supported types from open metadata or PropertyServerException if a configuration on the backend InvalidParameterException if parameter validation fails UserNotAuthorizedException security access problem
-
publishDcatDocument
Pass a Data Catalog Vocabulary (DCAT) document to an integration daemon. The integration daemon passes it on to the integration connectors that have registered a listener for DCAT documents, such as the DCAT Cataloguer.- Parameters:
serverName- name of called serverserverGUID- unique identifier of the integration daemon's software server assetdocument- DCAT document in JSON-LD format- Returns:
- void or InvalidParameterException one of the parameters is null or invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
importDcatDocument
Catalog a Data Catalog Vocabulary (DCAT) document directly in open metadata. Each dataset becomes a data set asset with an asset for each of its distributions, each data service becomes a deployed API and each catalog becomes a collection folder. Sending the same description again updates the elements.- Parameters:
serverName- name of called serverdocument- DCAT document in JSON-LD format- Returns:
- unique identifiers of the elements that represent the catalogs, datasets, dataset series and data services described in the document or InvalidParameterException one of the parameters is null or invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
getAssetAsDcat
Return the description of an asset in the Data Catalog Vocabulary (DCAT). A deployed API is described as a data service; any other type of asset is described as a dataset. The description is a JSON-LD document.- Parameters:
serverName- name of called serverassetGUID- unique identifier of the asset- Returns:
- DCAT description or InvalidParameterException one of the parameters is null or invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-