use of org.ovirt.engine.ui.uicommonweb.validation.NameAndOptionalDomainValidation in project ovirt-engine by oVirt.
the class ImportVmsModel method validateVmwareConfiguration.
private boolean validateVmwareConfiguration() {
getvCenter().validateEntity(new IValidation[] { new NotEmptyValidation(), new LengthValidation(255), new HostAddressValidation() });
getEsx().validateEntity(new IValidation[] { new NotEmptyValidation(), new LengthValidation(255), new HostAddressValidation() });
getVmwareDatacenter().validateEntity(new IValidation[] { new NotEmptyValidation() });
getUsername().validateEntity(new IValidation[] { new NotEmptyValidation(), new NameAndOptionalDomainValidation() });
getPassword().validateEntity(new IValidation[] { new NotEmptyValidation() });
return getvCenter().getIsValid() && getEsx().getIsValid() && getVmwareDatacenter().getIsValid() && getUsername().getIsValid() && getPassword().getIsValid();
}
Aggregations