Interface UserPropertyMatchingStrategy

All Known Implementing Classes:
AlwaysNegativeUserPropertyMatchingStrategy, CustomerIdMatchingStrategy, UserUIDMatchingStrategy

public interface UserPropertyMatchingStrategy
Provides methods for retrieving users by specified property
  • Method Summary

    Modifier and Type
    Method
    Description
    <U extends UserModel>
    Optional<U>
    getUserByProperty(String property, Class<U> clazz)
    Gets the user by the unique property and return as a specified class model
  • Method Details

    • getUserByProperty

      <U extends UserModel> Optional<U> getUserByProperty(String property, Class<U> clazz)
      Gets the user by the unique property and return as a specified class model
      Type Parameters:
      U - type of returned user model
      Parameters:
      property - a unique property value for identify a user
      clazz - class of returned user model
      Returns:
      optional with the found user or empty if not found or not supported class model