Class UniqueUsernameValidator
- java.lang.Object
-
- de.digitalcollections.cudami.admin.business.impl.validator.UniqueUsernameValidator
-
- All Implemented Interfaces:
org.springframework.validation.Validator
public class UniqueUsernameValidator extends Object implements org.springframework.validation.Validator
Validates that username does not exist, yet.
-
-
Constructor Summary
Constructors Constructor Description UniqueUsernameValidator(org.springframework.context.MessageSource messageSource, UserService<de.digitalcollections.model.security.User> userService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
supports(Class<?> clazz)
void
validate(Object target, org.springframework.validation.Errors errors)
-
-
-
Constructor Detail
-
UniqueUsernameValidator
public UniqueUsernameValidator(org.springframework.context.MessageSource messageSource, UserService<de.digitalcollections.model.security.User> userService)
-
-
Method Detail
-
supports
public boolean supports(Class<?> clazz)
- Specified by:
supports
in interfaceorg.springframework.validation.Validator
-
validate
public void validate(Object target, org.springframework.validation.Errors errors)
- Specified by:
validate
in interfaceorg.springframework.validation.Validator
-
-