Package io.jmix.bpm.notification
Interface BpmNotificationService
- All Known Implementing Classes:
BpmNotificationServiceImpl
public interface BpmNotificationService
Sends a rendered notification to recipients through the Notifications add-on.
-
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.
-
Method Details
-
send
void send(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.- 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
-