use of com.emc.vipr.model.catalog.AssetOptionsRequest in project coprhd-controller by CoprHD.
the class AssetOptions method getAssetOptions.
public List<AssetOption> getAssetOptions(String assetType, Map<String, String> assetParameters) {
AssetOptionsRequest request = new AssetOptionsRequest();
request.setTenantId(uri(parent.getUserInfo().getTenant()));
request.setAvailableAssets(assetParameters);
return getAssetOptions(assetType, request);
}
use of com.emc.vipr.model.catalog.AssetOptionsRequest in project coprhd-controller by CoprHD.
the class AssetOptionUtils method getAssetOptions.
public static List<AssetOption> getAssetOptions(String assetType, Map<String, String> assetParameters) {
ViPRCatalogClient2 catalog = getCatalogClient();
AssetOptionsRequest request = new AssetOptionsRequest();
request.setTenantId(uri(Models.currentAdminTenant()));
request.setAvailableAssets(assetParameters);
return catalog.assetOptions().getAssetOptions(assetType, request);
}
Aggregations