Class AlwaysNegativeUserPropertyMatchingStrategy
java.lang.Object
de.hybris.platform.commerceservices.strategies.impl.user.AlwaysNegativeUserPropertyMatchingStrategy
- All Implemented Interfaces:
UserPropertyMatchingStrategy
public class AlwaysNegativeUserPropertyMatchingStrategy
extends Object
implements UserPropertyMatchingStrategy
External implementation strategy for
UserPropertyMatchingStrategy
that returns empty optional when searching for a user by a given property.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUserByProperty(String propertyValue, Class<T> clazz) Gets the user by the unique property and return as a specified class model
-
Constructor Details
-
AlwaysNegativeUserPropertyMatchingStrategy
public AlwaysNegativeUserPropertyMatchingStrategy()
-
-
Method Details
-
getUserByProperty
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
-