Interface UserMatchingService
- All Known Implementing Classes:
DefaultUserMatchingService
public interface UserMatchingService
Provides methods for retrieving user or customer by specified property
-
Method Summary
Modifier and TypeMethodDescription<U extends UserModel>
UgetUserByProperty(String propertyValue, Class<U> clazz) Gets the user by the property and cast to UserModel subtypebooleanisUserExisting(String propertyValue) Verifies whether the user exist
-
Method Details
-
getUserByProperty
Gets the user by the property and cast to UserModel subtype- Type Parameters:
U- UserModel subtype- Parameters:
propertyValue- the unique value of property used to identify the user.clazz- - the class of UserModel subtype- Returns:
- the found user
- Throws:
UnknownIdentifierException- if the user not found,ClassMismatchException- if clazz is not supported by strategy
-
isUserExisting
Verifies whether the user exist- Parameters:
propertyValue- the property value used to identify the user- Returns:
trueif user exists
-