use of com.emc.storageos.model.pools.StoragePoolRestRep in project coprhd-controller by CoprHD.
the class ObjectVirtualPools method listStoragePoolsJson.
public static void listStoragePoolsJson(ObjectVirtualPoolForm vpool) {
List<StoragePoolInfo> items = Lists.newArrayList();
if (vpool.objectProtocols != null) {
vpool.protocols = Sets.newHashSet(vpool.objectProtocols);
}
if (vpool != null && vpool.protocols != null && !vpool.protocols.isEmpty()) {
Map<URI, String> storageSystemNames = StorageSystemUtils.getStorageSystemNames();
List<StoragePoolRestRep> pools = getMatchingStoragePools(vpool);
for (StoragePoolRestRep pool : pools) {
String storageSystemName = storageSystemNames.get(id(pool.getStorageSystem()));
items.add(new StoragePoolInfo(pool, storageSystemName));
}
}
renderJSON(DataTablesSupport.createJSON(items, params));
}
use of com.emc.storageos.model.pools.StoragePoolRestRep in project coprhd-controller by CoprHD.
the class StorageSystems method editPool.
public static void editPool(String id, String poolId) {
StoragePoolRestRep storagePool = StoragePoolUtils.getStoragePool(poolId);
StorageSystemRestRep storageSystem = StorageSystemUtils.getStorageSystem(id(storagePool.getStorageSystem()));
if (RegistrationStatus.isUnregistered(storageSystem.getRegistrationStatus())) {
flash.put("warning", MessagesUtils.get(NOT_REGISTERED, storageSystem.getName()));
}
StorageArrayPoolForm storageArrayPool = new StorageArrayPoolForm();
storageArrayPool.readFrom(storagePool);
render(storageArrayPool, storagePool, storageSystem);
}
Aggregations