Interface UserMatchingService

All Known Implementing Classes:
DefaultUserMatchingService

public interface UserMatchingService
Provides methods for retrieving user or customer by specified property
  • Method Summary

    Modifier and Type
    Method
    Description
    <U extends UserModel>
    U
    getUserByProperty(String propertyValue, Class<U> clazz)
    Gets the user by the property and cast to UserModel subtype
    boolean
    isUserExisting(String propertyValue)
    Verifies whether the user exist
  • Method Details

    • getUserByProperty

      <U extends UserModel> U getUserByProperty(String propertyValue, Class<U> clazz)
      Gets the user by the property and cast to UserModel subtype
      Type Parameters:
      U - UserModel subtype
      Parameters:
      propertyValue - the unique value of property used to identify the user.
      clazz - - the class of UserModel subtype
      Returns:
      the found user
      Throws:
      UnknownIdentifierException - if the user not found,
      ClassMismatchException - if clazz is not supported by strategy
    • isUserExisting

      boolean isUserExisting(String propertyValue)
      Verifies whether the user exist
      Parameters:
      propertyValue - the property value used to identify the user
      Returns:
      true if user exists