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;
}
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;
}
Aggregations