Class DefaultSendAccountInvitationService
java.lang.Object
com.broadleafcommerce.customer.service.DefaultSendAccountInvitationService
- All Implemented Interfaces:
- SendAccountInvitationService
public class DefaultSendAccountInvitationService
extends Object
implements SendAccountInvitationService
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultSendAccountInvitationService(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 SummaryModifier and TypeMethodDescriptionprotected AccountInviteAcceptanceProducerprotected AccountInviteProducerprotected com.broadleafcommerce.data.tracking.core.tenant.service.CommonApplicationService<com.broadleafcommerce.data.tracking.core.tenant.domain.Application>protected AccountInviteNotificationgetNotification(AccountInvite accountInvite, Map<String, Object> additionalArgs, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected AccountInviteAcceptanceNotificationgetNotification(Account account, Customer customer, Map<String, Object> additionalArgs, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected com.broadleafcommerce.common.extension.TypeFactoryvoidsendAccountAcceptance(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 enabledvoidsendAccountAcceptance(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 enabledvoidsendAccountInvitation(AccountInvite accountInvite, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Send the account invitation to the targeted user based on the information in theaccountInvite.voidsendAccountInvitation(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.voidsetApplicationService(com.broadleafcommerce.data.tracking.core.tenant.service.CommonApplicationService<com.broadleafcommerce.data.tracking.core.tenant.domain.Application> applicationService) 
- 
Constructor Details- 
DefaultSendAccountInvitationServicepublic 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 Details- 
sendAccountInvitationpublic void sendAccountInvitation(AccountInvite accountInvite, Map<String, Object> additionalArgs, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:SendAccountInvitationServiceSend the account invitation to the targeted user based on the information in theaccountInvite.- Specified by:
- sendAccountInvitationin interface- SendAccountInvitationService
- Parameters:
- accountInvite- The account invite to send
- additionalArgs- Any additional arguments to be used in the notification
- contextInfo- The current context
 
- 
sendAccountInvitationpublic void sendAccountInvitation(AccountInvite accountInvite, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:SendAccountInvitationServiceSend the account invitation to the targeted user based on the information in theaccountInvite.- Specified by:
- sendAccountInvitationin interface- SendAccountInvitationService
- Parameters:
- accountInvite- The account invite to send
- contextInfo- The current context
 
- 
sendAccountAcceptancepublic void sendAccountAcceptance(Customer customer, Account account, Map<String, Object> additionalArgs, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:SendAccountInvitationServiceSend the account acceptance notification to the targeted user when auto-acceptance is enabled- Specified by:
- sendAccountAcceptancein interface- SendAccountInvitationService
- Parameters:
- customer- The targeted customer
- account- The related account
- additionalArgs- Any additional arguments to be used in the notification
- contextInfo- The current context
 
- 
sendAccountAcceptancepublic void sendAccountAcceptance(Customer customer, Account account, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:SendAccountInvitationServiceSend the account acceptance notification to the targeted user when auto-acceptance is enabled- Specified by:
- sendAccountAcceptancein interface- SendAccountInvitationService
- Parameters:
- customer- The targeted customer
- account- The targeted account
- contextInfo- The current context
 
- 
getNotificationprotected AccountInviteNotification getNotification(AccountInvite accountInvite, Map<String, Object> additionalArgs, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) 
- 
getNotification
- 
setApplicationService@Autowired(required=false) public void setApplicationService(com.broadleafcommerce.data.tracking.core.tenant.service.CommonApplicationService<com.broadleafcommerce.data.tracking.core.tenant.domain.Application> applicationService) 
- 
getApplicationServiceprotected com.broadleafcommerce.data.tracking.core.tenant.service.CommonApplicationService<com.broadleafcommerce.data.tracking.core.tenant.domain.Application> getApplicationService()
- 
getTypeFactoryprotected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
- 
getAccountInviteProducer
- 
getAccountInviteAcceptanceProducer
 
-