Update Events Notifier

@Service
open class UpdateEventsNotifier

The UpdateEventsNotifier notify and store the event occurred in the lifecycle of an update

Author

N7ghtm4r3 - Tecknobit

Since

1.2.0

Constructors

Link copied to clipboard
@Autowired
constructor(updateEventsRepository: UpdateEventsRepository)
Constructor used to init the service

Properties

Link copied to clipboard
updateEventsRepository instance for the update events repository

Functions

Link copied to clipboard
open fun changeNoteAdded(author: PandoroUser, owner: Update, changeNote: Note)
Method used to store a CHANGENOTE_ADDED event
Link copied to clipboard
open fun changeNoteDone(author: PandoroUser, owner: Update, changeNote: Note)
Method used to store a CHANGENOTE_DONE event
Link copied to clipboard
open fun changeNoteEdited(author: PandoroUser, owner: Update, changeNote: Note, oldContent: String)
Method used to store a CHANGENOTE_EDITED event
Link copied to clipboard
@Transactional
open fun changeNoteMoved(author: PandoroUser, currentOwner: Update, nextOwner: Update, changeNote: Note)
Method used to store the CHANGENOTE_MOVED_TO and CHANGENOTE_MOVED_FROM events
Link copied to clipboard
open fun changeNoteRemoved(author: PandoroUser, owner: Update, changeNote: Note)
Method used to store a CHANGENOTE_REMOVED event
Link copied to clipboard
open fun changeNoteUndone(author: PandoroUser, owner: Update, changeNote: Note)
Method used to store a CHANGENOTE_UNDONE event
Link copied to clipboard
private open fun storeUpdateEvent(author: PandoroUser, type: UpdateEventType, owner: Update)
private open fun storeUpdateEvent(author: PandoroUser, type: UpdateEventType, owner: Update, changeNote: Note)
private open fun storeUpdateEvent(author: PandoroUser, type: UpdateEventType, owner: Update, extraContent: String)
private open fun storeUpdateEvent(author: PandoroUser, type: UpdateEventType, owner: Update, changeNote: Note, extraContent: String)
Method used to store a notified update event
Link copied to clipboard
open fun updatePublished(author: PandoroUser, owner: Update)
Method used to store a PUBLISHED event
Link copied to clipboard
open fun updateScheduled(author: PandoroUser, owner: Update)
Method used to store a SCHEDULED event
Link copied to clipboard
open fun updateStarted(author: PandoroUser, owner: Update)
Method used to store a STARTED event