public interface AcknowledgmentDao extends OnmsDao<OnmsAcknowledgment,Integer>
Modifier and Type | Method and Description |
---|---|
List<Acknowledgeable> |
findAcknowledgables(OnmsAcknowledgment ack)
findAcknowledgables
|
Optional<OnmsAcknowledgment> |
findLatestAckForRefId(Integer refId)
findLatestAckForRefId
|
List<OnmsAcknowledgment> |
findLatestAcks(Date from)
findLatestAcks
|
void |
processAck(OnmsAcknowledgment ack)
processAck
|
void |
processAcks(Collection<OnmsAcknowledgment> acks)
processAcks
|
void |
updateAckable(Acknowledgeable ackable)
updateAckable
|
clear, countAll, countMatching, delete, delete, findAll, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, update
List<Acknowledgeable> findAcknowledgables(OnmsAcknowledgment ack)
findAcknowledgables
ack
- a OnmsAcknowledgment
object.List
object.void updateAckable(Acknowledgeable ackable)
updateAckable
ackable
- a Acknowledgeable
object.void processAck(OnmsAcknowledgment ack)
processAck
ack
- a OnmsAcknowledgment
object.void processAcks(Collection<OnmsAcknowledgment> acks)
processAcks
acks
- a Collection
object.List<OnmsAcknowledgment> findLatestAcks(Date from)
findLatestAcks
Finds the latest acknowledgement for each refId. The latest acknowledgement is selected based on the most recent ackTime (and highest Id in the case of multiple occuring at the same time).from
- limit results to acks created on or afterOptional<OnmsAcknowledgment> findLatestAckForRefId(Integer refId)
findLatestAckForRefId
Finds the latest acknowledgement for the given refId. The latest acknowledgement is selected based on the most recent ackTime (and highest Id in the case of multiple occurring at the same time).refId
- the refId to search forCopyright © 2021. All rights reserved.