use of org.ovirt.engine.ui.uicommonweb.validation.AsciiOrNoneValidation in project ovirt-engine by oVirt.
the class ProfileBaseModel method validate.
public boolean validate() {
getName().validateEntity(new IValidation[] { new NotEmptyValidation(), new SpecialAsciiI18NOrNoneValidation() });
getDescription().validateEntity(new IValidation[] { new AsciiOrNoneValidation() });
return getName().getIsValid();
}
use of org.ovirt.engine.ui.uicommonweb.validation.AsciiOrNoneValidation in project ovirt-engine by oVirt.
the class SharedMacPoolModel method validate.
@Override
public boolean validate() {
super.validate();
getName().validateEntity(new IValidation[] { new NotEmptyValidation() });
getDescription().validateEntity(new IValidation[] { new AsciiOrNoneValidation() });
setIsValid(getIsValid() && getName().getIsValid());
return getIsValid();
}
use of org.ovirt.engine.ui.uicommonweb.validation.AsciiOrNoneValidation in project ovirt-engine by oVirt.
the class QosModel method validate.
public boolean validate() {
getName().validateEntity(new IValidation[] { new NotEmptyValidation(), new AsciiNameValidation() });
getDescription().validateEntity(new IValidation[] { new AsciiOrNoneValidation() });
getQosParametersModel().validate();
setIsValid(getName().getIsValid() && getDescription().getIsValid() && getQosParametersModel().getIsValid());
return getIsValid();
}
use of org.ovirt.engine.ui.uicommonweb.validation.AsciiOrNoneValidation in project ovirt-engine by oVirt.
the class NewClusterPolicyModel method validate.
private boolean validate() {
getName().validateEntity(new IValidation[] { new NotEmptyValidation(), new LengthValidation(50), new AsciiNameValidation() });
getDescription().validateEntity(new IValidation[] { new LengthValidation(400), new AsciiOrNoneValidation() });
return getName().getIsValid() && getDescription().getIsValid() && getCustomPropertySheet().validate();
}
use of org.ovirt.engine.ui.uicommonweb.validation.AsciiOrNoneValidation in project ovirt-engine by oVirt.
the class AffinityGroupModel method validate.
protected boolean validate() {
getName().validateEntity(new IValidation[] { new NotEmptyValidation(), new LengthValidation(255), new I18NNameValidation() });
getDescription().validateEntity(new IValidation[] { new AsciiOrNoneValidation() });
return getName().getIsValid() && getDescription().getIsValid();
}
Aggregations