public class AssetCatalog extends Object implements AssetCatalogInterface
| Constructor and Description |
|---|
AssetCatalog(String newServerURL)
Create a new AssetConsumer client.
|
| Modifier and Type | Method and Description |
|---|---|
AssetDescriptionResponse |
getAssetDetails(String userId,
String assetId)
Fetch asset's header, classification and properties
|
RelationshipsResponse |
getAssetRelationships(String userId,
String assetId)
Fetch the relationships for a specific asset
|
AssetDescriptionResponse |
getAssetsByClassificationName(String userId,
String classificationName)
Fetch the assets that match the classification name
|
AssetDescriptionResponse |
getAssetsByProperty(String userId,
String propertyValue)
Fetch the assets that match the properties
|
AssetDescriptionResponse |
getAssetsFromNeighborhood(String userId,
String assetId)
Returns the sub-graph that represents the returned linked relationships.
|
AssetDescriptionResponse |
getAssetSummary(String userId,
String assetId)
Fetch asset's header and classification
|
AssetDescriptionResponse |
getAssetUniverse(String userId,
String assetId)
Fetch asset's header, classification, properties and relationships
|
ClassificationsResponse |
getClassificationForAsset(String userId,
String assetId)
Fetch the classification for a specific asset
|
AssetDescriptionResponse |
getLastCreatedAssets(String userId)
Returns the last created assets
|
AssetDescriptionResponse |
getLastUpdatedAssets(String userId)
Returns the last updated assets
|
AssetDescriptionResponse |
getLinkingAssets(String userId,
String startAssetId,
String endAssetId)
Returns a sub-graph of intermediate assets that connected two assets
|
RelationshipsResponse |
getLinkingRelationships(String userId,
String startAssetId,
String endAssetId)
Return a sub-graph of relationships that connect two assets
|
AssetDescriptionResponse |
getRelatedAssets(String userId,
String assetId)
Return the list of assets that are of the types listed in instanceTypes and are connected,
either directly or indirectly to the asset identified by assetId.
|
RelationshipsResponse |
getRelationship(String userId,
String relationshipId)
Fetch relationship details based on its unique identifier
|
RelationshipsResponse |
getRelationshipByLabel(String userId,
String propertyName)
Fetch relationship details based on property name
|
RelationshipsResponse |
getRelationshipsFromNeighborhood(String userId,
String assetId)
Returns the sub-graph that represents the returned linked assets
|
AssetDescriptionResponse |
searchAssets(String userId,
String searchCriteria)
Return a list of assets (details and connections) matching the search criteria
|
RelationshipsResponse |
searchForRelationships(String userId,
String relationshipTypeId,
String criteria)
Return a list of relationships that match the search criteria.
|
public AssetCatalog(String newServerURL)
newServerURL - the network address of the server running the OMAS REST serverspublic AssetDescriptionResponse getAssetSummary(String userId, String assetId) throws PropertyServerException, InvalidParameterException
getAssetSummary in interface AssetCatalogInterfaceuserId - the unique identifier for the userassetId - the unique identifier for the assetPropertyServerException - there is a problem retrieving information from the property serverInvalidParameterException - one of the parameters is null or invalidpublic AssetDescriptionResponse getAssetDetails(String userId, String assetId) throws PropertyServerException, InvalidParameterException
getAssetDetails in interface AssetCatalogInterfaceuserId - the unique identifier for the userassetId - the unique identifier for the assetPropertyServerException - there is a problem retrieving information from the property serverInvalidParameterException - one of the parameters is null or invalidpublic AssetDescriptionResponse getAssetUniverse(String userId, String assetId) throws PropertyServerException, InvalidParameterException
getAssetUniverse in interface AssetCatalogInterfaceuserId - the unique identifier for the userassetId - the unique identifier for the assetPropertyServerException - there is a problem retrieving information from the property serverInvalidParameterException - one of the parameters is null or invalidpublic RelationshipsResponse getAssetRelationships(String userId, String assetId) throws PropertyServerException, InvalidParameterException
getAssetRelationships in interface AssetCatalogInterfaceuserId - the unique identifier for the userassetId - the unique identifier for the assetPropertyServerException - there is a problem retrieving information from the property serverInvalidParameterException - one of the parameters is null or invalidpublic ClassificationsResponse getClassificationForAsset(String userId, String assetId) throws PropertyServerException, InvalidParameterException
getClassificationForAsset in interface AssetCatalogInterfaceuserId - the unique identifier for the userassetId - the unique identifier for the assetPropertyServerException - there is a problem retrieving information from the property serverInvalidParameterException - one of the parameters is null or invalidpublic AssetDescriptionResponse getAssetsByProperty(String userId, String propertyValue) throws PropertyServerException, InvalidParameterException
getAssetsByProperty in interface AssetCatalogInterfaceuserId - the unique identifier for the userpropertyValue - the property value searchedPropertyServerException - there is a problem retrieving information from the property serverInvalidParameterException - one of the parameters is null or invalidpublic AssetDescriptionResponse getAssetsByClassificationName(String userId, String classificationName) throws PropertyServerException, InvalidParameterException
getAssetsByClassificationName in interface AssetCatalogInterfaceuserId - the unique identifier for the userclassificationName - the name of the classificationPropertyServerException - there is a problem retrieving information from the property serverInvalidParameterException - one of the parameters is null or invalidpublic RelationshipsResponse getLinkingRelationships(String userId, String startAssetId, String endAssetId) throws PropertyServerException, InvalidParameterException
getLinkingRelationships in interface AssetCatalogInterfaceuserId - the unique identifier for the userstartAssetId - the starting asset identifier of the queryendAssetId - the ending asset identifier of the queryPropertyServerException - there is a problem retrieving information from the property serverInvalidParameterException - one of the parameters is null or invalidpublic AssetDescriptionResponse getLinkingAssets(String userId, String startAssetId, String endAssetId) throws PropertyServerException, InvalidParameterException
getLinkingAssets in interface AssetCatalogInterfaceuserId - the unique identifier for the userstartAssetId - the starting asset identifier of the queryendAssetId - the ending asset identifier of the queryPropertyServerException - there is a problem retrieving information from the property serverInvalidParameterException - one of the parameters is null or invalidpublic AssetDescriptionResponse getRelatedAssets(String userId, String assetId) throws PropertyServerException, InvalidParameterException
getRelatedAssets in interface AssetCatalogInterfaceuserId - the unique identifier for the userassetId - the starting asset identifier of the queryPropertyServerException - there is a problem retrieving information from the property serverInvalidParameterException - one of the parameters is null or invalidpublic AssetDescriptionResponse getAssetsFromNeighborhood(String userId, String assetId) throws PropertyServerException, InvalidParameterException
getAssetsFromNeighborhood in interface AssetCatalogInterfaceuserId - the unique identifier for the userassetId - the starting asset identifier of the queryPropertyServerException - there is a problem retrieving information from the property serverInvalidParameterException - one of the parameters is null or invalidpublic RelationshipsResponse getRelationshipsFromNeighborhood(String userId, String assetId) throws PropertyServerException, InvalidParameterException
getRelationshipsFromNeighborhood in interface AssetCatalogInterfaceuserId - the unique identifier for the userassetId - the starting asset identifier of the queryPropertyServerException - there is a problem retrieving information from the property serverInvalidParameterException - one of the parameters is null or invalidpublic AssetDescriptionResponse getLastCreatedAssets(String userId) throws InvalidParameterException, PropertyServerException
getLastCreatedAssets in interface AssetCatalogInterfaceuserId - the unique identifier for the userPropertyServerException - there is a problem retrieving information from the property serverInvalidParameterException - one of the parameters is null or invalidpublic AssetDescriptionResponse getLastUpdatedAssets(String userId) throws PropertyServerException, InvalidParameterException
getLastUpdatedAssets in interface AssetCatalogInterfaceuserId - the unique identifier for the userPropertyServerException - there is a problem retrieving information from the property serverInvalidParameterException - one of the parameters is null or invalidpublic RelationshipsResponse getRelationship(String userId, String relationshipId) throws PropertyServerException, InvalidParameterException
getRelationship in interface AssetCatalogInterfaceuserId - String unique identifier for the userrelationshipId - String unique identifier for the relationshipPropertyServerExceptionInvalidParameterExceptionpublic RelationshipsResponse getRelationshipByLabel(String userId, String propertyName) throws PropertyServerException, InvalidParameterException
getRelationshipByLabel in interface AssetCatalogInterfaceuserId - String unique identifier for the userpropertyName - String that it is used to identify the relationship labelPropertyServerException - there is a problem retrieving information from the property serverInvalidParameterException - one of the parameters is null or invalidpublic RelationshipsResponse searchForRelationships(String userId, String relationshipTypeId, String criteria) throws PropertyServerException, InvalidParameterException
searchForRelationships in interface AssetCatalogInterfaceuserId - String unique identifier for the userrelationshipTypeId - limit the result set to only include the specified types for relationshipscriteria - String for searching the relationshipPropertyServerException - there is a problem retrieving information from the property serverInvalidParameterException - one of the parameters is null or invalidpublic AssetDescriptionResponse searchAssets(String userId, String searchCriteria) throws PropertyServerException, InvalidParameterException
searchAssets in interface AssetCatalogInterfaceuserId - the unique identifier for the usersearchCriteria - a string expression of the characteristics of the required assetsPropertyServerException - there is a problem retrieving information from the property serverInvalidParameterException - one of the parameters is null or invalidCopyright © 2018 ODPi. All rights reserved.