Package org.ametys.odf.validator
Class CourseListChoiceValidator
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.cms.contenttype.validation.AbstractContentValidator
-
- org.ametys.odf.validator.CourseListChoiceValidator
-
- All Implemented Interfaces:
ContentValidator
,LogEnabled
public class CourseListChoiceValidator extends AbstractContentValidator
Validator forCourseList
to check if the min value is correctly fill when choice type is choosen.
-
-
Constructor Summary
Constructors Constructor Description CourseListChoiceValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validate(Content content, Map<String,Object> values, View view, Errors errors)
Validates a content being editedvoid
validate(Content content, Errors errors)
Validates a content.-
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
-
CourseListChoiceValidator
public CourseListChoiceValidator()
-
-
Method Detail
-
validate
public void validate(Content content, Errors errors)
Description copied from interface:ContentValidator
Validates a content.- Parameters:
content
- the content to validateerrors
- the structure to populate if the validation failed.
-
validate
public void validate(Content content, Map<String,Object> values, View view, Errors errors)
Description copied from interface:ContentValidator
Validates a content being edited- Parameters:
content
- the content to validatevalues
- the values being setview
- the viewerrors
- the structure to populate if the validation failed.
-
-