|
|
||||||||
| 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.api.impl.ActiveListServiceImpl
public class ActiveListServiceImpl
Default implementation of the active list service. This class should not be used on its own. The
current OpenMRS implementation should be fetched from the Context via
Context.getActiveListService()
Context,
ActiveListService| Constructor Summary | |
|---|---|
ActiveListServiceImpl()
|
|
| Method Summary | ||
|---|---|---|
|
getActiveListItem(java.lang.Class<T> clazz,
java.lang.Integer activeListItemId)
Returns the ActiveListItem |
|
ActiveListItem |
getActiveListItemByUuid(java.lang.String uuid)
Return the ActiveList by the UUID |
|
|
getActiveListItems(java.lang.Class<T> clazz,
Person p,
ActiveListType type)
Returns a sorted set of active list items from a class that extends ActiveListItem |
|
java.util.List<ActiveListItem> |
getActiveListItems(Person p,
ActiveListType type)
Returns a sorted set of active list items based on the type given. |
|
ActiveListItem |
removeActiveListItem(ActiveListItem item,
java.util.Date endDate)
Sets the Active List Item as inactive by setting the end date to today, if null |
|
ActiveListItem |
saveActiveListItem(ActiveListItem item)
Save or update an Active List Item |
|
void |
setActiveListDAO(ActiveListDAO dao)
Sets the DAO for this service. |
|
ActiveListItem |
voidActiveListItem(ActiveListItem item,
java.lang.String reason)
Voids the Active List Item |
|
| 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 ActiveListServiceImpl()
| Method Detail |
|---|
public void setActiveListDAO(ActiveListDAO dao)
ActiveListService
setActiveListDAO in interface ActiveListServicedao - DAO for this serviceActiveListService.setActiveListDAO(org.openmrs.api.db.ActiveListDAO)
public java.util.List<ActiveListItem> getActiveListItems(Person p,
ActiveListType type)
throws APIException
ActiveListService
getActiveListItems in interface ActiveListServicep - the Persontype - Problem or Allergy
APIExceptionActiveListService.getActiveListItems(org.openmrs.Person,
org.openmrs.activelist.ActiveListType)
public <T extends ActiveListItem> java.util.List<T> getActiveListItems(java.lang.Class<T> clazz,
Person p,
ActiveListType type)
throws APIException
ActiveListService
getActiveListItems in interface ActiveListServiceclazz - extends ActiveListItemp - the Person
APIExceptionActiveListService.getActiveListItems(java.lang.Class,
org.openmrs.Person, org.openmrs.activelist.ActiveListType)
public <T extends ActiveListItem> T getActiveListItem(java.lang.Class<T> clazz,
java.lang.Integer activeListItemId)
throws APIException
ActiveListService
getActiveListItem in interface ActiveListServiceclazz - extends ActiveListItemactiveListItemId - the unique ID of the Active List
APIExceptionActiveListService.getActiveListItem(java.lang.Class, java.lang.Integer)
public ActiveListItem getActiveListItemByUuid(java.lang.String uuid)
throws APIException
ActiveListService
getActiveListItemByUuid in interface ActiveListServiceuuid - unique identifier
APIExceptionActiveListService.getActiveListItemByUuid(java.lang.String)
public ActiveListItem saveActiveListItem(ActiveListItem item)
throws APIException
ActiveListService
saveActiveListItem in interface ActiveListServiceAPIExceptionActiveListService.saveActiveListItem(org.openmrs.activelist.ActiveListItem)
public ActiveListItem removeActiveListItem(ActiveListItem item,
java.util.Date endDate)
throws APIException
ActiveListService
removeActiveListItem in interface ActiveListServiceAPIExceptionActiveListService.removeActiveListItem(org.openmrs.activelist.ActiveListItem,
java.util.Date)
public ActiveListItem voidActiveListItem(ActiveListItem item,
java.lang.String reason)
throws APIException
ActiveListService
voidActiveListItem in interface ActiveListServiceAPIExceptionActiveListService.voidActiveListItem(org.openmrs.activelist.ActiveListItem,
java.lang.String)
|
OpenMRS-1.7.x | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||