|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.dao.castor.AbstractCastorConfigDao<Events,org.opennms.netmgt.config.EventConfiguration>
org.opennms.netmgt.config.DefaultEventConfDao
public class DefaultEventConfDao
DefaultEventConfDao class.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.opennms.netmgt.dao.castor.AbstractCastorConfigDao |
|---|
AbstractCastorConfigDao.CastorReloadCallback |
| Constructor Summary | |
|---|---|
DefaultEventConfDao()
Constructor for DefaultEventConfDao. |
|
| 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. |
void |
afterPropertiesSet()
afterPropertiesSet |
protected String |
createLoadedLogMessage(org.opennms.netmgt.config.EventConfiguration translatedConfig,
long diffTime)
createLoadedLogMessage |
Event |
findByEvent(Event matchingEvent)
findByEvent |
Event |
findByUei(String uei)
findByUei |
String |
getEventLabel(String uei)
getEventLabel |
Map<String,String> |
getEventLabels()
getEventLabels |
List<Event> |
getEvents(String uei)
getEvents |
List<Event> |
getEventsByLabel()
getEventsByLabel |
List<String> |
getEventUEIs()
getEventUEIs |
String |
getProgrammaticStoreRelativeUrl()
getProgrammaticStoreRelativeUrl |
boolean |
isSecureTag(String tag)
isSecureTag |
void |
reload()
reload |
boolean |
removeEventFromProgrammaticStore(Event event)
Removes the given event from the programmatic event store. |
void |
saveCurrent()
saveCurrent |
void |
setProgrammaticStoreRelativeUrl(String programmaticStoreRelativeUrl)
setProgrammaticStoreRelativeUrl |
org.opennms.netmgt.config.EventConfiguration |
translateConfig(Events events)
translateConfig |
| Methods inherited from class org.opennms.netmgt.dao.castor.AbstractCastorConfigDao |
|---|
getConfigResource, getContainer, getDescription, getReloadCheckInterval, loadConfig, log, setConfigResource, setReloadCheckInterval |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultEventConfDao()
Constructor for DefaultEventConfDao.
| Method Detail |
|---|
protected String createLoadedLogMessage(org.opennms.netmgt.config.EventConfiguration translatedConfig,
long diffTime)
createLoadedLogMessage
createLoadedLogMessage in class AbstractCastorConfigDao<Events,org.opennms.netmgt.config.EventConfiguration>translatedConfig - a V object.diffTime - a long.
String object.
public void reload()
throws org.springframework.dao.DataAccessException
reload
reload in interface EventConfDaoorg.springframework.dao.DataAccessException - if any.
public void afterPropertiesSet()
throws org.springframework.dao.DataAccessException
afterPropertiesSet
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class AbstractCastorConfigDao<Events,org.opennms.netmgt.config.EventConfiguration>org.springframework.dao.DataAccessException
public org.opennms.netmgt.config.EventConfiguration translateConfig(Events events)
throws org.springframework.dao.DataAccessException
translateConfig
translateConfig in class AbstractCastorConfigDao<Events,org.opennms.netmgt.config.EventConfiguration>events - a K object.
org.springframework.dao.DataAccessExceptionpublic List<Event> getEvents(String uei)
getEvents
getEvents in interface EventConfDaouei - a String object.
List object.public List<String> getEventUEIs()
getEventUEIs
getEventUEIs in interface EventConfDaoList object.public Map<String,String> getEventLabels()
getEventLabels
getEventLabels in interface EventConfDaoMap object.public String getEventLabel(String uei)
getEventLabel
getEventLabel in interface EventConfDaouei - a String object.
String object.public void saveCurrent()
saveCurrent
saveCurrent in interface EventConfDaopublic List<Event> getEventsByLabel()
getEventsByLabel
getEventsByLabel in interface EventConfDaoList object.public void addEvent(Event event)
addEvent in interface EventConfDaoevent - The fully configured Event object to add.public void addEventToProgrammaticStore(Event event)
addEventToProgrammaticStore in interface EventConfDaoevent - The fully configured Event object to add.public boolean removeEventFromProgrammaticStore(Event event)
removeEventFromProgrammaticStore in interface EventConfDaoevent - The fully configured Event object to remove.
public boolean isSecureTag(String tag)
isSecureTag
isSecureTag in interface EventConfDaotag - a String object.
public Event findByUei(String uei)
findByUei
findByUei in interface EventConfDaouei - a String object.
Event object.public Event findByEvent(Event matchingEvent)
findByEvent
findByEvent in interface EventConfDaomatchingEvent - a Event object.
Event object.public String getProgrammaticStoreRelativeUrl()
getProgrammaticStoreRelativeUrl
String object.public void setProgrammaticStoreRelativeUrl(String programmaticStoreRelativeUrl)
setProgrammaticStoreRelativeUrl
programmaticStoreRelativeUrl - a String object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||