Package io.jmix.bpm.notification.impl
Class BpmNotificationServiceImpl
java.lang.Object
io.jmix.bpm.notification.impl.BpmNotificationServiceImpl
- All Implemented Interfaces:
BpmNotificationService
Default
BpmNotificationService implementation, delegating delivery to the Notifications
add-on's NotificationManager.
Declared as a conditional bean by BpmNotificationsAutoConfiguration.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsend(Collection<org.springframework.security.core.userdetails.UserDetails> recipients, String subject, @Nullable String body, Collection<String> channelNames, @Nullable String typeName, @Nullable String contentType) Sends one notification.
-
Field Details
-
notificationManager
-
-
Constructor Details
-
BpmNotificationServiceImpl
public BpmNotificationServiceImpl()
-
-
Method Details
-
send
public void send(Collection<org.springframework.security.core.userdetails.UserDetails> recipients, String subject, @Nullable String body, Collection<String> channelNames, @Nullable String typeName, @Nullable String contentType) Description copied from interface:BpmNotificationServiceSends one notification.- Specified by:
sendin interfaceBpmNotificationService- Parameters:
recipients- recipient users; nothing is sent if emptysubject- rendered subjectbody- rendered bodychannelNames- target channel names; defaults to the in-app channel when emptytypeName- notification type name (an add-on notification type registered on the project side); may benull, and an unknown name is ignoredcontentType- raw body content type, e.g."html"or"plain"; may benull, which is treated as plain text
-