Package org.ametys.cms.contenttype
Interface ContentValidator
-
- All Known Implementing Classes:
AbstractContentValidator
,AbstractIntervalValidator
,AbstractNumberIntervalValidator
,AbstractRepeaterWithUniqueContentValidator
,CourseListChoiceValidator
,DateIntervalValidator
,DateTimeIntervalValidator
,DegreesInCategoryConsistencyValidator
,DoubleIntervalValidator
,LongIntervalValidator
,NormeValidator
,PotentielEnseignantValidator
,ProgramItemHierarchyValidator
public interface ContentValidator
Global validator forContent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContentType
getContentType()
Get the content typevoid
setContentType(ContentType cTypeId)
Set the content typevoid
validate(Content content, Map<String,Object> values, View view, Errors errors)
Validates a content being editedvoid
validate(Content content, Errors errors)
Validates a content.
-
-
-
Method Detail
-
setContentType
void setContentType(ContentType cTypeId)
Set the content type- Parameters:
cTypeId
- The content type
-
getContentType
ContentType getContentType()
Get the content type- Returns:
- ContentType
-
validate
void validate(Content content, Errors errors)
Validates a content.- Parameters:
content
- the content to validateerrors
- the structure to populate if the validation failed.
-
-