Interface IUserValidator
public interface IUserValidator
Validator interface for checking the existence of users in the system.
- Since:
- 8.5.0
- Author:
- Norman Lorenz
-
Method Summary
Modifier and TypeMethodDescriptionstatic IUserValidatorRetrieves an instance of the IUserValidator using CDI.booleanuserExists(Long userId) Checks if a user with the specified ID exists in the system.
-
Method Details
-
getInstance
Retrieves an instance of the IUserValidator using CDI.- Returns:
- an instance of IUserValidator.
-
userExists
Checks if a user with the specified ID exists in the system.- Parameters:
userId- the ID of the user to check for existence.- Returns:
- true if a user with the specified ID exists, false otherwise.
-