Interface UserPropertyMatchingStrategy
- All Known Implementing Classes:
AlwaysNegativeUserPropertyMatchingStrategy,CustomerIdMatchingStrategy,UserUIDMatchingStrategy
public interface UserPropertyMatchingStrategy
Provides methods for retrieving users by specified property
-
Method Summary
Modifier and TypeMethodDescriptiongetUserByProperty(String property, Class<U> clazz) Gets the user by the unique property and return as a specified class model
-
Method Details
-
getUserByProperty
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
-