org.opennms.netmgt.config
Interface EventConfDao

All Known Implementing Classes:
DefaultEventConfDao

public interface EventConfDao


Method Summary
 void addEvent(org.opennms.netmgt.xml.eventconf.Event event)
          Adds the event to the root level event config storage (file).
 void addEventToProgrammaticStore(org.opennms.netmgt.xml.eventconf.Event event)
          Adds the given event to the programmatic event store.
 org.opennms.netmgt.xml.eventconf.Event findByEvent(org.opennms.netmgt.xml.event.Event matchingEvent)
           
 org.opennms.netmgt.xml.eventconf.Event findByUei(String uei)
           
 String getEventLabel(String uei)
           
 Map<String,String> getEventLabels()
           
 List<org.opennms.netmgt.xml.eventconf.Event> getEvents(String uei)
           
 List<org.opennms.netmgt.xml.eventconf.Event> getEventsByLabel()
           
 List<String> getEventUEIs()
           
 boolean isSecureTag(String tag)
           
 void reload()
           
 boolean removeEventFromProgrammaticStore(org.opennms.netmgt.xml.eventconf.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<org.opennms.netmgt.xml.eventconf.Event> getEvents(String uei)

getEventUEIs

List<String> getEventUEIs()

getEventLabels

Map<String,String> getEventLabels()

getEventLabel

String getEventLabel(String uei)

saveCurrent

void saveCurrent()

getEventsByLabel

List<org.opennms.netmgt.xml.eventconf.Event> getEventsByLabel()

addEvent

void addEvent(org.opennms.netmgt.xml.eventconf.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(org.opennms.netmgt.xml.eventconf.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(org.opennms.netmgt.xml.eventconf.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

org.opennms.netmgt.xml.eventconf.Event findByUei(String uei)

findByEvent

org.opennms.netmgt.xml.eventconf.Event findByEvent(org.opennms.netmgt.xml.event.Event matchingEvent)


Copyright ? 2008. All Rights Reserved.