public class MockEventConfDao extends Object implements EventConfDao, org.springframework.beans.factory.InitializingBean
| Constructor and Description | 
|---|
MockEventConfDao()  | 
| 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 
 | 
String | 
getEventLabel(String uei)
getEventLabel 
 | 
Map<String,String> | 
getEventLabels()
getEventLabels 
 | 
List<Event> | 
getEvents(String uei)
getEvents 
 | 
List<Event> | 
getEventsByLabel()
getEventsByLabel 
 | 
List<String> | 
getEventUEIs()
getEventUEIs 
 | 
org.springframework.core.io.Resource | 
getResource()  | 
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 | 
setResource(org.springframework.core.io.Resource resource)  | 
public void setResource(org.springframework.core.io.Resource resource)
public org.springframework.core.io.Resource getResource()
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic 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.Copyright © 2020. All rights reserved.