Package com.priint.pubserverapi.note
Interface NoteServiceLocal
public interface NoteServiceLocal
Local interface for managing notes.
This service provides methods for creating, retrieving, updating, and deleting notes.
All operations may throw NoteServiceException if an error occurs
during processing.
-
Method Summary
Modifier and TypeMethodDescriptioncreate(DocumentId documentId, Note note) Creates a new note for the specific documentcreateNoteQuery(DocumentId documentId) Creates a newNoteQueryfor querying notes.voiddelete(DocumentId documentId, NoteId noteId) Deletes an existing note for the specific documentgetNoteById(DocumentId documentId, NoteId noteId) Retrieves aNoteby document id and note idvoidupdate(DocumentId documentId, Note note) Updates an existing note for the specific documentvoidupdate(DocumentId documentId, List<Note> notes) Updates existing notes for the specific document
-
Method Details
-
createNoteQuery
Creates a newNoteQueryfor querying notes.- Parameters:
documentId- document id *- Returns:
- a new
NoteQueryinstance
-
getNoteById
Retrieves aNoteby document id and note id- Parameters:
documentId- document idnoteId- note id- Returns:
- an
Optionalcontaining the note if found, or empty if not
-
create
Creates a new note for the specific document- Parameters:
documentId- document idnote- the note to create- Returns:
- note id
- Throws:
NoteServiceException
-
update
Updates an existing note for the specific document- Parameters:
documentId- document idnote- the note to update- Throws:
NoteServiceException
-
update
Updates existing notes for the specific document- Parameters:
documentId- document idnotes- list of the notes to update- Throws:
NoteServiceException
-
delete
Deletes an existing note for the specific document- Parameters:
documentId- document idnoteId- note id- Throws:
NoteServiceException
-