Package org.opennms.netmgt.config.api
Interface EventConfDao
-
- All Known Implementing Classes:
DefaultEventConfDao
,MockEventConfDao
,MockEventIpcManager.EmptyEventConfDao
public interface EventConfDao
EventConfDao interface.
- Version:
- $Id: $
- Author:
- ranger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addEvent(Event event)
Adds the event to the root level event config storage (file).void
addEventToProgrammaticStore(Event event)
Adds the given event to the programmatic event store.Event
findByEvent(Event matchingEvent)
findByEventEvent
findByUei(java.lang.String uei)
findByUeijava.lang.String
getEventLabel(java.lang.String uei)
getEventLabeljava.util.Map<java.lang.String,java.lang.String>
getEventLabels()
getEventLabelsjava.util.List<Event>
getEvents(java.lang.String uei)
getEventsjava.util.List<Event>
getEventsByLabel()
getEventsByLabeljava.util.List<java.lang.String>
getEventUEIs()
getEventUEIsEvents
getRootEvents()
getRootEventsboolean
isSecureTag(java.lang.String tag)
isSecureTagvoid
reload()
reloadboolean
removeEventFromProgrammaticStore(Event event)
Removes the given event from the programmatic event store.void
saveCurrent()
saveCurrent
-
-
-
Method Detail
-
reload
void reload() throws org.springframework.dao.DataAccessException
reload
- Throws:
org.springframework.dao.DataAccessException
- if any.
-
getEvents
java.util.List<Event> getEvents(java.lang.String uei)
getEvents
- Parameters:
uei
- aString
object.- Returns:
- a
List
object.
-
getEventUEIs
java.util.List<java.lang.String> getEventUEIs()
getEventUEIs
- Returns:
- a
List
object.
-
getEventLabels
java.util.Map<java.lang.String,java.lang.String> getEventLabels()
getEventLabels
- Returns:
- a
Map
object.
-
getEventLabel
java.lang.String getEventLabel(java.lang.String uei)
getEventLabel
- Parameters:
uei
- aString
object.- Returns:
- a
String
object.
-
saveCurrent
void saveCurrent()
saveCurrent
-
getEventsByLabel
java.util.List<Event> getEventsByLabel()
getEventsByLabel
- Returns:
- a
List
object.
-
addEvent
void addEvent(Event event)
Adds the event to the root level event config storage (file). Does not save (you must save independently with saveCurrent)- Parameters:
event
- The fully configured Event object to add.
-
addEventToProgrammaticStore
void addEventToProgrammaticStore(Event event)
Adds the given event to the programmatic event store. This store currently implemented as a file (referenced from eventconf.xml) The programmatic store is a separate storage area, so that incidental programmatic editing of events (e.g. custom UEIs for thresholds, edited through the Web-UI) does not clutter up the otherwise carefully maintained event files. This method does not save (persist) the changes- Parameters:
event
- The fully configured Event object to add.
-
removeEventFromProgrammaticStore
boolean removeEventFromProgrammaticStore(Event event)
Removes the given event from the programmatic event store. This store currently implemented as a file (referenced from eventconf.xml) The programmatic store is a separate storage area, so that incidental programmatic editing of events (e.g. custom UEIs for thresholds, edited through the Web-UI) does not clutter up the otherwise carefully maintained event files. This method does not save (persist) the changes- Parameters:
event
- The fully configured Event object to remove.- Returns:
- a boolean.
-
isSecureTag
boolean isSecureTag(java.lang.String tag)
isSecureTag
- Parameters:
tag
- aString
object.- Returns:
- a boolean.
-
findByUei
Event findByUei(java.lang.String uei)
findByUei
- Parameters:
uei
- aString
object.- Returns:
- a
Event
object.
-
-