public class AssetCatalog extends FFDCRESTClient implements AssetCatalogInterface
auditLog, exceptionHandler, serverName, serverPlatformURLRoot| Constructor and Description |
|---|
AssetCatalog(String serverName,
String serverPlatformURLRoot)
Create a new AssetCatalog client.
|
AssetCatalog(String serverName,
String serverPlatformURLRoot,
String userId,
String password) |
| Modifier and Type | Method and Description |
|---|---|
AssetResponse |
getAssetContext(String userId,
String assetGUID,
String assetType)
Return the full context of an asset/glossary term based on its identifier.
|
AssetDescriptionResponse |
getAssetDetails(String userId,
String assetGUID,
String assetType)
Fetch asset's header, classification and properties
|
RelationshipListResponse |
getAssetRelationships(String userId,
String assetGUID,
String assetType,
String relationshipType,
Integer from,
Integer pageSize)
Fetch the relationships for a specific asset
|
AssetDescriptionListResponse |
getAssetsFromNeighborhood(String userId,
String assetGUID,
SearchParameters searchParameters)
Returns the sub-graph that represents the list of assets that in neighborhood of the given asset
|
AssetDescriptionResponse |
getAssetUniverse(String userId,
String assetGUID,
String assetType)
Fetch asset's header, classification, properties and relationships
|
ClassificationListResponse |
getClassificationsForAsset(String userId,
String assetGUID,
String assetType,
String classificationName)
Fetch the classification for a specific asset
|
AssetDescriptionListResponse |
getLinkingAssets(String userId,
String startAssetGUID,
String endAssetGUID)
Returns a sub-graph of intermediate assets that connected two assets
|
RelationshipListResponse |
getLinkingRelationships(String userId,
String startAssetGUID,
String endAssetGUID)
Return a sub-graph of relationships that connect two assets
|
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
|
AssetCatalogSupportedTypes |
getSupportedTypes(String userId,
String type)
Returns the list with supported types for search, including the sub-types supported
|
AssetListResponse |
searchByType(String userId,
String searchCriteria,
SearchParameters searchParameters)
Return a list of assets matching the search criteria without the full context
|
callCountGetRESTCall, callGUIDGetRESTCall, callGUIDListGetRESTCall, callGUIDListPostRESTCall, callGUIDPostRESTCall, callNameListGetRESTCall, callStringMapGetRESTCall, callVoidGetRESTCall, callVoidPostRESTCallcallDeleteRESTCall, callGetRESTCall, callGetRESTCallNoParams, callPostRESTCall, callPostRESTCallNoParams, callPutRESTCallpublic AssetCatalog(String serverName, String serverPlatformURLRoot) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversInvalidParameterException - if parameter validation failsInvalidParameterExceptionpublic AssetCatalog(String serverName, String serverPlatformURLRoot, String userId, String password) throws InvalidParameterException
InvalidParameterExceptionpublic AssetDescriptionResponse getAssetDetails(String userId, String assetGUID, String assetType) throws InvalidParameterException, PropertyServerException
getAssetDetails in interface AssetCatalogInterfaceuserId - the unique identifier for the userassetGUID - the unique identifier for the assetassetType - the type of the assetInvalidParameterException - if parameter validation failsPropertyServerException - if a problem occurs while serving the requestInvalidParameterExceptionpublic AssetDescriptionResponse getAssetUniverse(String userId, String assetGUID, String assetType) throws InvalidParameterException, PropertyServerException
getAssetUniverse in interface AssetCatalogInterfaceuserId - the unique identifier for the userassetGUID - the unique identifier for the assetassetType - the asset typeInvalidParameterException - if parameter validation failsPropertyServerException - if a problem occurs while serving the requestInvalidParameterExceptionpublic RelationshipListResponse getAssetRelationships(String userId, String assetGUID, String assetType, String relationshipType, Integer from, Integer pageSize) throws InvalidParameterException, PropertyServerException
getAssetRelationships in interface AssetCatalogInterfaceuserId - the unique identifier for the userassetGUID - the unique identifier for the assetassetType - the type of the assetrelationshipType - the type of the relationshipfrom - offsetpageSize - limit the number of the assets returnedInvalidParameterException - if parameter validation failsPropertyServerException - if a problem occurs while serving the requestInvalidParameterExceptionpublic ClassificationListResponse getClassificationsForAsset(String userId, String assetGUID, String assetType, String classificationName) throws InvalidParameterException, PropertyServerException
getClassificationsForAsset in interface AssetCatalogInterfaceuserId - the unique identifier for the userassetGUID - the unique identifier for the assetassetType - the type of the assetclassificationName - the name of the classificationInvalidParameterException - if parameter validation failsPropertyServerException - if a problem occurs while serving the requestInvalidParameterExceptionpublic AssetDescriptionListResponse getLinkingAssets(String userId, String startAssetGUID, String endAssetGUID) throws InvalidParameterException, PropertyServerException
getLinkingAssets in interface AssetCatalogInterfaceuserId - the unique identifier for the userstartAssetGUID - the starting asset identifier of the queryendAssetGUID - the ending asset identifier of the queryInvalidParameterException - if parameter validation failsPropertyServerException - if a problem occurs while serving the requestInvalidParameterExceptionpublic RelationshipListResponse getLinkingRelationships(String userId, String startAssetGUID, String endAssetGUID) throws InvalidParameterException, PropertyServerException
getLinkingRelationships in interface AssetCatalogInterfaceuserId - the unique identifier for the userstartAssetGUID - the starting asset identifier of the queryendAssetGUID - the ending asset identifier of the queryInvalidParameterException - if parameter validation failsPropertyServerException - if a problem occurs while serving the requestInvalidParameterExceptionpublic AssetDescriptionListResponse getAssetsFromNeighborhood(String userId, String assetGUID, SearchParameters searchParameters) throws InvalidParameterException, PropertyServerException
getAssetsFromNeighborhood in interface AssetCatalogInterfaceuserId - the unique identifier for the userassetGUID - the starting asset identifier of the querysearchParameters - constrains to make the assets's search results more preciseInvalidParameterException - if parameter validation failsPropertyServerException - if a problem occurs while serving the requestInvalidParameterExceptionpublic AssetListResponse searchByType(String userId, String searchCriteria, SearchParameters searchParameters) throws InvalidParameterException, PropertyServerException
searchByType in interface AssetCatalogInterfaceuserId - the unique identifier for the usersearchCriteria - a string expression of the characteristics of the required assetssearchParameters - constrains to make the assets's search results more preciseInvalidParameterException - if parameter validation failsPropertyServerException - if a problem occurs while serving the requestInvalidParameterExceptionpublic AssetResponse getAssetContext(String userId, String assetGUID, String assetType) throws InvalidParameterException, PropertyServerException
getAssetContext in interface AssetCatalogInterfaceuserId - the unique identifier for the userassetGUID - the global unique identifier of the assetassetType - the type of the assetInvalidParameterException - if parameter validation failsPropertyServerException - if a problem occurs while serving the requestInvalidParameterExceptionpublic RelationshipResponse getRelationshipBetweenEntities(String userId, String entity1GUID, String entity2GUID, String relationshipType) throws InvalidParameterException, PropertyServerException
getRelationshipBetweenEntities in interface AssetCatalogInterfaceuserId - the unique identifier for the userentity1GUID - Entity guid of the first end of the relationshipentity2GUID - Entity guid of the second end of the relationshiprelationshipType - Type of the relationshipInvalidParameterException - if parameter validation failsPropertyServerException - if a problem occurs while serving the requestInvalidParameterExceptionpublic AssetCatalogSupportedTypes getSupportedTypes(String userId, String type) throws PropertyServerException, InvalidParameterException
AssetCatalogInterfacegetSupportedTypes in interface AssetCatalogInterfaceuserId - the unique identifier for the usertype - the typePropertyServerExceptionInvalidParameterExceptionCopyright © 2018–2020 ODPi. All rights reserved.