net.nemerosa.ontrack.model.events.EventQueryService.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ontrack-model Show documentation
Show all versions of ontrack-model Show documentation
Ontrack module: ontrack-model
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