public class EmailNotificationListener extends Object implements NotificationListener
Constructor and Description |
---|
EmailNotificationListener() |
Modifier and Type | Method and Description |
---|---|
protected void |
buildMapByLanguage(Map<String,List<org.kie.api.task.model.User>> map,
org.kie.api.task.model.Group group,
org.kie.internal.task.api.UserInfo userInfo) |
protected void |
buildMapByLanguage(Map<String,List<org.kie.api.task.model.User>> map,
org.kie.api.task.model.User user,
org.kie.internal.task.api.UserInfo userInfo) |
protected List<String> |
getAttachements(Object attachementsFromVariables) |
protected URL |
getAttachemntURL(String attachment) |
void |
onNotification(org.kie.internal.task.api.model.NotificationEvent event,
org.kie.internal.task.api.UserInfo userInfo)
Invoked when notification is about to be sent.
|
public void onNotification(org.kie.internal.task.api.model.NotificationEvent event, org.kie.internal.task.api.UserInfo userInfo)
NotificationListener
onNotification
in interface NotificationListener
event
- notification event that includes task, notification itself and task variablesuserInfo
- Implementation of UserInfo
to be able to find user details such as email addressprotected URL getAttachemntURL(String attachment) throws MalformedURLException
MalformedURLException
protected void buildMapByLanguage(Map<String,List<org.kie.api.task.model.User>> map, org.kie.api.task.model.Group group, org.kie.internal.task.api.UserInfo userInfo)
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.