org.opennms.netmgt.config
Interface EventConfDao

All Known Implementing Classes:
DefaultEventConfDao

public interface EventConfDao


Method Summary
 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)
           
 Event findByUei(String uei)
           
 String getEventLabel(String uei)
           
 Map<String,String> getEventLabels()
           
 List<Event> getEvents(String uei)
           
 List<Event> getEventsByLabel()
           
 List<String> getEventUEIs()
           
 boolean isSecureTag(String tag)
           
 void reload()
           
 boolean removeEventFromProgrammaticStore(Event event)
          Removes the given event from the programmatic event store.
 void saveCurrent()
           
 

Method Detail

reload

void reload()
            throws org.springframework.dao.DataAccessException
Throws:
org.springframework.dao.DataAccessException

getEvents

List<Event> getEvents(String uei)

getEventUEIs

List<String> getEventUEIs()

getEventLabels

Map<String,String> getEventLabels()

getEventLabel

String getEventLabel(String uei)

saveCurrent

void saveCurrent()

getEventsByLabel

List<Event> getEventsByLabel()

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.

isSecureTag

boolean isSecureTag(String tag)

findByUei

Event findByUei(String uei)

findByEvent

Event findByEvent(Event matchingEvent)


Copyright © 2009. All Rights Reserved.