@Service public class AssetCatalogOMASService extends Object
| Constructor and Description |
|---|
AssetCatalogOMASService(AssetCatalog assetCatalog) |
| Modifier and Type | Method and Description |
|---|---|
AssetElements |
getAssetContext(String userId,
String assetId,
String assetType) |
AssetDescription |
getAssetDetails(String user,
String assetId,
String assetType)
Fetch asset's header, classification and properties
|
List<Relationship> |
getAssetRelationships(String user,
String assetId,
String assetType,
String relationshipTypeGUID,
Integer from,
Integer pageSize)
Fetch the relationships for a specific asset
|
AssetDescription |
getAssetUniverse(String user,
String assetId,
String assetType)
Fetch asset's header, classification, properties and relationships
|
List<Classification> |
getClassificationsForAsset(String user,
String assetId,
String assetType,
String classificationName)
Fetch the classification for a specific asset
|
List<Type> |
getSupportedTypes(String userId) |
List<AssetElements> |
searchAssets(String user,
String searchCriteria,
SearchParameters searchParameters)
Fetch asset's header
|
@Autowired public AssetCatalogOMASService(AssetCatalog assetCatalog)
public AssetDescription getAssetDetails(String user, String assetId, String assetType) throws PropertyServerException, InvalidParameterException
user - userId of the user triggering the requestassetId - the unique identifier for the assetPropertyServerException - there is a problem retrieving information from the property serverInvalidParameterExceptionpublic AssetDescription getAssetUniverse(String user, String assetId, String assetType) throws PropertyServerException, InvalidParameterException
user - userId of the user triggering the requestassetId - the unique identifier for the assetPropertyServerException - there is a problem retrieving information from the property serverInvalidParameterException - one of the parameters is null or invalidInvalidParameterExceptionpublic List<Relationship> getAssetRelationships(String user, String assetId, String assetType, String relationshipTypeGUID, Integer from, Integer pageSize) throws PropertyServerException, InvalidParameterException
user - userId of the user triggering the requestassetId - the unique identifier for the assetPropertyServerException - there is a problem retrieving information from the property serverInvalidParameterException - one of the parameters is null or invalidInvalidParameterExceptionpublic List<Classification> getClassificationsForAsset(String user, String assetId, String assetType, String classificationName) throws PropertyServerException, InvalidParameterException
user - userId of the user triggering the requestassetId - the unique identifier for the assetPropertyServerException - there is a problem retrieving information from the property serverInvalidParameterException - one of the parameters is null or invalidInvalidParameterExceptionpublic List<AssetElements> searchAssets(String user, String searchCriteria, SearchParameters searchParameters) throws InvalidParameterException, PropertyServerException
user - userId of the user triggering the requestsearchCriteria - the searchCriteriaPropertyServerException - there is a problem retrieving information from the property serverInvalidParameterException - there is a problem with the parametersInvalidParameterExceptionpublic AssetElements getAssetContext(String userId, String assetId, String assetType) throws PropertyServerException, InvalidParameterException
public List<Type> getSupportedTypes(String userId) throws PropertyServerException, InvalidParameterException
Copyright © 2018–2020 ODPi. All rights reserved.