Class DefaultUserMatchingService
java.lang.Object
de.hybris.platform.commerceservices.user.impl.DefaultUserMatchingService
- All Implemented Interfaces:
UserMatchingService
Provides methods for retrieving the user or customer and verifying its existence.
The user is searched by matching one of his unique identifiers. This is accomplished using the list of matching strategies.
By default, the user is searched by matching the UID.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<UserPropertyMatchingStrategy><T extends UserModel>
TgetUserByProperty(String propertyValue, Class<T> clazz) Gets the user by the property and cast to UserModel subtypegetUserOptionalByProperty(String propertyValue, Class<T> clazz) booleanisUserExisting(String propertyValue) Verifies whether the user existvoidsetMatchingStrategies(List<UserPropertyMatchingStrategy> matchingStrategies) protected <T> TvalidateType(T value, Class type)
-
Constructor Details
-
DefaultUserMatchingService
public DefaultUserMatchingService()
-
-
Method Details
-
getUserByProperty
Description copied from interface:UserMatchingServiceGets the user by the property and cast to UserModel subtype- Specified by:
getUserByPropertyin interfaceUserMatchingService- Type Parameters:
T- UserModel subtype- Parameters:
propertyValue- the unique value of property used to identify the user.clazz- - the class of UserModel subtype- Returns:
- the found user
-
isUserExisting
Description copied from interface:UserMatchingServiceVerifies whether the user exist- Specified by:
isUserExistingin interfaceUserMatchingService- Parameters:
propertyValue- the property value used to identify the user- Returns:
trueif user exists
-
getUserOptionalByProperty
-
validateType
-
getMatchingStrategies
-
setMatchingStrategies
-