org.openmrs.notification.impl
Class NoteServiceImpl

java.lang.Object
  extended by org.openmrs.notification.impl.NoteServiceImpl
All Implemented Interfaces:
java.io.Serializable, NoteService

public class NoteServiceImpl
extends java.lang.Object
implements NoteService, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
NoteServiceImpl()
          Public constructor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoteServiceImpl

public NoteServiceImpl()
Public constructor.

Method Detail

setNodeDAO

public void setNodeDAO(NoteDAO dao)

getNotes

public java.util.Collection<Note> getNotes()
                                    throws java.lang.Exception
Get all notes from the database.

Returns:
Collection of all notes from the database
Throws:
java.lang.Exception

createNote

public void createNote(Note note)
                throws java.lang.Exception
Creates a new note.

Specified by:
createNote in interface NoteService
Parameters:
note - to be created
Throws:
APIException
java.lang.Exception

getNote

public Note getNote(java.lang.Integer noteId)
             throws java.lang.Exception
Get note by internal identifier

Specified by:
getNote in interface NoteService
Parameters:
noteId - internal note identifier
Returns:
note with given internal identifier
Throws:
APIException
java.lang.Exception

updateNote

public void updateNote(Note note)
                throws java.lang.Exception
Update a note.

Specified by:
updateNote in interface NoteService
Parameters:
note - to be updated
Throws:
APIException
java.lang.Exception

getNotes

public java.util.List<Note> getNotes(User user)
                              throws java.lang.Exception
Get notes by user.

Specified by:
getNotes in interface NoteService
Parameters:
user -
Throws:
APIException
java.lang.Exception

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change