Package io.goobi.viewer.faces.validators
Class NicknameValidator
java.lang.Object
io.goobi.viewer.faces.validators.NicknameValidator
- All Implemented Interfaces:
Validator<String>,EventListener
Allowed characters and uniqueness validator for user nicknames (displayed names).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(FacesContext context, UIComponent component, String value) static booleanvalidateEmailAddress.
-
Constructor Details
-
NicknameValidator
public NicknameValidator()
-
-
Method Details
-
validate
public void validate(FacesContext context, UIComponent component, String value) throws ValidatorException - Specified by:
validatein interfaceValidator<String>- Throws:
ValidatorException
-
validate
validateEmailAddress.- Parameters:
name- nickname string to check against the allowed character pattern- Returns:
- true if the given nickname is empty or matches the allowed character pattern, false otherwise
-