Interface NotesServiceLocal
-
public interface NotesServiceLocalLocal interface for the Notes service from the Planner API
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NoteaddNote(java.lang.String documentId, Note note)Adds a new note to the specified documentjava.util.List<Note>addNotes(java.lang.String documentId, java.util.List<Note> notes)Adds new notes to the specified documentjava.lang.StringdeleteNote(java.lang.String documentId, Note note)Deletes note from the specified documentNotegetNoteById(java.lang.String documentId, java.lang.String noteId)Returns the note at the specified ID belonging to the specified documentjava.util.List<Note>getNotes(NotesFilter filter)Returns notes fulfilling the search criteriajava.util.List<Note>getNotesByDocumentId(java.lang.String documentId, NotesFilter filter)Returns all notes belonging to the specified document and fulfilling the search criteriaNotesetNote(java.lang.String documentId, Note note)Modifies existing note in the specified documentjava.util.List<Note>setNotes(java.lang.String documentId, java.util.List<Note> notes)Sets notes for the specified document
-
-
-
Method Detail
-
getNotesByDocumentId
java.util.List<Note> getNotesByDocumentId(java.lang.String documentId, NotesFilter filter) throws ServiceException, ResourceNotFoundException
Returns all notes belonging to the specified document and fulfilling the search criteria- Parameters:
documentId- document IDfilter- search criteria in the NotesFilter object- Returns:
- the list of notes
- Throws:
ServiceExceptionResourceNotFoundException- See Also:
Note,NotesFilter
-
getNoteById
Note getNoteById(java.lang.String documentId, java.lang.String noteId) throws ServiceException, ResourceNotFoundException
Returns the note at the specified ID belonging to the specified document- Parameters:
documentId- document IDnoteId- note ID- Returns:
- the note
- Throws:
ServiceExceptionResourceNotFoundException- See Also:
Note
-
getNotes
java.util.List<Note> getNotes(NotesFilter filter) throws ServiceException
Returns notes fulfilling the search criteria- Parameters:
filter- search criteria in NotesFilter object- Returns:
- the list of notes
- Throws:
ServiceException- See Also:
Note,NotesFilter
-
setNotes
java.util.List<Note> setNotes(java.lang.String documentId, java.util.List<Note> notes) throws ServiceException
Sets notes for the specified document- Parameters:
documentId- document IDnotes- the list of notes to set for the document- Returns:
- the list of processed notes. Each Note from the list contains status code of the operation
- Throws:
ServiceException- See Also:
Note
-
addNotes
java.util.List<Note> addNotes(java.lang.String documentId, java.util.List<Note> notes) throws ServiceException
Adds new notes to the specified document- Parameters:
documentId- document IDnotes- the list of notes to add- Returns:
- the list of processed notes. Each Note from the list contains status code of the operation and new ID
- Throws:
ServiceException- See Also:
Note
-
addNote
Note addNote(java.lang.String documentId, Note note) throws ServiceException
Adds a new note to the specified document- Parameters:
documentId- document IDnote- the note to add- Returns:
- the created note
- Throws:
ServiceException- See Also:
Note
-
setNote
Note setNote(java.lang.String documentId, Note note) throws ServiceException
Modifies existing note in the specified document- Parameters:
documentId- document IDnote- the note to change- Returns:
- changed note
- Throws:
ServiceException- See Also:
Note
-
deleteNote
java.lang.String deleteNote(java.lang.String documentId, Note note) throws ServiceExceptionDeletes note from the specified document- Parameters:
documentId- document IDnote- the note to delete.- Returns:
- ID of deleted note
- Throws:
ServiceException- See Also:
Note
-
-