use of com.emc.storageos.model.systems.StorageSystemRestRep 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);
}
use of com.emc.storageos.model.systems.StorageSystemRestRep in project coprhd-controller by CoprHD.
the class StorageSystems method pools.
public static void pools(String id) {
addReferenceData();
StorageSystemRestRep storageSystem = StorageSystemUtils.getStorageSystem(id);
StorageArrayPoolDataTable dataTable = new StorageArrayPoolDataTable();
if (StorageSystemTypes.isFileStorageSystem(storageSystem.getSystemType())) {
dataTable.configureForFile();
}
if (StorageSystemTypes.isECS(storageSystem.getSystemType())) {
dataTable.configureForECS();
}
render("@listPools", storageSystem, dataTable);
}
use of com.emc.storageos.model.systems.StorageSystemRestRep in project coprhd-controller by CoprHD.
the class StorageSystems method virtualNasServers.
public static void virtualNasServers(String id) {
addReferenceData();
StorageSystemRestRep storageSystem = StorageSystemUtils.getStorageSystem(id);
VirtualNasServerDataTable dataTable;
if (isTenantAdmin() || isProjectAdmin()) {
dataTable = new VirtualNasServerDataTable();
} else {
dataTable = new VirtualNasForNonProjectAdminDataTable();
}
renderArgs.put("storageId", id);
renderArgs.put("expectedGeoVersion", VCenterUtils.checkCompatibleVDCVersion(EXPECTED_GEO_VERSION_FOR_VNAS_SUPPORT));
render("@listVirtualNasServers", storageSystem, dataTable);
}
use of com.emc.storageos.model.systems.StorageSystemRestRep in project coprhd-controller by CoprHD.
the class StorageSystems method itemDetails.
public static void itemDetails(String id) {
StorageSystemRestRep storageSystem = StorageSystemUtils.getStorageSystem(id);
if (storageSystem == null) {
error(MessagesUtils.get(UNKNOWN, id));
}
StorageProviderRestRep smisProvider = StorageSystemUtils.getStorageProvider(storageSystem);
Map<String, Set<NamedRelatedResourceRep>> connectivityMap = StorageSystemUtils.getProtectionConnectivityMap(storageSystem);
render(storageSystem, smisProvider, connectivityMap);
}
use of com.emc.storageos.model.systems.StorageSystemRestRep in project coprhd-controller by CoprHD.
the class VirtualArrays method storagePortsJson.
/**
* Renders the list of storage ports for a given virtual array as JSON.
*
* @param id
* the virtual array ID.
*/
public static void storagePortsJson(String id) {
List<StoragePortInfo> items = Lists.newArrayList();
CachedResources<StorageSystemRestRep> storageSystems = StorageSystemUtils.createCache();
List<StoragePortRestRep> storagePorts = StoragePortUtils.getStoragePortsByVirtualArray(uri(id));
Map<URI, String> networks = NetworkUtils.getNetworkNamesByVirtualArray(id);
for (StoragePortRestRep storagePort : storagePorts) {
StoragePortInfo item = new StoragePortInfo(storagePort, storageSystems.get(storagePort.getStorageDevice()));
item.assigned = VirtualArrayUtils.isAssigned(storagePort, id);
item.network = networks.get(id(storagePort.getNetwork()));
items.add(item);
}
renderJSON(DataTablesSupport.createJSON(items, params));
}
Aggregations