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