Class UniqueUsernameValidator

java.lang.Object
de.digitalcollections.cudami.admin.business.impl.validator.UniqueUsernameValidator
All Implemented Interfaces:
org.springframework.validation.Validator

public class UniqueUsernameValidator
extends java.lang.Object
implements org.springframework.validation.Validator
Validates that username does not exist, yet.
  • Constructor Summary

    Constructors
    Constructor Description
    UniqueUsernameValidator​(UserService userService)  
  • Method Summary

    Modifier and Type Method Description
    boolean supports​(java.lang.Class<?> clazz)  
    void validate​(java.lang.Object target, org.springframework.validation.Errors errors)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UniqueUsernameValidator

      public UniqueUsernameValidator​(UserService userService)
  • Method Details

    • supports

      public boolean supports​(java.lang.Class<?> clazz)
      Specified by:
      supports in interface org.springframework.validation.Validator
    • validate

      public void validate​(java.lang.Object target, org.springframework.validation.Errors errors)
      Specified by:
      validate in interface org.springframework.validation.Validator