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);
}
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);
}
Aggregations