|
Elexis API documentationVersion 2.1.6 as of January 22 2012 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.elexis.data.PersistentObject
ch.elexis.notes.Note
public class Note
A Note is an arbitrary Text or BLOB with a name and optional keywords. A Note can consist of or contain external links to files in the file system or URLs. Notes are stored hierarchically in a tree-like structure (which ist mapped to a flat database table via a "parent"-field).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ch.elexis.data.PersistentObject |
|---|
PersistentObject.FieldType |
| Field Summary | |
|---|---|
static java.lang.String |
FLD_CONTENTS
|
static java.lang.String |
FLD_KEYWORDS
|
static java.lang.String |
FLD_MIMETYPE
|
static java.lang.String |
FLD_REFS
|
static java.lang.String |
FLD_TITLE
|
| 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 | |
|---|---|
Note(Note parent,
java.lang.String title,
byte[] contents,
java.lang.String mimetype)
Create a new Note with binary content |
|
Note(Note parent,
java.lang.String title,
java.lang.String text)
Create a new Note with text content |
|
| Method Summary | |
|---|---|
void |
addRef(java.lang.String ref)
Add a new external ref |
boolean |
delete()
Ein Objekt und ggf. dessen XID's aus der Datenbank löschen the object is not deleted but rather marked as deleted. |
java.util.List<Note> |
getChildren()
find the children of this note |
byte[] |
getContent()
retrieve the content of this note |
java.lang.String |
getKeywords()
retrieve the keywords that are associated with this note. |
java.lang.String |
getLabel()
Einen menschenlesbaren Identifikationsstring für dieses Objet liefern |
Note |
getParent()
find the parent note of this note |
java.util.List<java.lang.String> |
getRefs()
Return externals references associated with this Note |
static Note |
load(java.lang.String id)
|
void |
removeRef(java.lang.String ref)
remove an external reference |
void |
setContent(byte[] cnt)
Set new binary content to the current note. |
void |
setKeywords(java.lang.String kw)
Enter keywords for this note |
| 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 FLD_MIMETYPE
public static final java.lang.String FLD_KEYWORDS
public static final java.lang.String FLD_REFS
public static final java.lang.String FLD_CONTENTS
public static final java.lang.String FLD_TITLE
| Constructor Detail |
|---|
public Note(Note parent,
java.lang.String title,
java.lang.String text)
parent - the parent note or null if this is a top level notetitle - a Title for this notetext - the text content of this note
public Note(Note parent,
java.lang.String title,
byte[] contents,
java.lang.String mimetype)
parent - the parent note or null if this is a top level notetitle - a Title for this notecontents - the contents of this note inmimettype - the mimetype of the contents| Method Detail |
|---|
public Note getParent()
public java.util.List<Note> getChildren()
public void setContent(byte[] cnt)
cnt - the new contentpublic byte[] getContent()
public java.lang.String getKeywords()
public void setKeywords(java.lang.String kw)
kw - a string with a comma separated list of keywords (at most 250 chars)public java.util.List<java.lang.String> getRefs()
public void addRef(java.lang.String ref)
ref - a string representing an URLpublic void removeRef(java.lang.String ref)
ref - the reference to removepublic java.lang.String getLabel()
PersistentObject
getLabel in interface IPersistentObjectgetLabel in class PersistentObjectpublic boolean delete()
PersistentObject
delete in class PersistentObjectpublic static Note load(java.lang.String id)
|
Elexis API documentationVersion 2.1.6 as of January 22 2012 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||