Class EmailNotificationChannel
java.lang.Object
io.jmix.notifications.channel.impl.EmailNotificationChannel
- All Implemented Interfaces:
- NotificationChannel
Notification channel that sends notification by email.
 
Uses 'Email' addon to send notifications. This channel is available only if 'Email' dependency is included into project.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final Emailerprotected final List<UserEmailResolver>static final Stringprotected final UserRepository
- 
Constructor SummaryConstructorsConstructorDescriptionEmailNotificationChannel(UserRepository userRepository, Emailer emailer, List<UserEmailResolver> emailResolvers) 
- 
Method SummaryModifier and TypeMethodDescriptiongetName()Provides unique name of channel.resolveEmail(org.springframework.security.core.userdetails.UserDetails user) booleansend(Notification notification) Sends provided notification via this notification channel.protected booleansendEmail(String email, Notification notification) 
- 
Field Details- 
NAME- See Also:
 
- 
userRepository
- 
emailer
- 
emailResolvers
 
- 
- 
Constructor Details- 
EmailNotificationChannelpublic EmailNotificationChannel(UserRepository userRepository, Emailer emailer, List<UserEmailResolver> emailResolvers) 
 
- 
- 
Method Details- 
getNameDescription copied from interface:NotificationChannelProvides unique name of channel.- Specified by:
- getNamein interface- NotificationChannel
- Returns:
- channel name
 
- 
sendDescription copied from interface:NotificationChannelSends provided notification via this notification channel.- Specified by:
- sendin interface- NotificationChannel
- Parameters:
- notification- notification
- Returns:
- true if notification was successfully sent, false otherwise
 
- 
resolveEmail
- 
sendEmail
 
-