Package org.ametys.odf.validator
Class RepeaterWithEducationalPathValidator
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.cms.contenttype.validation.AbstractContentValidator
org.ametys.odf.validator.RepeaterWithEducationalPathValidator
- All Implemented Interfaces:
ContentValidator
,Configurable
,LogEnabled
,Serviceable
public class RepeaterWithEducationalPathValidator
extends AbstractContentValidator
implements Serviceable, Configurable
This global validation checks if the values of educational path attributs of a repeater entries are unique.
<repeaterPath>, <educationalPathDataName> and <errorI18nKey> configuration are expected.
<repeaterPath>, <educationalPathDataName> and <errorI18nKey> configuration are expected.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Configuration configuration) void
service
(ServiceManager manager) Validates a content.Validates a content being editedMethods inherited from class org.ametys.cms.contenttype.validation.AbstractContentValidator
getContentType, initialize, setContentType
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
RepeaterWithEducationalPathValidator
public RepeaterWithEducationalPathValidator()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
configure
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
validate
Description copied from interface:ContentValidator
Validates a content.- Specified by:
validate
in interfaceContentValidator
- Parameters:
content
- the content to validate- Returns:
- the validation result
-
validate
Description copied from interface:ContentValidator
Validates a content being edited- Specified by:
validate
in interfaceContentValidator
- Parameters:
content
- the content to validatevalues
- the values being setview
- the view- Returns:
- the validation result
-