Interface IUserValidator
-
public interface IUserValidatorValidator interface for checking the existence of users in the system.- Since:
- 8.5.0
- Author:
- Norman Lorenz
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static IUserValidatorgetInstance()Retrieves an instance of the IUserValidator using CDI.booleanuserExists(Long userId)Checks if a user with the specified ID exists in the system.
-
-
-
Method Detail
-
getInstance
static IUserValidator getInstance()
Retrieves an instance of the IUserValidator using CDI.- Returns:
- an instance of IUserValidator.
-
userExists
boolean userExists(Long userId)
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.
-
-