Interface UserMatchingService
-
- All Known Implementing Classes:
DefaultUserMatchingService
public interface UserMatchingServiceProvides methods for retrieving user or customer by specified property
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <U extends UserModel>
UgetUserByProperty(java.lang.String propertyValue, java.lang.Class<U> clazz)Gets the user by the property and cast to UserModel subtypebooleanisUserExisting(java.lang.String propertyValue)Verifies whether the user exist
-
-
-
Method Detail
-
getUserByProperty
<U extends UserModel> U getUserByProperty(java.lang.String propertyValue, java.lang.Class<U> clazz)
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
boolean isUserExisting(java.lang.String propertyValue)
Verifies whether the user exist- Parameters:
propertyValue- the property value used to identify the user- Returns:
trueif user exists
-
-