public class NoteServiceImpl extends java.lang.Object implements NoteService, java.io.Serializable
| Constructor and Description | 
|---|
NoteServiceImpl()
Public constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
createNote(Note note)
Creates a new note. 
 | 
Note | 
getNote(java.lang.Integer noteId)
Get note by internal identifier 
 | 
java.util.Collection<Note> | 
getNotes()
Get all notes from the database. 
 | 
java.util.List<Note> | 
getNotes(User user)
Get notes by user. 
 | 
void | 
setNodeDAO(NoteDAO dao)  | 
void | 
updateNote(Note note)
Update a note. 
 | 
public void setNodeDAO(NoteDAO dao)
public java.util.Collection<Note> getNotes() throws java.lang.Exception
Collection of all notes from the databasejava.lang.Exceptionpublic void createNote(Note note) throws java.lang.Exception
createNote in interface NoteServicenote - to be createdAPIExceptionjava.lang.Exceptionpublic Note getNote(java.lang.Integer noteId) throws java.lang.Exception
getNote in interface NoteServicenoteId - internal note identifierAPIExceptionjava.lang.Exceptionpublic void updateNote(Note note) throws java.lang.Exception
updateNote in interface NoteServicenote - to be updatedAPIExceptionjava.lang.Exceptionpublic java.util.List<Note> getNotes(User user) throws java.lang.Exception
getNotes in interface NoteServiceuser - APIExceptionjava.lang.ExceptionCopyright © 2018 OpenMRS Inc.. All Rights Reserved.