|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.elexis.data.PersistentObject
ch.elexis.data.Reminder
public class Reminder
Ein Reminder ist eine Erinnerung an etwas. Ein Reminder ist an einen Kontakt gebunden. Ein Reminder hat ein Fälligkeitsdatum und einen Status Es gibt mehrere Typen von Remindern:
Nested Class Summary | |
---|---|
static class |
Reminder.Status
|
static class |
Reminder.Typ
|
Nested classes/interfaces inherited from class ch.elexis.data.PersistentObject |
---|
PersistentObject.FieldType |
Field Summary | |
---|---|
static java.lang.String |
CREATOR
|
static java.lang.String |
DONE
|
static java.lang.String |
DUE
|
static java.lang.String |
KONTAKT_ID
|
static java.lang.String |
MESSAGE
|
static java.lang.String |
RESPONSIBLE
|
static java.lang.String |
STATE_DUE
|
static java.lang.String |
STATE_OVERDUE
|
static java.lang.String |
STATE_PLANNED
|
static java.lang.String |
STATUS
|
static java.lang.String |
TYPE
|
static java.lang.String[] |
TypText
|
static java.lang.String |
UNDONE
|
Fields inherited from class ch.elexis.data.PersistentObject |
---|
CACHE_DEFAULT_LIFETIME, CACHE_MIN_LIFETIME, CFG_CONNECTSTRING, CFG_DRIVER, CFG_PWD, CFG_TYPE, CFG_USER, DELETED, EXISTS, INEXISTENT, INVALID_ID, MATCH_AUTO, MATCH_CONTAINS, MATCH_EXACT, MATCH_REGEXP, MATCH_START |
Fields inherited from interface ch.elexis.core.data.IPersistentObject |
---|
FLD_DATE, FLD_DELETED, FLD_EXTINFO, FLD_ID, FLD_LASTUPDATE, STATE_EXISTING, STATE_INEXISTENT, STATE_INVALID_ID |
Constructor Summary | |
---|---|
Reminder(Kontakt ident,
java.lang.String due,
Reminder.Typ typ,
java.lang.String params,
java.lang.String msg)
Create a new Reminder. |
Method Summary | |
---|---|
void |
addResponsible(Anwender a)
Add a new user to the list of responsibles for that reminder, if not already in list. |
int |
compareTo(Reminder r)
The comparator is used when reminders are inserted chronologically in a sorted set. |
boolean |
delete()
Ein Objekt und ggf. dessen XID's aus der Datenbank löschen the object is not deleted but rather marked as deleted. |
static java.util.List<Reminder> |
findForPatient(Patient p,
Kontakt responsible)
Alle Reminder zu einem Patienten holen |
static java.util.List<Reminder> |
findForToday()
Alle heute (oder vor heute) fälligen Reminder holen |
static java.util.List<Reminder> |
findRemindersDueFor(Patient p,
Anwender a,
boolean bOnlyPopup)
Alle Reminder holen, die bei einem bestimmten Patienten für einen bestimmten Anwender fällig sind |
static java.util.List<Reminder> |
findToShowOnStartup(Anwender a)
Alle Reminder holen, die beim Progammstart gezeigt werden sollen |
Anwender |
getCreator()
|
TimeTool |
getDateDue()
|
Patient |
getKontakt()
|
java.lang.String |
getLabel()
Einen menschenlesbaren Identifikationsstring für dieses Objet liefern |
java.lang.String |
getMessage()
|
java.util.List<Anwender> |
getResponsibles()
|
Reminder.Status |
getStatus()
|
Reminder.Typ |
getTyp()
|
boolean |
isDue()
|
boolean |
isOverdue()
|
static Reminder |
load(java.lang.String id)
Einen Reminder anhand seiner ID aus der Datenbank einlesen |
void |
removeResponsible(Anwender a)
Removes a user from the list of responsibles for that reminder, if the user is in the list. |
void |
setStatus(Reminder.Status s)
|
Methods inherited from class ch.elexis.data.PersistentObject |
---|
addChangeListener, addSticker, addToList, addXid, begin, checkNull, checkZero, checkZeroDouble, clearCache, connect, connect, deleteList, disconnect, equals, executeSQLScript, exists, exportData, fireChangeEvent, flatten, fold, get, get, getCacheTime, getConnection, getDefaultCacheLifetime, getFieldType, getId, getInt, getLastUpdate, getList, getList, getMap, getSticker, getStickers, getWrappedId, getXid, getXid, getXids, hashCode, isAvailable, isDeleted, isDragOK, isMatching, isMatching, isMatching, isMatching, isShowDeleted, isValid, lock, map, relock, removeChangeListener, removeFromList, removeFromList, removeSticker, resetCache, set, set, setDefaultCacheLifetime, setInt, setMap, setShowDeleted, setTrace, state, storeToString, tableExists, ts, undelete, unlock |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MESSAGE
public static final java.lang.String RESPONSIBLE
public static final java.lang.String TYPE
public static final java.lang.String STATUS
public static final java.lang.String DUE
public static final java.lang.String CREATOR
public static final java.lang.String KONTAKT_ID
public static final java.lang.String STATE_PLANNED
public static final java.lang.String STATE_DUE
public static final java.lang.String STATE_OVERDUE
public static final java.lang.String DONE
public static final java.lang.String UNDONE
public static final java.lang.String[] TypText
Constructor Detail |
---|
public Reminder(Kontakt ident, java.lang.String due, Reminder.Typ typ, java.lang.String params, java.lang.String msg)
ident
- The contact (i.e. Patient) the reminder belongs to. If ident is null, the reminder
will be attributed to the corrent userdue
- A date stringtyp
- type of the reminder (@see enum Typ)params
- parameters depending on the type of the remindermsg
- Text for the reminderMethod Detail |
---|
public void addResponsible(Anwender a)
a
- the user to add to the list of responsible userspublic void removeResponsible(Anwender a)
a
- the user to remove from the list of responsible userspublic static Reminder load(java.lang.String id)
public java.lang.String getLabel()
PersistentObject
getLabel
in interface IPersistentObject
getLabel
in class PersistentObject
public Reminder.Typ getTyp()
public Reminder.Status getStatus()
public java.lang.String getMessage()
public void setStatus(Reminder.Status s)
public TimeTool getDateDue()
public boolean isDue()
public boolean isOverdue()
public java.util.List<Anwender> getResponsibles()
public Anwender getCreator()
public static java.util.List<Reminder> findForToday()
public static java.util.List<Reminder> findForPatient(Patient p, Kontakt responsible)
p
- der Patientresponsible
- der Verantwortliche oder null: Alle
public static java.util.List<Reminder> findToShowOnStartup(Anwender a)
public static java.util.List<Reminder> findRemindersDueFor(Patient p, Anwender a, boolean bOnlyPopup)
p
- der Patienta
- der AnwenderbOnlyPopup
- nur die zeigen, die den Typ "Bei Auswahl popup" haben.
public Patient getKontakt()
public int compareTo(Reminder r)
compareTo
in interface java.lang.Comparable<Reminder>
public boolean delete()
PersistentObject
delete
in class PersistentObject
|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |