Class DefaultSendAccountInvitationService
- java.lang.Object
-
- com.broadleafcommerce.customer.service.DefaultSendAccountInvitationService
-
- All Implemented Interfaces:
SendAccountInvitationService
public class DefaultSendAccountInvitationService extends Object implements SendAccountInvitationService
-
-
Constructor Summary
Constructors Constructor Description DefaultSendAccountInvitationService(com.broadleafcommerce.data.tracking.core.tenant.service.CommonApplicationService<com.broadleafcommerce.data.tracking.core.tenant.domain.Application> applicationService, Optional<AccountInviteProducer> accountInviteProducer, Optional<AccountInviteAcceptanceProducer> accountInviteAcceptanceProducer, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AccountInviteAcceptanceProducer
getAccountInviteAcceptanceProducer()
protected AccountInviteProducer
getAccountInviteProducer()
protected com.broadleafcommerce.data.tracking.core.tenant.service.CommonApplicationService<com.broadleafcommerce.data.tracking.core.tenant.domain.Application>
getApplicationService()
protected AccountInviteNotification
getNotification(AccountInvite accountInvite, Map<String,Object> additionalArgs, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
protected AccountInviteAcceptanceNotification
getNotification(Account account, Customer customer, Map<String,Object> additionalArgs, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
protected com.broadleafcommerce.common.extension.TypeFactory
getTypeFactory()
void
sendAccountAcceptance(Customer customer, Account account, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Send the account acceptance notification to the targeted user when auto-acceptance is enabledvoid
sendAccountAcceptance(Customer customer, Account account, Map<String,Object> additionalArgs, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Send the account acceptance notification to the targeted user when auto-acceptance is enabledvoid
sendAccountInvitation(AccountInvite accountInvite, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Send the account invitation to the targeted user based on the information in theaccountInvite
.void
sendAccountInvitation(AccountInvite accountInvite, Map<String,Object> additionalArgs, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Send the account invitation to the targeted user based on the information in theaccountInvite
.
-
-
-
Constructor Detail
-
DefaultSendAccountInvitationService
public DefaultSendAccountInvitationService(com.broadleafcommerce.data.tracking.core.tenant.service.CommonApplicationService<com.broadleafcommerce.data.tracking.core.tenant.domain.Application> applicationService, Optional<AccountInviteProducer> accountInviteProducer, Optional<AccountInviteAcceptanceProducer> accountInviteAcceptanceProducer, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Detail
-
sendAccountInvitation
public void sendAccountInvitation(AccountInvite accountInvite, Map<String,Object> additionalArgs, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Description copied from interface:SendAccountInvitationService
Send the account invitation to the targeted user based on the information in theaccountInvite
.- Specified by:
sendAccountInvitation
in interfaceSendAccountInvitationService
- Parameters:
accountInvite
- The account invite to sendadditionalArgs
- Any additional arguments to be used in the notificationcontextInfo
- The current context
-
sendAccountInvitation
public void sendAccountInvitation(AccountInvite accountInvite, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Description copied from interface:SendAccountInvitationService
Send the account invitation to the targeted user based on the information in theaccountInvite
.- Specified by:
sendAccountInvitation
in interfaceSendAccountInvitationService
- Parameters:
accountInvite
- The account invite to sendcontextInfo
- The current context
-
sendAccountAcceptance
public void sendAccountAcceptance(Customer customer, Account account, Map<String,Object> additionalArgs, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Description copied from interface:SendAccountInvitationService
Send the account acceptance notification to the targeted user when auto-acceptance is enabled- Specified by:
sendAccountAcceptance
in interfaceSendAccountInvitationService
- Parameters:
customer
- The targeted customeraccount
- The related accountadditionalArgs
- Any additional arguments to be used in the notificationcontextInfo
- The current context
-
sendAccountAcceptance
public void sendAccountAcceptance(Customer customer, Account account, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Description copied from interface:SendAccountInvitationService
Send the account acceptance notification to the targeted user when auto-acceptance is enabled- Specified by:
sendAccountAcceptance
in interfaceSendAccountInvitationService
- Parameters:
customer
- The targeted customeraccount
- The targeted accountcontextInfo
- The current context
-
getNotification
protected AccountInviteNotification getNotification(AccountInvite accountInvite, Map<String,Object> additionalArgs, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
getNotification
protected AccountInviteAcceptanceNotification getNotification(Account account, Customer customer, Map<String,Object> additionalArgs, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
getApplicationService
protected com.broadleafcommerce.data.tracking.core.tenant.service.CommonApplicationService<com.broadleafcommerce.data.tracking.core.tenant.domain.Application> getApplicationService()
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-
getAccountInviteProducer
protected AccountInviteProducer getAccountInviteProducer()
-
getAccountInviteAcceptanceProducer
protected AccountInviteAcceptanceProducer getAccountInviteAcceptanceProducer()
-
-