use of org.opennms.netmgt.model.OnmsAcknowledgment in project opennms by OpenNMS.
the class DaoWebNotificationRepository method acknowledgeMatchingNotification.
/**
* {@inheritDoc}
*/
@Transactional
@Override
public void acknowledgeMatchingNotification(String user, Date timestamp, NotificationCriteria criteria) {
List<OnmsNotification> notifs = m_notificationDao.findMatching(getOnmsCriteria(criteria));
for (OnmsNotification notif : notifs) {
OnmsAcknowledgment ack = new OnmsAcknowledgment(notif, user);
ack.setAckAction(AckAction.ACKNOWLEDGE);
ack.setAckTime(timestamp);
m_ackDao.processAck(ack);
}
}
Aggregations