Interface NotesServiceLocal
public interface NotesServiceLocal
Local interface for the Notes service from the Planner API
-
Method Summary
Modifier and TypeMethodDescriptionAdds a new note to the specified documentAdds new notes to the specified documentdeleteNote(String documentId, Note note) Deletes note from the specified documentgetNoteById(String documentId, String noteId) Returns the note at the specified ID belonging to the specified documentgetNotes(NotesFilter filter) Returns notes fulfilling the search criteriagetNotesByDocumentId(String documentId, NotesFilter filter) Returns all notes belonging to the specified document and fulfilling the search criteriaModifies existing note in the specified documentSets notes for the specified document
-
Method Details
-
getNotesByDocumentId
List<Note> getNotesByDocumentId(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:
-
getNoteById
Note getNoteById(String documentId, 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:
-
getNotes
Returns notes fulfilling the search criteria- Parameters:
filter- search criteria in NotesFilter object- Returns:
- the list of notes
- Throws:
ServiceException- See Also:
-
setNotes
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:
-
addNotes
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:
-
addNote
Adds a new note to the specified document- Parameters:
documentId- document IDnote- the note to add- Returns:
- the created note
- Throws:
ServiceException- See Also:
-
setNote
Modifies existing note in the specified document- Parameters:
documentId- document IDnote- the note to change- Returns:
- changed note
- Throws:
ServiceException- See Also:
-
deleteNote
Deletes note from the specified document- Parameters:
documentId- document IDnote- the note to delete.- Returns:
- ID of deleted note
- Throws:
ServiceException- See Also:
-