com.netgrif.application.engine.validation.models.I18nFieldValidation.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of application-engine Show documentation
Show all versions of application-engine Show documentation
System provides workflow management functions including user, role and data management.
package com.netgrif.application.engine.validation.models
import com.netgrif.application.engine.validation.domain.ValidationDataInput
class I18nFieldValidation extends AbstractFieldValidation {
// TRANSLATION_REQUIRED = 'translationRequired',
// TRANSLATION_ONLY = 'translationOnly',
// REQUIRED_I18N = 'requiredI18n'
void wrongValue(ValidationDataInput validationData) {
if (!(validationData.getData().getValue() == true)) {
throw new IllegalArgumentException(validationData.getValidationMessage().getTranslation(validationData.getLocale()))
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy