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
Validator for
CourseList
to check if the min value is correctly fill when choice type is choosen.-
Constructor Summary
-
Method Summary
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 Details
-
CourseListChoiceValidator
public CourseListChoiceValidator()
-
-
Method Details
-
validate
Description copied from interface:ContentValidator
Validates a content.- Parameters:
content
- the content to validateerrors
- the structure to populate if the validation failed.
-
validate
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.
-