|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openmrs.api.impl.BaseOpenmrsService
org.openmrs.notification.impl.AlertServiceImpl
public class AlertServiceImpl
This class should not be instantiated by itself.
AlertService,
Serialized Form| Constructor Summary | |
|---|---|
AlertServiceImpl()
Default constructor |
|
| Method Summary | |
|---|---|
void |
createAlert(Alert alert)
Deprecated. |
void |
createAlert(java.lang.String text,
java.util.Collection<User> users)
Deprecated. |
void |
createAlert(java.lang.String text,
User user)
Deprecated. |
Alert |
getAlert(java.lang.Integer alertId)
Get alert by internal identifier |
java.util.List<Alert> |
getAlerts()
Deprecated. |
java.util.List<Alert> |
getAlerts(User user)
Deprecated. |
java.util.List<Alert> |
getAlerts(User user,
boolean includeRead,
boolean includeExpired)
Finds alerts for the given user with the given status |
java.util.List<Alert> |
getAlertsByUser(User user)
Find the alerts that are not read and have not expired for a user This will probably be the most commonly called method If null is passed in for user, find alerts for the
currently authenticated user. |
java.util.List<Alert> |
getAllActiveAlerts(User user)
Find all alerts for a user that have not expired |
java.util.List<Alert> |
getAllAlerts()
Get all unexpired alerts for all users |
java.util.List<Alert> |
getAllAlerts(boolean includeExpired)
Get alerts for all users while obeying includeExpired |
java.util.List<Alert> |
getAllAlerts(User user)
Deprecated. |
void |
markAlertRead(Alert alert)
Deprecated. |
void |
purgeAlert(Alert alert)
Completely delete the given alert from the database |
Alert |
saveAlert(Alert alert)
Save the given alert in the database |
void |
setAlertDAO(AlertDAO dao)
Used by Spring to set the specific/chosen database access implementation |
void |
updateAlert(Alert alert)
Deprecated. |
| Methods inherited from class org.openmrs.api.impl.BaseOpenmrsService |
|---|
onShutdown, onStartup |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.openmrs.api.OpenmrsService |
|---|
onShutdown, onStartup |
| Constructor Detail |
|---|
public AlertServiceImpl()
| Method Detail |
|---|
public void setAlertDAO(AlertDAO dao)
AlertService
setAlertDAO in interface AlertServicedao - The dao implementation to useAlertService.setAlertDAO(org.openmrs.notification.db.AlertDAO)
public void createAlert(Alert alert)
throws APIException
createAlert in interface AlertServiceAPIExceptionAlertService.createAlert(org.openmrs.notification.Alert)
public Alert saveAlert(Alert alert)
throws APIException
AlertServicealert in the database
saveAlert in interface AlertServicealert - the Alert object to save
APIExceptionAlertService.saveAlert(org.openmrs.notification.Alert)
public void createAlert(java.lang.String text,
User user)
throws APIException
AlertService
createAlert in interface AlertServiceAPIExceptionAlertService.createAlert(java.lang.String, org.openmrs.User)
public void createAlert(java.lang.String text,
java.util.Collection<User> users)
throws APIException
AlertService
createAlert in interface AlertServiceAPIExceptionAlertService.createAlert(java.lang.String,
java.util.Collection)
public Alert getAlert(java.lang.Integer alertId)
throws APIException
AlertService
getAlert in interface AlertServicealertId - internal alert identifier
APIExceptionAlertService.getAlert(java.lang.Integer)
public void updateAlert(Alert alert)
throws APIException
updateAlert in interface AlertServiceAPIExceptionAlertService.updateAlert(org.openmrs.notification.Alert)
public void purgeAlert(Alert alert)
throws APIException
AlertService
purgeAlert in interface AlertServicealert - the Alert to purge/delete
APIExceptionAlertService.purgeAlert(org.openmrs.notification.Alert)
public void markAlertRead(Alert alert)
throws APIException
AlertService
markAlertRead in interface AlertServiceAPIExceptionAlertService.markAlertRead(org.openmrs.notification.Alert)
public java.util.List<Alert> getAllAlerts(User user)
throws APIException
getAllAlerts in interface AlertServiceAPIExceptionAlertService.getAllAlerts(org.openmrs.User)
public java.util.List<Alert> getAllActiveAlerts(User user)
throws APIException
AlertService
getAllActiveAlerts in interface AlertServiceAPIExceptionAlertService.getAllActiveAlerts(org.openmrs.User)
public java.util.List<Alert> getAlerts(User user)
throws APIException
getAlerts in interface AlertServiceAPIExceptionAlertService.getAlerts(org.openmrs.User)
public java.util.List<Alert> getAlertsByUser(User user)
throws APIException
AlertServiceuser, find alerts for the
currently authenticated user. If no user is authenticated, search on "new
User()" (for "Anonymous" role alert possibilities)
getAlertsByUser in interface AlertServiceuser - the user that is assigned to the returned alerts
APIExceptionAlertService.getAlertsByUser(org.openmrs.User)
public java.util.List<Alert> getAlerts()
throws APIException
getAlerts in interface AlertServiceAPIExceptionAlertService.getAlerts()
public java.util.List<Alert> getAlerts(User user,
boolean includeRead,
boolean includeExpired)
throws APIException
AlertService
getAlerts in interface AlertServiceuser - to restrict to
APIExceptionAlertService.getAlerts(org.openmrs.User, boolean, boolean)
public java.util.List<Alert> getAllAlerts()
throws APIException
AlertService
getAllAlerts in interface AlertServiceAPIExceptionAlertService.getAllAlerts()
public java.util.List<Alert> getAllAlerts(boolean includeExpired)
throws APIException
AlertService
getAllAlerts in interface AlertServiceAPIExceptionAlertService.getAllAlerts(boolean)
|
OpenMRS-1.7.x | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||