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 Type
    Method
    Description
    Retrieves an instance of the IUserValidator using CDI.
    boolean
    userExists(Long userId)
    Checks if a user with the specified ID exists in the system.
  • Method Details

    • 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.