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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(Configuration configuration) voidservice(ServiceManager manager) Validates a content.Validates a content being editedMethods inherited from class org.ametys.cms.contenttype.validation.AbstractContentValidator
getContentType, initialize, setContentTypeMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger 
- 
Constructor Details
- 
RepeaterWithEducationalPathValidator
public RepeaterWithEducationalPathValidator() 
 - 
 - 
Method Details
- 
service
- Specified by:
 servicein interfaceServiceable- Throws:
 ServiceException
 - 
configure
- Specified by:
 configurein interfaceConfigurable- Throws:
 ConfigurationException
 - 
validate
Description copied from interface:ContentValidatorValidates a content.- Specified by:
 validatein interfaceContentValidator- Parameters:
 content- the content to validate- Returns:
 - the validation result
 
 - 
validate
Description copied from interface:ContentValidatorValidates a content being edited- Specified by:
 validatein interfaceContentValidator- Parameters:
 content- the content to validatevalues- the values being setview- the view- Returns:
 - the validation result
 
 
 -