public class DefaultEventConfDao extends Object implements EventConfDao, org.springframework.beans.factory.InitializingBean
| Constructor and Description | 
|---|
DefaultEventConfDao()  | 
| Modifier and Type | Method and 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. 
 | 
void | 
afterPropertiesSet()  | 
Event | 
findByEvent(Event matchingEvent)
findByEvent 
 | 
Event | 
findByUei(String uei)
findByUei 
 | 
List<Event> | 
getAllEvents()  | 
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()  | 
Events | 
getRootEvents()
getRootEvents 
 | 
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 | 
setConfigResource(org.springframework.core.io.Resource configResource)  | 
void | 
setProgrammaticStoreRelativeUrl(String programmaticStoreRelativeUrl)  | 
public String getProgrammaticStoreRelativeUrl()
public void setProgrammaticStoreRelativeUrl(String programmaticStoreRelativeUrl)
public void reload()
            throws org.springframework.dao.DataAccessException
EventConfDaoreload
reload in interface EventConfDaoorg.springframework.dao.DataAccessException - if any.public List<Event> getEvents(String uei)
EventConfDaogetEvents
getEvents in interface EventConfDaouei - a String object.List object.public List<String> getEventUEIs()
EventConfDaogetEventUEIs
getEventUEIs in interface EventConfDaoList object.public Map<String,String> getEventLabels()
EventConfDaogetEventLabels
getEventLabels in interface EventConfDaoMap object.public String getEventLabel(String uei)
EventConfDaogetEventLabel
getEventLabel in interface EventConfDaouei - a String object.String object.public void saveCurrent()
EventConfDaosaveCurrent
saveCurrent in interface EventConfDaopublic List<Event> getEventsByLabel()
EventConfDaogetEventsByLabel
getEventsByLabel in interface EventConfDaoList object.public void addEvent(Event event)
EventConfDaoaddEvent in interface EventConfDaoevent - The fully configured Event object to add.public void addEventToProgrammaticStore(Event event)
EventConfDaoaddEventToProgrammaticStore in interface EventConfDaoevent - The fully configured Event object to add.public boolean removeEventFromProgrammaticStore(Event event)
EventConfDaoremoveEventFromProgrammaticStore in interface EventConfDaoevent - The fully configured Event object to remove.public boolean isSecureTag(String tag)
EventConfDaoisSecureTag
isSecureTag in interface EventConfDaotag - a String object.public Event findByUei(String uei)
EventConfDaofindByUei
findByUei in interface EventConfDaouei - a String object.Event object.public Event findByEvent(Event matchingEvent)
EventConfDaofindByEvent
findByEvent in interface EventConfDaomatchingEvent - a Event object.Event object.public Events getRootEvents()
EventConfDaogetRootEvents
getRootEvents in interface EventConfDaoEvents object.public void setConfigResource(org.springframework.core.io.Resource configResource)
                       throws IOException
IOExceptionpublic void afterPropertiesSet()
                        throws org.springframework.dao.DataAccessException
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanorg.springframework.dao.DataAccessExceptionCopyright © 2020. All rights reserved.