Package com.coachconnect.repository
Class NoteRepository
java.lang.Object
com.coachconnect.repository.NoteRepository
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateNote(Note note) Create a new note.Delete a note by ID (simplified interface).deleteNote(String id, String creatorId) Delete a note.Find a note by ID (without creator check - servlet will handle security).findNoteById(String id, String creatorId) Find a note by ID (must belong to the creator).Find notes by creator with optional type and reference ID filters.findNotesByCreator(String creatorId) Find all notes created by a specific user (coach).Save a note (alias for createNote).Update a note (simplified interface).updateNote(String id, String creatorId, Note updatedNote) Update an existing note.
-
Constructor Details
-
NoteRepository
-
NoteRepository
public NoteRepository()
-
-
Method Details
-
findNotesByCreator
Find all notes created by a specific user (coach). -
findNotes
Find notes by creator with optional type and reference ID filters. -
findNoteById
Find a note by ID (must belong to the creator). -
createNote
Create a new note. -
updateNote
Update an existing note. -
deleteNote
Delete a note. -
findById
Find a note by ID (without creator check - servlet will handle security). -
save
Save a note (alias for createNote). -
update
Update a note (simplified interface). -
delete
Delete a note by ID (simplified interface).
-