Search in sources :

Example 21 with StoragePortRestRep

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));
}
Also used : StoragePortRestRep(com.emc.storageos.model.ports.StoragePortRestRep) StoragePortInfo(models.datatable.StoragePortDataTable.StoragePortInfo)

Example 22 with StoragePortRestRep

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;
}
Also used : StoragePortRestRep(com.emc.storageos.model.ports.StoragePortRestRep)

Aggregations

StoragePortRestRep (com.emc.storageos.model.ports.StoragePortRestRep)22 URI (java.net.URI)8 StorageSystemRestRep (com.emc.storageos.model.systems.StorageSystemRestRep)7 VirtualArrayRestRep (com.emc.storageos.model.varray.VirtualArrayRestRep)5 NetworkRestRep (com.emc.storageos.model.varray.NetworkRestRep)4 ViPRCoreClient (com.emc.vipr.client.ViPRCoreClient)4 StoragePortInfo (models.datatable.StoragePortDataTable.StoragePortInfo)3 NamedRelatedResourceRep (com.emc.storageos.model.NamedRelatedResourceRep)2 InitiatorRestRep (com.emc.storageos.model.host.InitiatorRestRep)2 StoragePortGroupRestRepList (com.emc.storageos.model.portgroup.StoragePortGroupRestRepList)2 StoragePortList (com.emc.storageos.model.ports.StoragePortList)2 StoragePortUpdate (com.emc.storageos.model.ports.StoragePortUpdate)2 AssetOption (com.emc.vipr.model.catalog.AssetOption)2 FlashException (controllers.util.FlashException)2 ArrayList (java.util.ArrayList)2 HashSet (java.util.HashSet)2 EndpointInfo (models.datatable.NetworkEndpointDataTable.EndpointInfo)2 Asset (com.emc.sa.asset.annotation.Asset)1 AssetDependencies (com.emc.sa.asset.annotation.AssetDependencies)1 SnapshotList (com.emc.storageos.model.SnapshotList)1