public interface NotificationProducer
Modifier and Type | Method and Description |
---|---|
Future<NotificationStatus> |
sendNotification(pl.edu.icm.unity.types.basic.EntityParam recipient,
String channelName,
String templateId,
Map<String,String> params,
String locale,
String preferredAddress)
Sends a message which is resolved from a given template with parameters.
|
Future<NotificationStatus> |
sendNotification(String recipientAddress,
String channelName,
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 channelName,
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 channelName, String templateId, Map<String,String> params, String locale, String preferredAddress) 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.pl.edu.icm.unity.exceptions.EngineException
Future<NotificationStatus> sendNotification(String recipientAddress, String channelName, 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 channelName, 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 © 2017 Unity. All rights reserved.