Change Notes Service

@Service
open class ChangeNotesService

The ChangeNotesService class is useful to handle the change notes database operations

Author

N7ghtm4r3 - Tecknobit

Since

1.2.0

Constructors

Link copied to clipboard
@Autowired
constructor(notesRepository: NotesRepository, updateEventsNotifier: UpdateEventsNotifier)
Constructor used to init the service

Properties

Link copied to clipboard
notesRepository instance for the notes repository
Link copied to clipboard
updateEventsNotifier the notifier used to notify about an update event

Functions

Link copied to clipboard
@Transactional
open fun addChangeNote(user: PandoroUser, noteId: String, contentNote: String, update: Update)
Method to add a change note to an update
Link copied to clipboard
@Transactional
open fun deleteChangeNote(update: Update, changeNote: Note, user: PandoroUser)
Method to delete a change note
Link copied to clipboard
@Transactional
open fun editChangeNote(user: PandoroUser, update: Update, changeNote: Note, contentNote: String)
Method to edit an existing change note of an update
Link copied to clipboard
open fun getChangeNote(updateId: String, noteId: String): Note
Method used to query a change note with the identifier of the update and the identifier of the change note
Link copied to clipboard
@Transactional
open fun markChangeNoteAsDone(update: Update, changeNote: Note, user: PandoroUser)
Method to mark as done a change note
Link copied to clipboard
@Transactional
open fun markChangeNoteAsToDo(update: Update, changeNote: Note, user: PandoroUser)
Method to mark as to-do a change note
Link copied to clipboard
@Transactional
open fun moveChangeNote(changeNote: Note, sourceUpdate: Update, destinationUpdate: Update, user: PandoroUser)
Method used to move a change note from an update to other
Link copied to clipboard
open fun updateHasChangeNote(updateId: String, noteId: String): Boolean
Method to check whether a change note exists