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, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, countAll, countMatching, delete, delete, findAll, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, updateprotected 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)
AcknowledgmentDaofindAcknowledgables
findAcknowledgables in interface AcknowledgmentDaoack - a OnmsAcknowledgment object.List object.public void updateAckable(Acknowledgeable ackable)
AcknowledgmentDaoupdateAckable
updateAckable in interface AcknowledgmentDaoackable - a Acknowledgeable object.public void processAck(OnmsAcknowledgment ack)
AcknowledgmentDaoprocessAck
processAck in interface AcknowledgmentDaoack - a OnmsAcknowledgment object.public void processAcks(Collection<OnmsAcknowledgment> acks)
AcknowledgmentDaoprocessAcks
processAcks in interface AcknowledgmentDaoacks - a Collection object.public List<OnmsAcknowledgment> findLatestAcks(Date from)
AcknowledgmentDaofindLatestAcks
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 AcknowledgmentDaofrom - limit results to acks created on or afterpublic Optional<OnmsAcknowledgment> findLatestAckForRefId(Integer refId)
AcknowledgmentDaofindLatestAckForRefId
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 AcknowledgmentDaorefId - the refId to search forCopyright © 2022. All rights reserved.