use of com.emc.storageos.model.storagedriver.StorageDriverRestRep in project coprhd-controller by CoprHD.
the class StorageDrivers method listJson.
public static void listJson() {
List<StorageDriverInfo> drivers = Lists.newArrayList();
for (StorageDriverRestRep driver : StorageDriverUtils.getDrivers().getDrivers()) {
drivers.add(new StorageDriverInfo(driver));
}
renderJSON(DataTablesSupport.createJSON(drivers, params));
}
use of com.emc.storageos.model.storagedriver.StorageDriverRestRep in project coprhd-controller by CoprHD.
the class StorageDrivers method itemsJson.
private static void itemsJson(List<String> names) {
List<StorageDriverRestRep> drivers = new ArrayList<StorageDriverRestRep>();
for (String name : names) {
StorageDriverRestRep driver = StorageDriverUtils.getDriver(name);
if (driver != null) {
drivers.add(driver);
}
}
performItemsJson(drivers, new JsonItemOperation());
}
Aggregations