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