Search in sources :

Example 26 with StorageSystemTypeRestRep

use of com.emc.storageos.model.storagesystem.type.StorageSystemTypeRestRep in project coprhd-controller by CoprHD.

the class StorageSystemTypes method getProvidersWithOnlyMDM.

public static List<StringOption> getProvidersWithOnlyMDM() {
    String alltypes = "all";
    List<StringOption> allproviders = new ArrayList<StringOption>();
    StorageSystemTypeList storagetypelist = StorageSystemTypeUtils.getAllStorageSystemTypes(alltypes);
    for (StorageSystemTypeRestRep storagetypeRest : storagetypelist.getStorageSystemTypes()) {
        if (storagetypeRest.getIsOnlyMDM()) {
            allproviders.add(new StringOption(storagetypeRest.getStorageTypeName(), storagetypeRest.getStorageTypeDispName()));
        }
    }
    return allproviders;
}
Also used : StorageSystemTypeRestRep(com.emc.storageos.model.storagesystem.type.StorageSystemTypeRestRep) StringOption(util.StringOption) ArrayList(java.util.ArrayList) StorageSystemTypeList(com.emc.storageos.model.storagesystem.type.StorageSystemTypeList)

Example 27 with StorageSystemTypeRestRep

use of com.emc.storageos.model.storagesystem.type.StorageSystemTypeRestRep in project coprhd-controller by CoprHD.

the class StorageSystems method buildSouthBoundTypeMap.

private static void buildSouthBoundTypeMap() {
    nonNativeSystemProviderMap.clear();
    Map<String, StorageSystemTypeRestRep> typeMap = StorageSystemTypes.buildTypeMap();
    for (StorageSystemTypeRestRep type : typeMap.values()) {
        if (type.isNative() || type.getManagedBy() == null) {
            continue;
        }
        nonNativeSystemProviderMap.put(type.getStorageTypeName(), typeMap.get(type.getManagedBy()).getStorageTypeName());
    }
}
Also used : StorageSystemTypeRestRep(com.emc.storageos.model.storagesystem.type.StorageSystemTypeRestRep)

Aggregations

StorageSystemTypeRestRep (com.emc.storageos.model.storagesystem.type.StorageSystemTypeRestRep)27 StorageSystemTypeList (com.emc.storageos.model.storagesystem.type.StorageSystemTypeList)23 ArrayList (java.util.ArrayList)23 StringOption (util.StringOption)20 StorageSystemType (com.emc.storageos.db.client.model.StorageSystemType)1 HashMap (java.util.HashMap)1 GET (javax.ws.rs.GET)1 Path (javax.ws.rs.Path)1 Produces (javax.ws.rs.Produces)1 EnumOption (util.EnumOption)1