Search in sources :

Example 6 with StorageDriverRestRep

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));
}
Also used : StorageDriverInfo(models.datatable.StorageDriverDataTable.StorageDriverInfo) StorageDriverRestRep(com.emc.storageos.model.storagedriver.StorageDriverRestRep)

Example 7 with StorageDriverRestRep

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());
}
Also used : ArrayList(java.util.ArrayList) StorageDriverRestRep(com.emc.storageos.model.storagedriver.StorageDriverRestRep)

Aggregations

StorageDriverRestRep (com.emc.storageos.model.storagedriver.StorageDriverRestRep)7 ArrayList (java.util.ArrayList)3 Test (org.junit.Test)2 StorageSystemType (com.emc.storageos.db.client.model.StorageSystemType)1 StorageDriverList (com.emc.storageos.model.storagedriver.StorageDriverList)1 URI (java.net.URI)1 HashMap (java.util.HashMap)1 StorageDriverInfo (models.datatable.StorageDriverDataTable.StorageDriverInfo)1