Search in sources :

Example 1 with StorageSystemTypeRestRep

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

the class SystemsMapper method map.

public static StorageSystemTypeRestRep map(StorageSystemType from) {
    if (from == null) {
        return null;
    }
    StorageSystemTypeRestRep to = new StorageSystemTypeRestRep();
    to.setStorageTypeName(from.getStorageTypeName());
    to.setMetaType(from.getMetaType());
    to.setIsSmiProvider(from.getIsSmiProvider());
    to.setStorageTypeId(from.getStorageTypeId());
    to.setStorageTypeDispName(from.getStorageTypeDispName());
    to.setIsDefaultSsl(from.getIsDefaultSsl());
    to.setIsDefaultMDM(from.getIsDefaultMDM());
    to.setIsOnlyMDM(from.getIsOnlyMDM());
    to.setIsElementMgr(from.getIsElementMgr());
    to.setNonSslPort(from.getNonSslPort());
    to.setSslPort(from.getSslPort());
    to.setDriverClassName(from.getDriverClassName());
    to.setIsSecretKey(from.getIsSecretKey());
    to.setSupportAutoTierPolicy(from.getSupportAutoTierPolicy());
    if (from.getManagedBy() != null) {
        to.setManagedBy(from.getManagedBy());
    }
    if (from.getIsNative() != null) {
        to.setNative(from.getIsNative());
    }
    return to;
}
Also used : StorageSystemTypeRestRep(com.emc.storageos.model.storagesystem.type.StorageSystemTypeRestRep)

Example 2 with StorageSystemTypeRestRep

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

the class StorageProviderTypes method getProvidersWithMDM.

public static List<StringOption> getProvidersWithMDM() {
    List<StringOption> allproviders = new ArrayList<StringOption>();
    StorageSystemTypeList storagetypelist = StorageSystemTypeUtils.getAllStorageSystemTypes(ALL_TYPE);
    for (StorageSystemTypeRestRep storagetypeRest : storagetypelist.getStorageSystemTypes()) {
        if (storagetypeRest.getIsDefaultMDM()) {
            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 3 with StorageSystemTypeRestRep

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

the class StorageProviderTypes method getProvidersWithoutSSL.

public static List<StringOption> getProvidersWithoutSSL() {
    List<StringOption> allproviders = new ArrayList<StringOption>();
    StorageSystemTypeList storagetypelist = StorageSystemTypeUtils.getAllStorageSystemTypes(ALL_TYPE);
    for (StorageSystemTypeRestRep storagetypeRest : storagetypelist.getStorageSystemTypes()) {
        if (!storagetypeRest.getIsDefaultSsl()) {
            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 4 with StorageSystemTypeRestRep

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

the class StorageProviderTypes method getProvidersWithOnlyMDM.

public static List<StringOption> getProvidersWithOnlyMDM() {
    List<StringOption> allproviders = new ArrayList<StringOption>();
    StorageSystemTypeList storagetypelist = StorageSystemTypeUtils.getAllStorageSystemTypes(ALL_TYPE);
    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 5 with StorageSystemTypeRestRep

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

the class StorageProviderTypes method getStoragePortMap.

public static List<EnumOption> getStoragePortMap() {
    List<EnumOption> StorageProviderPortMap = new ArrayList<EnumOption>();
    StorageSystemTypeList storagetypelist = StorageSystemTypeUtils.getAllStorageSystemTypes(ALL_TYPE);
    for (StorageSystemTypeRestRep storagetypeRest : storagetypelist.getStorageSystemTypes()) {
        StorageProviderPortMap.add(new EnumOption(storagetypeRest.getStorageTypeName(), storagetypeRest.getNonSslPort()));
        StorageProviderPortMap.add(new EnumOption(storagetypeRest.getStorageTypeName() + "_useSSL", storagetypeRest.getSslPort()));
    }
    return StorageProviderPortMap;
}
Also used : StorageSystemTypeRestRep(com.emc.storageos.model.storagesystem.type.StorageSystemTypeRestRep) EnumOption(util.EnumOption) ArrayList(java.util.ArrayList) StorageSystemTypeList(com.emc.storageos.model.storagesystem.type.StorageSystemTypeList)

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