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