use of org.ovirt.engine.core.common.businessentities.KVMVmProviderProperties in project ovirt-engine by oVirt.
the class KVMPropertiesModel method init.
public void init(Provider<KVMVmProviderProperties> provider) {
KVMVmProviderProperties properties = provider.getAdditionalProperties();
getUrl().setEntity(properties.getUrl());
setLastProxyHostId(properties.getProxyHostId());
setLastStoragePoolId(properties.getStoragePoolId());
}
use of org.ovirt.engine.core.common.businessentities.KVMVmProviderProperties in project ovirt-engine by oVirt.
the class ImportVmsModel method kvmProviderChanged.
private void kvmProviderChanged() {
Provider<KVMVmProviderProperties> provider = getKvmProviders().getSelectedItem();
if (provider == null) {
provider = new Provider<>();
provider.setAdditionalProperties(new KVMVmProviderProperties());
}
getKvmUsername().setEntity(provider.getUsername());
getKvmPassword().setEntity(provider.getPassword());
getKvmRequiresAuthentication().setEntity(provider.isRequiringAuthentication());
KVMVmProviderProperties properties = provider.getAdditionalProperties();
getKvmUri().setEntity(properties.getUrl());
setupProxyHost(getKvmProxyHosts(), properties.getProxyHostId());
}
Aggregations