Class AlwaysNegativeUserPropertyMatchingStrategy

    • Method Summary

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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AlwaysNegativeUserPropertyMatchingStrategy

        public AlwaysNegativeUserPropertyMatchingStrategy()
    • Method Detail

      • getUserByProperty

        public <T extends UserModel> java.util.Optional<T> getUserByProperty​(java.lang.String propertyValue,
                                                                             java.lang.Class<T> clazz)
        Description copied from interface: UserPropertyMatchingStrategy
        Gets the user by the unique property and return as a specified class model
        Specified by:
        getUserByProperty in interface UserPropertyMatchingStrategy
        Type Parameters:
        T - type of returned user model
        Parameters:
        propertyValue - 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