Package io.goobi.viewer.faces.validators
Class NicknameValidator
java.lang.Object
io.goobi.viewer.faces.validators.NicknameValidator
- All Implemented Interfaces:
EventListener
,javax.faces.validator.Validator<String>
Allowed characters and uniqueness validator for user nicknames (displayed names).
-
Field Summary
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
NicknameValidator
public NicknameValidator()
-
-
Method Details
-
validate
public void validate(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String value) throws javax.faces.validator.ValidatorException - Specified by:
validate
in interfacejavax.faces.validator.Validator<String>
- Throws:
javax.faces.validator.ValidatorException
-
validate
validateEmailAddress.
- Parameters:
name
- aString
object.- Returns:
- a boolean.
-