Search in sources :

Example 1 with EnumOption

use of util.EnumOption in project coprhd-controller by CoprHD.

the class StorageProviderTypes method getSupportedStorageType.

public static List<EnumOption> getSupportedStorageType() {
    List<EnumOption> supportedStorageType = new ArrayList<EnumOption>();
    supportedStorageType.add(new EnumOption(BLOCK_TYPE, BLOCK_TYPE));
    supportedStorageType.add(new EnumOption(FILE_TYPE, FILE_TYPE));
    supportedStorageType.add(new EnumOption(OBJECT_TYPE, OBJECT_TYPE));
    supportedStorageType.add(new EnumOption(ALL_TYPE, ALL_TYPE));
    return supportedStorageType;
}
Also used : EnumOption(util.EnumOption) ArrayList(java.util.ArrayList)

Example 2 with EnumOption

use of util.EnumOption 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

ArrayList (java.util.ArrayList)2 EnumOption (util.EnumOption)2 StorageSystemTypeList (com.emc.storageos.model.storagesystem.type.StorageSystemTypeList)1 StorageSystemTypeRestRep (com.emc.storageos.model.storagesystem.type.StorageSystemTypeRestRep)1