Updates Service

@Service
open class UpdatesService : EquinoxItemsHelper

The UpdatesService class is useful to handle the updates database operations

Author

N7ghtm4r3 - Tecknobit

Since

1.2.0

See also

EquinoxItemsHelper

Constructors

Link copied to clipboard
@Autowired
constructor(updatesRepository: UpdatesRepository, changelogsNotifier: ChangelogsNotifier, updateEventsNotifier: UpdateEventsNotifier)
Constructor used to init the service

Properties

Link copied to clipboard
changelogsNotifier instance used to notify a changelog event
Link copied to clipboard
protected open var entityManager: EntityManager
Link copied to clipboard
updateEventsNotifier the notifier used to notify about an update event
Link copied to clipboard
updatesRepository instance for the updates repository

Functions

Link copied to clipboard
protected open fun batchDelete(table: String, values: Collection<out Any>, columns: Array<@NotNull String>)
Link copied to clipboard
protected open fun <V> batchInsert(command: EquinoxItemsHelper.InsertCommand, table: String, batchQuery: EquinoxItemsHelper.BatchQuery<V>)
Link copied to clipboard
open fun deleteUpdate(project: Project, update: Update, userId: String)
Method to delete an update
Link copied to clipboard
open fun publishUpdate(project: Project, update: Update, user: PandoroUser)
Method to publish an existing update
Link copied to clipboard
open fun scheduleUpdate(updateId: String, targetVersion: String, changeNotes: List<String>, project: Project, user: PandoroUser)
Method to schedule a new update
Link copied to clipboard
open fun startUpdate(project: Project, update: Update, user: PandoroUser)
Method to start an existing update
Link copied to clipboard
protected open fun <V> syncBatch(model: EquinoxItemsHelper.SyncBatchModel, table: String, batchQuery: EquinoxItemsHelper.BatchQuery<V>)
Link copied to clipboard
open fun targetVersionExists(projectId: String, targetVersion: String): Boolean
Method to check whether an update with the target project_version inserted already exists
Link copied to clipboard
open fun updateExists(projectId: String, updateId: String): Update
Method to fetch and check if an update exists