public interface NotificationPublisher
Modifier and Type | Method and Description |
---|---|
boolean |
isActive()
Indicates if given publisher is active and thus should be used to publish notifications
|
void |
publish(String sender,
String subject,
Set<org.kie.api.task.model.OrganizationalEntity> recipients,
String body)
Publishes given notification based on the actual implementation.
|
void |
publish(String sender,
String subject,
Set<org.kie.api.task.model.OrganizationalEntity> recipients,
String template,
Map<String,Object> parameters)
Renders body based on given template and parameters and then publishes given notification based on the actual implementation.
|
void publish(String sender, String subject, Set<org.kie.api.task.model.OrganizationalEntity> recipients, String body)
sender
- identifier of the sender to be attached to the message produced from the notificationsubject
- subject to be used when publishing the notificationrecipients
- list of users or groups the notification should be send tobody
- actual message bodyvoid publish(String sender, String subject, Set<org.kie.api.task.model.OrganizationalEntity> recipients, String template, Map<String,Object> parameters)
sender
- identifier of the sender to be attached to the message produced from the notificationsubject
- subject to be used when publishing the notificationrecipients
- list of users or groups the notification should be send totemplate
- name of the template to be used to render bodyparameters
- map of parameters that can be used while rendering body from the templateIllegalArgumentException
- when template was not foundboolean isActive()
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.