use of org.ovirt.engine.ui.uicommonweb.validation.LinuxMountPointValidation in project ovirt-engine by oVirt.
the class NfsStorageModel method validate.
@Override
public boolean validate() {
getPath().validateEntity(new IValidation[] { new NotEmptyValidation(), new LinuxMountPointValidation(), new NonUtfValidation(), new NoSpacesValidation() });
if (getRetransmissions().getIsValid()) {
getRetransmissions().validateEntity(new IValidation[] { new IntegerValidation(0, RETRANS_MAX) });
}
if (getTimeout().getIsValid()) {
getTimeout().validateEntity(new IValidation[] { new IntegerValidation(1, TIMEOUT_MAX) });
}
getMountOptions().validateEntity(new IValidation[] { new NonUtfValidation() });
return getPath().getIsValid() && getRetransmissions().getIsValid() && getTimeout().getIsValid() && getMountOptions().getIsValid();
}
Aggregations