Interface UserResolver
- All Known Implementing Classes:
DefaultUserResolver
public interface UserResolver
- Author:
- Susana Cruz (susanaccruz)
-
Method Summary
Modifier and TypeMethodDescriptionfetchAccountMember
(String accountId, String accountMemberId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read an account member by IDfetchAccountMembersByEmails
(String accountId, List<String> filterEmails, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read account members by emailfetchAccountMembersByIds
(String accountId, List<String> filterIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read account members by accountIdfetchAdminUser
(String adminUserId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read an admin user by the supplied IDfetchCustomer
(String customerId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read a customer by IDfetchCustomers
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read all customers
-
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 IDcontextInfo
- 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 IDcontextInfo
- 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 IDfilterIds
- The member IDs to filter bycontextInfo
- 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 IDfilterEmails
- The emails to filter bycontextInfo
- 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 IDaccountMemberId
- The account member IDcontextInfo
- The context- Returns:
- The account member, if found
-