|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.DefaultEventConfDao
public class DefaultEventConfDao
| Constructor Summary | |
|---|---|
DefaultEventConfDao()
|
|
DefaultEventConfDao(File rootConfigFile)
|
|
DefaultEventConfDao(File rootConfigFile,
File programmaticStoreFile)
|
|
| 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 |
loadConfiguration(File file)
This method is used to load the passed configuration into the currently managed configuration instance. |
protected void |
loadConfiguration(Reader rdr,
File rootConfigFile)
|
void |
reload()
|
boolean |
removeEventFromProgrammaticStore(org.opennms.netmgt.xml.eventconf.Event event)
Removes the given event from the programmatic event store. |
void |
saveCurrent()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultEventConfDao()
public DefaultEventConfDao(File rootConfigFile)
public DefaultEventConfDao(File rootConfigFile,
File programmaticStoreFile)
| Method Detail |
|---|
public void reload()
throws org.springframework.dao.DataAccessException
reload in interface EventConfDaoorg.springframework.dao.DataAccessException
public void loadConfiguration(File file)
throws org.springframework.dao.DataAccessException
file - The file to load.
org.exolab.castor.xml.MarshalException - Thrown if the file does not conform to the schema.
org.exolab.castor.xml.ValidationException - Thrown if the contents do not match the required schema.
java.lang.IOException - Thrown if the file cannot be opened for reading.
org.springframework.dao.DataAccessException
protected void loadConfiguration(Reader rdr,
File rootConfigFile)
throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessExceptionpublic List<org.opennms.netmgt.xml.eventconf.Event> getEvents(String uei)
getEvents in interface EventConfDaopublic List<String> getEventUEIs()
getEventUEIs in interface EventConfDaopublic Map<String,String> getEventLabels()
getEventLabels in interface EventConfDaopublic String getEventLabel(String uei)
getEventLabel in interface EventConfDaopublic void saveCurrent()
saveCurrent in interface EventConfDaopublic List<org.opennms.netmgt.xml.eventconf.Event> getEventsByLabel()
getEventsByLabel in interface EventConfDaopublic void addEvent(org.opennms.netmgt.xml.eventconf.Event event)
EventConfDao
addEvent in interface EventConfDaoevent - The fully configured Event object to add.public void addEventToProgrammaticStore(org.opennms.netmgt.xml.eventconf.Event event)
EventConfDao
addEventToProgrammaticStore in interface EventConfDaoevent - The fully configured Event object to add.public boolean removeEventFromProgrammaticStore(org.opennms.netmgt.xml.eventconf.Event event)
EventConfDao
removeEventFromProgrammaticStore in interface EventConfDaoevent - The fully configured Event object to remove.public boolean isSecureTag(String tag)
isSecureTag in interface EventConfDaopublic org.opennms.netmgt.xml.eventconf.Event findByUei(String uei)
findByUei in interface EventConfDaopublic org.opennms.netmgt.xml.eventconf.Event findByEvent(org.opennms.netmgt.xml.event.Event matchingEvent)
findByEvent in interface EventConfDao
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||