Package model.validation
Class UniqueUsernameValidator
- java.lang.Object
-
- model.validation.UniqueUsernameValidator
-
- All Implemented Interfaces:
ConstraintValidator<UniqueUsername,String>
public class UniqueUsernameValidator extends Object implements ConstraintValidator<UniqueUsername,String>
-
-
Constructor Summary
Constructors Constructor Description UniqueUsernameValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(UniqueUsername userExists)
boolean
isValid(String username, ConstraintValidatorContext constraintValidatorContext)
-
-
-
Constructor Detail
-
UniqueUsernameValidator
public UniqueUsernameValidator()
-
-
Method Detail
-
initialize
public void initialize(UniqueUsername userExists)
- Specified by:
initialize
in interfaceConstraintValidator<UniqueUsername,String>
-
isValid
public boolean isValid(String username, ConstraintValidatorContext constraintValidatorContext)
- Specified by:
isValid
in interfaceConstraintValidator<UniqueUsername,String>
-
-