Class NicknameValidator

java.lang.Object
io.goobi.viewer.faces.validators.NicknameValidator
All Implemented Interfaces:
EventListener, javax.faces.validator.Validator<String>

public class NicknameValidator extends Object implements 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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    validateEmailAddress.
    void
    validate(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String value)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface javax.faces.validator.Validator<String>
      Throws:
      javax.faces.validator.ValidatorException
    • validate

      public static boolean validate(String name)

      validateEmailAddress.

      Parameters:
      name - a String object.
      Returns:
      a boolean.