Class UserUIDMatchingStrategy
- java.lang.Object
-
- de.hybris.platform.commerceservices.strategies.impl.user.UserUIDMatchingStrategy
-
- All Implemented Interfaces:
UserPropertyMatchingStrategy
public class UserUIDMatchingStrategy extends java.lang.Object implements UserPropertyMatchingStrategy
Matches the user by the uid
-
-
Constructor Summary
Constructors Constructor Description UserUIDMatchingStrategy(UserService userService)
-
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 modelprotected UserServicegetUserService()
-
-
-
Constructor Detail
-
UserUIDMatchingStrategy
public UserUIDMatchingStrategy(UserService userService)
-
-
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:UserPropertyMatchingStrategyGets the user by the unique property and return as a specified class model- Specified by:
getUserByPropertyin interfaceUserPropertyMatchingStrategy- Type Parameters:
T- type of returned user model- Parameters:
propertyValue- 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
-
getUserService
protected UserService getUserService()
-
-