Interface UserPropertyMatchingStrategy

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <U extends UserModel>
      java.util.Optional<U>
      getUserByProperty​(java.lang.String property, java.lang.Class<U> clazz)
      Gets the user by the unique property and return as a specified class model
    • Method Detail

      • getUserByProperty

        <U extends UserModel> java.util.Optional<U> getUserByProperty​(java.lang.String property,
                                                                      java.lang.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