Search in sources :

Example 1 with XENVmProviderProperties

use of org.ovirt.engine.core.common.businessentities.XENVmProviderProperties in project ovirt-engine by oVirt.

the class ImportVmsModel method xenProviderChanged.

private void xenProviderChanged() {
    Provider<XENVmProviderProperties> provider = getXenProviders().getSelectedItem();
    if (provider == null) {
        provider = new Provider<>();
        provider.setAdditionalProperties(new XENVmProviderProperties());
    }
    XENVmProviderProperties properties = provider.getAdditionalProperties();
    getXenUri().setEntity(properties.getUrl());
    setupProxyHost(getXenProxyHosts(), properties.getProxyHostId());
}
Also used : XENVmProviderProperties(org.ovirt.engine.core.common.businessentities.XENVmProviderProperties)

Example 2 with XENVmProviderProperties

use of org.ovirt.engine.core.common.businessentities.XENVmProviderProperties in project ovirt-engine by oVirt.

the class XENPropertiesModel method init.

public void init(Provider<XENVmProviderProperties> provider) {
    XENVmProviderProperties properties = provider.getAdditionalProperties();
    getUrl().setEntity(properties.getUrl());
    setLastProxyHostId(properties.getProxyHostId());
    setLastStoragePoolId(properties.getStoragePoolId());
}
Also used : XENVmProviderProperties(org.ovirt.engine.core.common.businessentities.XENVmProviderProperties)

Aggregations

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