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