Interface UserPropertyMatchingStrategy
-
- All Known Implementing Classes:
CustomerIdMatchingStrategy
,UserUIDMatchingStrategy
public interface UserPropertyMatchingStrategy
Provides methods for retrieving users by specified property
-
-
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 userclazz
- class of returned user model- Returns:
- optional with the found user or empty if not found or not supported class model
-
-