public class NotificationService extends Object
| Constructor and Description |
|---|
NotificationService(org.carewebframework.vista.mbroker.BrokerSession broker,
String scheduledPrefix) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteNotification(Notification notification)
Delete a notification.
|
boolean |
deleteScheduledNotification(ScheduledNotification notification)
Delete a scheduled notification.
|
void |
forwardNotifications(Collection<Notification> notifications,
Collection<Recipient> recipients,
String comment)
Forward multiple notifications.
|
void |
getGroups(String startFrom,
boolean forward,
Collection<Recipient> result)
Returns a bolus of mail groups.
|
List<String> |
getNotificationMessage(Notification notification)
Returns the message associated with a notification, fetching it from the server if necessary.
|
void |
getNotifications(ca.uhn.fhir.model.dstu.resource.Patient patient,
Collection<Notification> result)
Returns notifications for the current user.
|
List<String> |
getScheduledNotificationMessage(ScheduledNotification notification)
Returns the message associated with a scheduled notification.
|
void |
getScheduledNotificationRecipients(ScheduledNotification notification,
Collection<Recipient> result)
Returns a list of recipients associated with a scheduled notification.
|
void |
getScheduledNotifications(Collection<ScheduledNotification> result)
Returns all scheduled notifications for the current user.
|
void |
getUsers(String startFrom,
boolean forward,
Collection<Recipient> result)
Returns a bolus of users.
|
boolean |
scheduleNotification(ScheduledNotification notification,
List<String> message,
Collection<Recipient> recipients)
Creates a schedule notification.
|
public NotificationService(org.carewebframework.vista.mbroker.BrokerSession broker,
String scheduledPrefix)
public void getGroups(String startFrom, boolean forward, Collection<Recipient> result)
startFrom - Starting entry.forward - Direction of traversal.result - Result of lookup.public void getUsers(String startFrom, boolean forward, Collection<Recipient> result)
startFrom - Starting entry.forward - Direction of traversal.result - Result of lookup.public void getNotifications(ca.uhn.fhir.model.dstu.resource.Patient patient,
Collection<Notification> result)
patient - If not null, only notifications associated with the current user are returned.
Otherwise, all notifications for the current user are returned.result - The list to receive the results.public boolean deleteNotification(Notification notification)
notification - The notification to delete.public void forwardNotifications(Collection<Notification> notifications, Collection<Recipient> recipients, String comment)
notifications - List of notifications to forward.recipients - List of recipients.comment - Comment to attach to forwarded notification.public List<String> getNotificationMessage(Notification notification)
notification - A notification.public void getScheduledNotifications(Collection<ScheduledNotification> result)
result - The list to receive the results.public boolean deleteScheduledNotification(ScheduledNotification notification)
notification - Scheduled notification to delete.public void getScheduledNotificationRecipients(ScheduledNotification notification, Collection<Recipient> result)
notification - A scheduled notification.result - Recipients associated with the notification.public List<String> getScheduledNotificationMessage(ScheduledNotification notification)
notification - A scheduled notification.public boolean scheduleNotification(ScheduledNotification notification, List<String> message, Collection<Recipient> recipients)
notification - Notification to be scheduled.message - The associated message, if any.recipients - The target recipients.Copyright © 2014 Regenstrief Center for Biomedical Informatics. All rights reserved.