use of com.emc.storageos.model.ports.StoragePortRestRep in project coprhd-controller by CoprHD.
the class StorageSystems method arrayPortsJson.
public static void arrayPortsJson(String id) {
List<StoragePortInfo> results = Lists.newArrayList();
List<StoragePortRestRep> storagePorts = StoragePortUtils.getStoragePorts(id);
for (StoragePortRestRep storagePort : storagePorts) {
results.add(new StoragePortInfo(storagePort));
}
renderJSON(DataTablesSupport.createJSON(results, params));
}
use of com.emc.storageos.model.ports.StoragePortRestRep in project coprhd-controller by CoprHD.
the class MapStoragePort method apply.
@Override
public StoragePortRestRep apply(StoragePort resource) {
StoragePortRestRep storagePortRestRep = SystemsMapper.map(resource);
applyAliasToStoragePortRestRep(storagePortRestRep);
applyAdapterNameToStoragePortRestRep(storagePortRestRep, resource);
return storagePortRestRep;
}
Aggregations