Interface UserResolver

All Known Implementing Classes:
DefaultUserResolver

public interface UserResolver
Service responsible for resolving users of types Customer, AdminUser, and AccountMember.
Author:
Susana Cruz (susanaccruz)
  • Method Details

    • fetchAdminUser

      Optional<AdminUser> fetchAdminUser(String adminUserId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Read an admin user by the supplied ID
      Parameters:
      adminUserId - The admin user ID
      contextInfo - The context
      Returns:
      An account Mono
    • fetchCustomers

      Optional<List<Customer>> fetchCustomers(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Read all customers
      Parameters:
      contextInfo - The context
      Returns:
      The customer, if found
    • fetchCustomer

      Optional<Customer> fetchCustomer(String customerId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Read a customer by ID
      Parameters:
      customerId - The customer ID
      contextInfo - The context
      Returns:
      The customer, if found
    • fetchAccountMembersByIds

      List<AccountMember> fetchAccountMembersByIds(String accountId, List<String> filterIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Read account members by accountId
      Parameters:
      accountId - The account ID
      filterIds - The member IDs to filter by
      contextInfo - The context
      Returns:
      The list of account members, if found
    • fetchAccountMembersByEmails

      List<AccountMember> fetchAccountMembersByEmails(String accountId, List<String> filterEmails, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Read account members by email
      Parameters:
      accountId - The account ID
      filterEmails - The emails to filter by
      contextInfo - The context
      Returns:
      The list of account members, if found
    • fetchAccountMember

      Optional<AccountMember> fetchAccountMember(String accountId, String accountMemberId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Read an account member by ID
      Parameters:
      accountId - The account ID
      accountMemberId - The account member ID
      contextInfo - The context
      Returns:
      The account member, if found