Search in sources :

Example 1 with VmwareVmProviderProperties

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

the class VmwarePropertiesModel method init.

public void init(Provider<VmwareVmProviderProperties> provider) {
    VmwareVmProviderProperties properties = provider.getAdditionalProperties();
    getvCenter().setEntity(properties.getvCenter());
    getEsx().setEntity(properties.getEsx());
    Pair<String, String> dcAndCluster = ImportVmsModel.splitToDcAndCluster(properties.getDataCenter());
    getVmwareDatacenter().setEntity(dcAndCluster.getFirst());
    getVmwareCluster().setEntity(dcAndCluster.getSecond());
    getVerifySSL().setEntity(properties.isVerifySSL());
    setLastProxyHostId(properties.getProxyHostId());
    setLastStoragePoolId(properties.getStoragePoolId());
}
Also used : VmwareVmProviderProperties(org.ovirt.engine.core.common.businessentities.VmwareVmProviderProperties)

Example 2 with VmwareVmProviderProperties

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

the class ImportVmsModel method vmwareProviderChanged.

private void vmwareProviderChanged() {
    Provider<VmwareVmProviderProperties> provider = getVmwareProviders().getSelectedItem();
    if (provider == null) {
        provider = new Provider<>();
        provider.setAdditionalProperties(new VmwareVmProviderProperties());
    }
    getUsername().setEntity(provider.getUsername());
    getPassword().setEntity(provider.getPassword());
    VmwareVmProviderProperties properties = provider.getAdditionalProperties();
    getvCenter().setEntity(properties.getvCenter());
    getEsx().setEntity(properties.getEsx());
    Pair<String, String> dcAndCluster = splitToDcAndCluster(properties.getDataCenter());
    getVmwareDatacenter().setEntity(dcAndCluster.getFirst());
    getVmwareCluster().setEntity(dcAndCluster.getSecond());
    getVerify().setEntity(properties.isVerifySSL());
    setupProxyHost(getProxyHosts(), properties.getProxyHostId());
}
Also used : VmwareVmProviderProperties(org.ovirt.engine.core.common.businessentities.VmwareVmProviderProperties)

Aggregations

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