public class DWRAlertService extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
DWRAlertService() |
Modifier and Type | Method and Description |
---|---|
boolean |
createAlert(String text)
Creates and saves a new
Alert |
List<AlertListItem> |
getAlerts()
Calls the corresponding AlertService.getAlertsByUser(null) method to get alerts for the
current user or for the authenticated role
|
void |
markAlertRead(Integer alertId)
Calls the corresponding AlertService.markAlertRead(Alert) method
|
void |
markAllAlertsRead()
Marks all alert as read
|
public List<AlertListItem> getAlerts()
public void markAlertRead(Integer alertId)
alertId
- public boolean createAlert(String text)
Alert
text
- the string to set as the alert textpublic void markAllAlertsRead()
Copyright © 2015 OpenMRS Inc.. All rights reserved.