Class NormeValidator
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.cms.contenttype.validation.AbstractContentValidator
-
- org.ametys.plugins.odfpilotage.validator.AbstractRepeaterWithUniqueContentValidator
-
- org.ametys.plugins.odfpilotage.validator.NormeValidator
-
- All Implemented Interfaces:
ContentValidator
,LogEnabled
public class NormeValidator extends AbstractRepeaterWithUniqueContentValidator
Global validator for Norme content. Check that every instance of the repeater groupEffectives have a different natureEnseignement.
-
-
Constructor Summary
Constructors Constructor Description NormeValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getContentDataName()
Get the content data name.protected String
getErrorKey()
Get the error I18N key (parameterizable with "contentTitle" and "dataValueTitle").protected String
getRepeaterName()
Get the repeater name.-
Methods inherited from class org.ametys.plugins.odfpilotage.validator.AbstractRepeaterWithUniqueContentValidator
validate, validate
-
Methods inherited from class org.ametys.cms.contenttype.validation.AbstractContentValidator
getContentType, setContentType
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Constructor Detail
-
NormeValidator
public NormeValidator()
-
-
Method Detail
-
getRepeaterName
protected String getRepeaterName()
Description copied from class:AbstractRepeaterWithUniqueContentValidator
Get the repeater name.- Specified by:
getRepeaterName
in classAbstractRepeaterWithUniqueContentValidator
- Returns:
- The repeater name.
-
getContentDataName
protected String getContentDataName()
Description copied from class:AbstractRepeaterWithUniqueContentValidator
Get the content data name.- Specified by:
getContentDataName
in classAbstractRepeaterWithUniqueContentValidator
- Returns:
- The content data name.
-
getErrorKey
protected String getErrorKey()
Description copied from class:AbstractRepeaterWithUniqueContentValidator
Get the error I18N key (parameterizable with "contentTitle" and "dataValueTitle").- Specified by:
getErrorKey
in classAbstractRepeaterWithUniqueContentValidator
- Returns:
- The error 18N key.
-
-