@Test @Transactional @JUnitTemporaryDatabase public void testGetAlarmById(){ Alarm alarm = m_alarmRepo.getAlarm(1); assertNotNull(alarm); assertEquals(1, alarm.id); assertEquals("uei.opennms.org/test", alarm.uei); assertEquals("localhost", alarm.dpName); assertEquals(1, alarm.count); assertEquals(3, alarm.severity.getId()); }
@Transactional public Alarm getAlarm(int alarmId) { return mapOnmsAlarmToAlarm(m_alarmDao.get(alarmId)); }
DaoWebAlarmRepository implements WebAlarmRepository, InitializingBean { @Transactional public Alarm getAlarm(int alarmId) { return mapOnmsAlarmToAlarm(m_alarmDao.get(alarmId)); } }
DaoWebAlarmRepository implements WebAlarmRepository, InitializingBean { @Transactional public Alarm getAlarm(int alarmId) { return mapOnmsAlarmToAlarm(m_alarmDao.get(alarmId)); }  }
DaoWebAlarmRepository implements WebAlarmRepository, InitializingBean { @Transactional public Alarm getAlarm(int alarmId) { return mapOnmsAlarmToAlarm(m_alarmDao.get(alarmId)); }  @Override void afterPropertiesSet(); @Transactional void acknowledgeAll(String user, Date timestamp); @Transactional void acknowledgeAlarms(String user, Date timestamp, int[] alarmIds); @Transactional void acknowledgeMatchingAlarms(String user, Date timestamp, AlarmCriteria criteria); @Transactional void clearAlarms(int[] alarmIds, String user, Date timestamp); @Transactional int countMatchingAlarms(AlarmCriteria criteria); @Transactional int[] countMatchingAlarmsBySeverity(final AlarmCriteria criteria); @Transactional void escalateAlarms(int[] alarmIds, String user, Date timestamp); @Transactional Alarm getAlarm(int alarmId); @Transactional Alarm[] getMatchingAlarms(AlarmCriteria criteria); @Transactional void unacknowledgeAll(String user); @Transactional void unacknowledgeMatchingAlarms(AlarmCriteria criteria, String user); @Transactional void acknowledgeAlarms(int[] alarmIds, String user, Date timestamp); @Transactional void unacknowledgeAlarms(int[] alarmIds, String user); @Override @Transactional void updateStickyMemo(Integer alarmId, String body, String user); @Override @Transactional void updateReductionKeyMemo(Integer alarmId, String body, String user); @Override @Transactional void removeStickyMemo(Integer alarmId); @Override @Transactional void removeReductionKeyMemo(int alarmId); @Override @Transactional List<OnmsAcknowledgment> getAcknowledgments(int alarmId); @Override @Transactional List<AlarmSummary> getCurrentNodeAlarmSummaries(); }
DaoWebAlarmRepository implements WebAlarmRepository, InitializingBean { @Transactional public Alarm getAlarm(int alarmId) { return mapOnmsAlarmToAlarm(m_alarmDao.get(alarmId)); }  @Override void afterPropertiesSet(); @Transactional void acknowledgeAll(String user, Date timestamp); @Transactional void acknowledgeAlarms(String user, Date timestamp, int[] alarmIds); @Transactional void acknowledgeMatchingAlarms(String user, Date timestamp, AlarmCriteria criteria); @Transactional void clearAlarms(int[] alarmIds, String user, Date timestamp); @Transactional int countMatchingAlarms(AlarmCriteria criteria); @Transactional int[] countMatchingAlarmsBySeverity(final AlarmCriteria criteria); @Transactional void escalateAlarms(int[] alarmIds, String user, Date timestamp); @Transactional Alarm getAlarm(int alarmId); @Transactional Alarm[] getMatchingAlarms(AlarmCriteria criteria); @Transactional void unacknowledgeAll(String user); @Transactional void unacknowledgeMatchingAlarms(AlarmCriteria criteria, String user); @Transactional void acknowledgeAlarms(int[] alarmIds, String user, Date timestamp); @Transactional void unacknowledgeAlarms(int[] alarmIds, String user); @Override @Transactional void updateStickyMemo(Integer alarmId, String body, String user); @Override @Transactional void updateReductionKeyMemo(Integer alarmId, String body, String user); @Override @Transactional void removeStickyMemo(Integer alarmId); @Override @Transactional void removeReductionKeyMemo(int alarmId); @Override @Transactional List<OnmsAcknowledgment> getAcknowledgments(int alarmId); @Override @Transactional List<AlarmSummary> getCurrentNodeAlarmSummaries();  }