All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.nemerosa.ontrack.model.events.EventQueryService.kt Maven / Gradle / Ivy

There is a newer version: 4.4.5
Show newest version
package net.nemerosa.ontrack.model.events

import net.nemerosa.ontrack.model.structure.ID
import net.nemerosa.ontrack.model.structure.ProjectEntity
import net.nemerosa.ontrack.model.structure.ProjectEntityType
import net.nemerosa.ontrack.model.structure.Signature
import java.util.*

/**
 * Service used to get access to the list of events.
 */
interface EventQueryService {

    fun getEvents(offset: Int, count: Int): List

    fun getEvents(entityType: ProjectEntityType, entityId: ID, offset: Int, count: Int): List

    fun getEvents(entityType: ProjectEntityType, entityId: ID, eventType: EventType, offset: Int, count: Int): List

    fun getLastEventSignature(entityType: ProjectEntityType, entityId: ID, eventType: EventType): Optional

    fun getLastEvent(entityType: ProjectEntityType, entityId: ID, eventType: EventType): Optional

    fun getLastEvent(entity: ProjectEntity, eventType: EventType): Event?

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy