public class MockAcknowledgmentDao extends AbstractMockDao<OnmsAcknowledgment,Integer> implements AcknowledgmentDao
AbstractMockDao.NullEventForwarder
Constructor and Description |
---|
MockAcknowledgmentDao() |
Modifier and Type | Method and Description |
---|---|
List<Acknowledgeable> |
findAcknowledgables(OnmsAcknowledgment ack)
findAcknowledgables
|
Optional<OnmsAcknowledgment> |
findLatestAckForRefId(Integer refId)
findLatestAckForRefId
|
List<OnmsAcknowledgment> |
findLatestAcks(Date from)
findLatestAcks
|
protected void |
generateId(OnmsAcknowledgment ack) |
Integer |
getId(OnmsAcknowledgment ack) |
void |
processAck(OnmsAcknowledgment ack)
processAck
|
void |
processAcks(Collection<OnmsAcknowledgment> acks)
processAcks
|
void |
updateAckable(Acknowledgeable ackable)
updateAckable
|
afterPropertiesSet, clear, countAll, countMatching, countMatching, delete, delete, findAll, findMatching, findMatching, flush, get, getAlarmAssociationDao, getAlarmDao, getAssetRecordDao, getCategoryDao, getDistPollerDao, getEventDao, getIpInterfaceDao, getMonitoredServiceDao, getMonitoringLocationDao, getNodeDao, getServiceRegistry, getServiceTypeDao, getSnmpInterfaceDao, initialize, load, lock, save, saveOrUpdate, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, countAll, countMatching, delete, delete, findAll, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, update
protected void generateId(OnmsAcknowledgment ack)
generateId
in class AbstractMockDao<OnmsAcknowledgment,Integer>
public Integer getId(OnmsAcknowledgment ack)
getId
in class AbstractMockDao<OnmsAcknowledgment,Integer>
public List<Acknowledgeable> findAcknowledgables(OnmsAcknowledgment ack)
AcknowledgmentDao
findAcknowledgables
findAcknowledgables
in interface AcknowledgmentDao
ack
- a OnmsAcknowledgment
object.List
object.public void updateAckable(Acknowledgeable ackable)
AcknowledgmentDao
updateAckable
updateAckable
in interface AcknowledgmentDao
ackable
- a Acknowledgeable
object.public void processAck(OnmsAcknowledgment ack)
AcknowledgmentDao
processAck
processAck
in interface AcknowledgmentDao
ack
- a OnmsAcknowledgment
object.public void processAcks(Collection<OnmsAcknowledgment> acks)
AcknowledgmentDao
processAcks
processAcks
in interface AcknowledgmentDao
acks
- a Collection
object.public List<OnmsAcknowledgment> findLatestAcks(Date from)
AcknowledgmentDao
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).findLatestAcks
in interface AcknowledgmentDao
from
- limit results to acks created on or afterpublic Optional<OnmsAcknowledgment> findLatestAckForRefId(Integer refId)
AcknowledgmentDao
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).findLatestAckForRefId
in interface AcknowledgmentDao
refId
- the refId to search forCopyright © 2021. All rights reserved.