use of com.emc.storageos.model.storagesystem.type.StorageSystemTypeRestRep in project coprhd-controller by CoprHD.
the class StorageProviderTypes method getProviderOption.
public static List<StringOption> getProviderOption() {
List<StringOption> allproviders = new ArrayList<StringOption>();
StorageSystemTypeList storagetypelist = StorageSystemTypeUtils.getAllStorageSystemTypes(ALL_TYPE);
for (StorageSystemTypeRestRep storagetypeRest : storagetypelist.getStorageSystemTypes()) {
if (storagetypeRest.getIsSmiProvider()) {
if (!StringUtils.equals(SCALEIO, storagetypeRest.getStorageTypeName())) {
allproviders.add(new StringOption(storagetypeRest.getStorageTypeName(), storagetypeRest.getStorageTypeDispName()));
}
}
}
return allproviders;
}
use of com.emc.storageos.model.storagesystem.type.StorageSystemTypeRestRep in project coprhd-controller by CoprHD.
the class StorageProviderTypes method getAllFlashProviderOption.
public static List<StringOption> getAllFlashProviderOption() {
List<StringOption> allproviders = new ArrayList<StringOption>();
StorageSystemTypeList storagetypelist = StorageSystemTypeUtils.getAllStorageSystemTypes(ALL_TYPE);
for (StorageSystemTypeRestRep storagetypeRest : storagetypelist.getStorageSystemTypes()) {
if (storagetypeRest.getIsSmiProvider()) {
if (StringUtils.equals(SMIS, storagetypeRest.getStorageTypeName()) || StringUtils.equals(XTREMIO, storagetypeRest.getStorageTypeName())) {
allproviders.add(new StringOption(storagetypeRest.getStorageTypeName(), storagetypeRest.getStorageTypeDispName()));
}
}
}
Collections.sort(allproviders);
return allproviders;
}
use of com.emc.storageos.model.storagesystem.type.StorageSystemTypeRestRep in project coprhd-controller by CoprHD.
the class StorageProviderTypes method getScaleIoOption.
public static List<StringOption> getScaleIoOption() {
List<StringOption> allproviders = new ArrayList<StringOption>();
StorageSystemTypeList storagetypelist = StorageSystemTypeUtils.getAllStorageSystemTypes(ALL_TYPE);
for (StorageSystemTypeRestRep storagetypeRest : storagetypelist.getStorageSystemTypes()) {
if (storagetypeRest.getStorageTypeName().equals(SCALEIO)) {
allproviders.add(new StringOption(storagetypeRest.getStorageTypeName(), storagetypeRest.getStorageTypeDispName()));
}
if (storagetypeRest.getStorageTypeName().equals(SCALEIOAPI)) {
allproviders.add(new StringOption(storagetypeRest.getStorageTypeName(), storagetypeRest.getStorageTypeDispName()));
}
}
return allproviders;
}
use of com.emc.storageos.model.storagesystem.type.StorageSystemTypeRestRep in project coprhd-controller by CoprHD.
the class StorageProviderTypes method getProvidersWithSSL.
public static List<StringOption> getProvidersWithSSL() {
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;
}
use of com.emc.storageos.model.storagesystem.type.StorageSystemTypeRestRep in project coprhd-controller by CoprHD.
the class StorageSystemTypes method getStorageTypeOptions.
/**
* Inside structure of StringOption is "storage type name: provider name (or storage type display name)
*/
public static List<StringOption> getStorageTypeOptions() {
Map<String, String> arrayProviderMap = StorageSystemTypesInitUtils.getProviderDsiplayNameMap();
List<StringOption> options = new ArrayList<StringOption>();
Map<String, StorageSystemTypeRestRep> typeMap = buildTypeMap();
for (StorageSystemTypeRestRep type : typeMap.values()) {
String typeName = type.getStorageTypeName();
if (type.isNative()) {
// ignore SMIS providers except VPLEX, SCALEIO, IBMXIV, XTREMIO
if (type.getIsSmiProvider() && !StringUtils.equals(VPLEX, typeName) && !StringUtils.equals(SCALEIOAPI, typeName) && !StringUtils.equals(IBMXIV, typeName) && !StringUtils.equals(XTREMIO, typeName) && !StringUtils.equals(CEPH, typeName)) {
continue;
}
String provider = arrayProviderMap.get(typeName);
if (provider != null) {
if (StringUtils.equals(VMAX, typeName)) {
options.add(new StringOption(SMIS, provider));
} else {
options.add(new StringOption(typeName, provider));
}
} else if (!StringUtils.equals(VNX_BLOCK, typeName)) {
// VNX block is covered by VMAX
options.add(new StringOption(typeName, type.getStorageTypeDispName()));
}
} else if (type.getIsSmiProvider()) {
continue;
} else if (type.getManagedBy() != null) {
options.add(new StringOption(typeName, typeMap.get(type.getManagedBy()).getStorageTypeDispName()));
} else {
options.add(new StringOption(typeName, type.getStorageTypeDispName()));
}
}
return options;
}
Aggregations