Notes Helper

@Service
open class NotesHelper

The NotesHelper class is useful to manage all the notes database operations

Author

N7ghtm4r3 - Tecknobit

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
ALL_FILTER_VALUE the default value of the filter to retrieve the notes list
Link copied to clipboard
@Autowired
private open var notesRepository: NotesRepository
notesRepository instance for the notes project_repository

Functions

Link copied to clipboard
open fun createNote(authorId: String, noteId: String, contentNote: String)
Method to create a new note
Link copied to clipboard
open fun deleteNote(authorId: String, noteId: String)
Method to delete a note
Link copied to clipboard
open fun editNote(authorId: String, noteId: String, contentNote: String)
Method to edit an existing note
Link copied to clipboard
open fun getNote(noteId: String): Note
Method to get an existing note
Link copied to clipboard
open fun getNotes(userId: String, page: Int, pageSize: Int, statusFilter: String): PaginatedResponse<Note>
Method to get the user's notes list
Link copied to clipboard
open fun manageNoteStatus(authorId: String, noteId: String, completed: Boolean)
Method to mark a note as done
Link copied to clipboard
open fun noteExists(authorId: String, noteId: String): Boolean
Method to check whether a note exists