Search in sources :

Example 1 with AssetDependencyRequest

use of com.emc.vipr.model.catalog.AssetDependencyRequest in project coprhd-controller by CoprHD.

the class AssetOptions method getAssetDependencies.

public List<String> getAssetDependencies(String assetType, Set<String> availableAssetTypes) {
    AssetDependencyRequest request = new AssetDependencyRequest();
    request.setTenantId(uri(parent.getUserInfo().getTenant()));
    request.setAvailableAssetTypes(availableAssetTypes);
    return getAssetDependencies(assetType, request);
}
Also used : AssetDependencyRequest(com.emc.vipr.model.catalog.AssetDependencyRequest)

Example 2 with AssetDependencyRequest

use of com.emc.vipr.model.catalog.AssetDependencyRequest in project coprhd-controller by CoprHD.

the class AssetOptionUtils method getAssetDependencies.

public static List<String> getAssetDependencies(String assetType, Set<String> availableAssetTypes) {
    ViPRCatalogClient2 catalog = getCatalogClient();
    AssetDependencyRequest request = new AssetDependencyRequest();
    request.setTenantId(uri(Models.currentAdminTenant()));
    request.setAvailableAssetTypes(availableAssetTypes);
    return catalog.assetOptions().getAssetDependencies(assetType, availableAssetTypes);
}
Also used : AssetDependencyRequest(com.emc.vipr.model.catalog.AssetDependencyRequest) ViPRCatalogClient2(com.emc.vipr.client.ViPRCatalogClient2)

Aggregations

AssetDependencyRequest (com.emc.vipr.model.catalog.AssetDependencyRequest)2 ViPRCatalogClient2 (com.emc.vipr.client.ViPRCatalogClient2)1