Interface UserMatchingService

  • All Known Implementing Classes:
    DefaultUserMatchingService

    public interface UserMatchingService
    Provides methods for retrieving user or customer by specified property
    • 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:
        true if user exists