public class NoteServiceImpl extends Object implements NoteService, Serializable
| Constructor and Description |
|---|
NoteServiceImpl()
Public constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createNote(Note note)
Creates a new note.
|
Note |
getNote(Integer noteId)
Get note by internal identifier
|
Collection<Note> |
getNotes()
Get all notes from the database.
|
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 Collection<Note> getNotes() throws Exception
Collection of all notes from the databaseExceptionpublic void createNote(Note note) throws Exception
createNote in interface NoteServicenote - to be createdAPIExceptionExceptionpublic Note getNote(Integer noteId) throws Exception
getNote in interface NoteServicenoteId - internal note identifierAPIExceptionExceptionpublic void updateNote(Note note) throws Exception
updateNote in interface NoteServicenote - to be updatedAPIExceptionExceptionpublic List<Note> getNotes(User user) throws Exception
getNotes in interface NoteServiceuser - APIExceptionExceptionCopyright © 2018 OpenMRS LLC.. All Rights Reserved.