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 for
Content
-
Method Summary
Modifier and TypeMethodDescriptionGet the content typevoid
setContentType
(ContentType cTypeId) Set the content typevoid
Validates a content being editedvoid
Validates a content.
-
Method Details
-
setContentType
Set the content type- Parameters:
cTypeId
- The content type
-
getContentType
Get the content type- Returns:
- ContentType
-
validate
Validates a content.- Parameters:
content
- the content to validateerrors
- the structure to populate if the validation failed.
-
validate
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.
-