public class AlarmRepositoryHibernate extends Object implements AlarmRepository, org.springframework.beans.factory.InitializingBean
DaoWebAlarmRepository class.
| Constructor and Description |
|---|
AlarmRepositoryHibernate() |
| 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,
OnmsCriteria criteria)
Acknowledge alarms matching a specific criteria.
|
void |
afterPropertiesSet() |
void |
clearAlarms(int[] alarmIds,
String user,
Date timestamp)
Clear Alarms
|
int |
countMatchingAlarms(OnmsCriteria criteria)
Count alarms matching a criteria.
|
int[] |
countMatchingAlarmsBySeverity(OnmsCriteria 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.
|
OnmsAlarm |
getAlarm(int alarmId)
Gets and alarm.
|
List<AlarmSummary> |
getCurrentNodeAlarmSummaries()
Gets the current node alarm summaries.
|
List<SituationSummary> |
getCurrentSituationSummaries()
Gets the current node alarm summaries.
|
OnmsAlarm[] |
getMatchingAlarms(OnmsCriteria 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(OnmsCriteria 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.InitializingBeanException@Transactional public void acknowledgeAll(String user, Date timestamp)
acknowledgeAll in interface AlarmRepositoryuser - the usertimestamp - the timestamp@Transactional public void acknowledgeAlarms(String user, Date timestamp, int[] alarmIds)
@Transactional public void acknowledgeMatchingAlarms(String user, Date timestamp, OnmsCriteria criteria)
acknowledgeMatchingAlarms in interface AlarmRepositoryuser - the usertimestamp - the timestampcriteria - the criteria@Transactional
public void clearAlarms(int[] alarmIds,
String user,
Date timestamp)
clearAlarms in interface AlarmRepositoryalarmIds - an array of alarms IDuser - the usertimestamp - the timestamp@Transactional public int countMatchingAlarms(OnmsCriteria criteria)
countMatchingAlarms in interface AlarmRepositorycriteria - the criteria@Transactional public int[] countMatchingAlarmsBySeverity(OnmsCriteria criteria)
countMatchingAlarmsBySeverity in interface AlarmRepositorycriteria - the criteria@Transactional
public void escalateAlarms(int[] alarmIds,
String user,
Date timestamp)
escalateAlarms in interface AlarmRepositoryalarmIds - an array of alarms IDuser - the usertimestamp - the timestamp@Transactional public OnmsAlarm getAlarm(int alarmId)
getAlarm in interface AlarmRepositoryalarmId - the alarm id@Transactional public OnmsAlarm[] getMatchingAlarms(OnmsCriteria criteria)
getMatchingAlarms in interface AlarmRepositorycriteria - the criteria@Transactional public void unacknowledgeAll(String user)
unacknowledgeAll in interface AlarmRepositoryuser - the user@Transactional public void unacknowledgeMatchingAlarms(OnmsCriteria criteria, String user)
unacknowledgeMatchingAlarms in interface AlarmRepositorycriteria - the criteriauser - the user@Transactional
public void acknowledgeAlarms(int[] alarmIds,
String user,
Date timestamp)
acknowledgeAlarms in interface AlarmRepositoryalarmIds - an array of alarms IDuser - the usertimestamp - the timestamp@Transactional
public void unacknowledgeAlarms(int[] alarmIds,
String user)
unacknowledgeAlarms in interface AlarmRepositoryalarmIds - an array of alarms IDuser - the user@Transactional public void updateStickyMemo(Integer alarmId, String body, String user)
updateStickyMemo in interface AlarmRepositoryalarmId - 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 AlarmRepositoryalarmId - the alarm idbody - the bodyuser - the user@Transactional public void removeStickyMemo(Integer alarmId)
removeStickyMemo in interface AlarmRepositoryalarmId - the alarm id@Transactional public void removeReductionKeyMemo(int alarmId)
removeReductionKeyMemo in interface AlarmRepositoryalarmId - the alarm id@Transactional public List<OnmsAcknowledgment> getAcknowledgments(int alarmId)
AlarmRepositorygetAcknowledgments in interface AlarmRepositoryalarmId - the alarm id@Transactional public List<AlarmSummary> getCurrentNodeAlarmSummaries()
AlarmRepositorygetCurrentNodeAlarmSummaries in interface AlarmRepository@Transactional public List<SituationSummary> getCurrentSituationSummaries()
AlarmRepositorygetCurrentSituationSummaries in interface AlarmRepositoryCopyright © 2022. All rights reserved.