Search in sources :

Example 1 with NoSpacesValidation

use of org.ovirt.engine.ui.uicommonweb.validation.NoSpacesValidation 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();
}
Also used : LinuxMountPointValidation(org.ovirt.engine.ui.uicommonweb.validation.LinuxMountPointValidation) NoSpacesValidation(org.ovirt.engine.ui.uicommonweb.validation.NoSpacesValidation) NonUtfValidation(org.ovirt.engine.ui.uicommonweb.validation.NonUtfValidation) NotEmptyValidation(org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation) IntegerValidation(org.ovirt.engine.ui.uicommonweb.validation.IntegerValidation)

Aggregations

IntegerValidation (org.ovirt.engine.ui.uicommonweb.validation.IntegerValidation)1 LinuxMountPointValidation (org.ovirt.engine.ui.uicommonweb.validation.LinuxMountPointValidation)1 NoSpacesValidation (org.ovirt.engine.ui.uicommonweb.validation.NoSpacesValidation)1 NonUtfValidation (org.ovirt.engine.ui.uicommonweb.validation.NonUtfValidation)1 NotEmptyValidation (org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation)1