Search in sources :

Example 1 with KVMVmProviderProperties

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());
}
Also used : KVMVmProviderProperties(org.ovirt.engine.core.common.businessentities.KVMVmProviderProperties)

Example 2 with KVMVmProviderProperties

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());
}
Also used : KVMVmProviderProperties(org.ovirt.engine.core.common.businessentities.KVMVmProviderProperties)

Aggregations

KVMVmProviderProperties (org.ovirt.engine.core.common.businessentities.KVMVmProviderProperties)2