Class CustomerIdMatchingStrategy
- java.lang.Object
-
- de.hybris.platform.commerceservices.strategies.impl.user.CustomerIdMatchingStrategy
-
- All Implemented Interfaces:
UserPropertyMatchingStrategy
public class CustomerIdMatchingStrategy extends java.lang.Object implements UserPropertyMatchingStrategy
Matches the customer by the customerId
-
-
Constructor Summary
Constructors Constructor Description CustomerIdMatchingStrategy(CustomerService customerService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CustomerServicegetCustomerService()<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 booleanisSupported(java.lang.String propertyValue, java.lang.Class<?> clazz)
-
-
-
Constructor Detail
-
CustomerIdMatchingStrategy
public CustomerIdMatchingStrategy(CustomerService customerService)
-
-
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
-
isSupported
protected boolean isSupported(java.lang.String propertyValue, java.lang.Class<?> clazz)
-
getCustomerService
protected CustomerService getCustomerService()
-
-