public class DaoWebAlarmRepository extends Object implements WebAlarmRepository, org.springframework.beans.factory.InitializingBean
DaoWebAlarmRepository class.
Constructor and Description |
---|
DaoWebAlarmRepository() |
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeAlarms(int[] alarmIds,
String user,
Date timestamp)
Acknowledge Alarms.
|
void |
acknowledgeAlarms(String user,
Date timestamp,
int[] alarmIds) |
void |
acknowledgeAll(String user,
Date timestamp)
Acknowledge all the alarms.
|
void |
acknowledgeMatchingAlarms(String user,
Date timestamp,
AlarmCriteria criteria)
Acknowledge alarms matching a specific criteria.
|
void |
afterPropertiesSet() |
void |
clearAlarms(int[] alarmIds,
String user,
Date timestamp)
Clear Alarms
|
int |
countMatchingAlarms(AlarmCriteria criteria)
Count alarms matching a criteria.
|
int[] |
countMatchingAlarmsBySeverity(AlarmCriteria criteria)
Count alarms by severity matching a specific criteria.
|
void |
escalateAlarms(int[] alarmIds,
String user,
Date timestamp)
Escalate Alarms.
|
List<OnmsAcknowledgment> |
getAcknowledgments(int alarmId)
Gets the acknowledgments.
|
Alarm |
getAlarm(int alarmId)
Gets and alarm.
|
List<AlarmSummary> |
getCurrentNodeAlarmSummaries()
Gets the current node alarm summaries.
|
Alarm[] |
getMatchingAlarms(AlarmCriteria criteria)
Gets alarms matching a specific criteria.
|
void |
removeReductionKeyMemo(int alarmId)
Removes the reduction key memo.
|
void |
removeStickyMemo(Integer alarmId)
Removes the sticky memo.
|
void |
unacknowledgeAlarms(int[] alarmIds,
String user)
Unacknowledge Alarms
|
void |
unacknowledgeAll(String user)
Unacknowledge all the alarms.
|
void |
unacknowledgeMatchingAlarms(AlarmCriteria criteria,
String user)
Unacknowledge Matching Alarms
|
void |
updateReductionKeyMemo(Integer alarmId,
String body,
String user)
Updates the ReductionKeyMemo of the alarm to persistence.
|
void |
updateStickyMemo(Integer alarmId,
String body,
String user)
Updates the StickyMemo of the alarm to persistence.
|
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
@Transactional public void acknowledgeAll(String user, Date timestamp)
acknowledgeAll
in interface WebAlarmRepository
user
- the usertimestamp
- the timestamp@Transactional public void acknowledgeAlarms(String user, Date timestamp, int[] alarmIds)
@Transactional public void acknowledgeMatchingAlarms(String user, Date timestamp, AlarmCriteria criteria)
acknowledgeMatchingAlarms
in interface WebAlarmRepository
user
- the usertimestamp
- the timestampcriteria
- the criteria@Transactional public void clearAlarms(int[] alarmIds, String user, Date timestamp)
clearAlarms
in interface WebAlarmRepository
alarmIds
- an array of alarms IDuser
- the usertimestamp
- the timestamp@Transactional public int countMatchingAlarms(AlarmCriteria criteria)
countMatchingAlarms
in interface WebAlarmRepository
criteria
- the criteria@Transactional public int[] countMatchingAlarmsBySeverity(AlarmCriteria criteria)
countMatchingAlarmsBySeverity
in interface WebAlarmRepository
criteria
- the criteria@Transactional public void escalateAlarms(int[] alarmIds, String user, Date timestamp)
escalateAlarms
in interface WebAlarmRepository
alarmIds
- an array of alarms IDuser
- the usertimestamp
- the timestamp@Transactional public Alarm getAlarm(int alarmId)
getAlarm
in interface WebAlarmRepository
alarmId
- the alarm id@Transactional public Alarm[] getMatchingAlarms(AlarmCriteria criteria)
getMatchingAlarms
in interface WebAlarmRepository
criteria
- the criteria@Transactional public void unacknowledgeAll(String user)
unacknowledgeAll
in interface WebAlarmRepository
user
- the user@Transactional public void unacknowledgeMatchingAlarms(AlarmCriteria criteria, String user)
unacknowledgeMatchingAlarms
in interface WebAlarmRepository
criteria
- the criteriauser
- the user@Transactional public void acknowledgeAlarms(int[] alarmIds, String user, Date timestamp)
acknowledgeAlarms
in interface WebAlarmRepository
alarmIds
- an array of alarms IDuser
- the usertimestamp
- the timestamp@Transactional public void unacknowledgeAlarms(int[] alarmIds, String user)
unacknowledgeAlarms
in interface WebAlarmRepository
alarmIds
- an array of alarms IDuser
- the user@Transactional public void updateStickyMemo(Integer alarmId, String body, String user)
updateStickyMemo
in interface WebAlarmRepository
alarmId
- the alarmId of the alarm where the StickyMemo has to be persisted.@Transactional public void updateReductionKeyMemo(Integer alarmId, String body, String user)
updateReductionKeyMemo
in interface WebAlarmRepository
alarmId
- the alarm idbody
- the bodyuser
- the user@Transactional public void removeStickyMemo(Integer alarmId)
removeStickyMemo
in interface WebAlarmRepository
alarmId
- the alarm id@Transactional public void removeReductionKeyMemo(int alarmId)
removeReductionKeyMemo
in interface WebAlarmRepository
alarmId
- the alarm id@Transactional public List<OnmsAcknowledgment> getAcknowledgments(int alarmId)
WebAlarmRepository
getAcknowledgments
in interface WebAlarmRepository
alarmId
- the alarm id@Transactional public List<AlarmSummary> getCurrentNodeAlarmSummaries()
WebAlarmRepository
getCurrentNodeAlarmSummaries
in interface WebAlarmRepository
Copyright © 2015. All Rights Reserved.