public interface NotificationProducer
Modifier and Type | Method and Description |
---|---|
Future<NotificationStatus> |
sendNotification(pl.edu.icm.unity.types.basic.EntityParam recipient,
String templateId,
Map<String,String> params,
String locale,
String preferredAddress,
boolean sendOnlyToConfirmed)
Sends a message which is resolved from a given template with parameters.
|
Future<NotificationStatus> |
sendNotification(String recipientAddress,
String templateId,
Map<String,String> params,
String locale)
Sends a message which is resolved from a given template with parameters.
|
void |
sendNotificationToGroup(String group,
String templateId,
Map<String,String> params,
String locale)
Sends a message which is resolved from a given template with parameters.
|
Future<NotificationStatus> sendNotification(pl.edu.icm.unity.types.basic.EntityParam recipient, String templateId, Map<String,String> params, String locale, String preferredAddress, boolean sendOnlyToConfirmed) throws pl.edu.icm.unity.exceptions.EngineException
recipient
- channelName
- templateId
- params
- locale
- can be null. In such case the server's default locale will be usedpreferredAddress
- can be null. If not null then this address will be used if can be found among all
valid addresses of entity.sendOnlyToConfirmed
- send notification only to confirmed recipient addresspl.edu.icm.unity.exceptions.EngineException
Future<NotificationStatus> sendNotification(String recipientAddress, String templateId, Map<String,String> params, String locale) throws pl.edu.icm.unity.exceptions.EngineException
recipientAddress
- actual address of the recipient, as email address.channelName
- templateId
- params
- locale
- can be null. In such case the server's default locale will be usedpl.edu.icm.unity.exceptions.EngineException
void sendNotificationToGroup(String group, String templateId, Map<String,String> params, String locale) throws pl.edu.icm.unity.exceptions.EngineException
group
- channelName
- templateId
- params
- locale
- can be null. In such case the server's default locale will be usedpl.edu.icm.unity.exceptions.EngineException
Copyright © 2018 Unity. All rights reserved.