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.Exception
public void createNote(Note note) throws java.lang.Exception
createNote
in interface NoteService
note
- to be createdAPIException
java.lang.Exception
public Note getNote(java.lang.Integer noteId) throws java.lang.Exception
getNote
in interface NoteService
noteId
- internal note identifierAPIException
java.lang.Exception
public void updateNote(Note note) throws java.lang.Exception
updateNote
in interface NoteService
note
- to be updatedAPIException
java.lang.Exception
public java.util.List<Note> getNotes(User user) throws java.lang.Exception
getNotes
in interface NoteService
user
- APIException
java.lang.Exception
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.