Package io.goobi.viewer.faces.validators
Class CMSTitleValidator
java.lang.Object
io.goobi.viewer.faces.validators.CMSTitleValidator
- All Implemented Interfaces:
Validator<String>,EventListener
JSF validator that checks CMS page titles for uniqueness and validity constraints.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(FacesContext context, UIComponent component, String value) protected static booleanvalidate.
-
Constructor Details
-
CMSTitleValidator
public CMSTitleValidator()
-
-
Method Details
-
validate
public void validate(FacesContext context, UIComponent component, String value) throws ValidatorException - Specified by:
validatein interfaceValidator<String>- Throws:
ValidatorException
-
validate
validate.- Parameters:
s- CMS page title string to check for non-blank content- Returns:
- true if the given string is not blank and thus valid as a CMS page title, false otherwise
-