Changelogs Helper

@Service
open class ChangelogsHelper

The ChangelogsHelper class is useful to manage all the changelogs database operations

Author

N7ghtm4r3 - Tecknobit

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
@Autowired
private open var changelogsRepository: ChangelogsRepository
changelogsRepository instance for the changelog project_repository
Link copied to clipboard
@Autowired
private open var membersRepository: GroupMembersRepository
membersRepository instance for the members of a group project_repository

Functions

Link copied to clipboard
open fun changelogExists(changelogId: String): Boolean
Method to check whether a changelog exists
Link copied to clipboard
open fun deleteChangelog(changelogId: String, ownerId: String, groupId: String)
Method to delete a changelog
Link copied to clipboard
open fun getChangelogs(ownerId: String, page: Int, pageSize: Int): PaginatedResponse<Changelog>
Method to get the user's changelogs list
Link copied to clipboard
open fun getUnreadChangelogsCount(ownerId: String): Long
Method to get the user's changelogs list
Link copied to clipboard
open fun markAsRead(changelogId: String, ownerId: String)
Method to mark as red a changelog