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.InitializingBean
public void reload() throws org.springframework.dao.DataAccessException
EventConfDao
reload
reload
in interface EventConfDao
org.springframework.dao.DataAccessException
- if any.public List<Event> getEvents(String uei)
EventConfDao
getEvents
getEvents
in interface EventConfDao
uei
- a String
object.List
object.public List<String> getEventUEIs()
EventConfDao
getEventUEIs
getEventUEIs
in interface EventConfDao
List
object.public Map<String,String> getEventLabels()
EventConfDao
getEventLabels
getEventLabels
in interface EventConfDao
Map
object.public String getEventLabel(String uei)
EventConfDao
getEventLabel
getEventLabel
in interface EventConfDao
uei
- a String
object.String
object.public void saveCurrent()
EventConfDao
saveCurrent
saveCurrent
in interface EventConfDao
public List<Event> getEventsByLabel()
EventConfDao
getEventsByLabel
getEventsByLabel
in interface EventConfDao
List
object.public void addEvent(Event event)
EventConfDao
addEvent
in interface EventConfDao
event
- The fully configured Event object to add.public void addEventToProgrammaticStore(Event event)
EventConfDao
addEventToProgrammaticStore
in interface EventConfDao
event
- The fully configured Event object to add.public boolean removeEventFromProgrammaticStore(Event event)
EventConfDao
removeEventFromProgrammaticStore
in interface EventConfDao
event
- The fully configured Event object to remove.public boolean isSecureTag(String tag)
EventConfDao
isSecureTag
isSecureTag
in interface EventConfDao
tag
- a String
object.public Event findByUei(String uei)
EventConfDao
findByUei
findByUei
in interface EventConfDao
uei
- a String
object.Event
object.public Event findByEvent(Event matchingEvent)
EventConfDao
findByEvent
findByEvent
in interface EventConfDao
matchingEvent
- a Event
object.Event
object.public Events getRootEvents()
EventConfDao
getRootEvents
getRootEvents
in interface EventConfDao
Events
object.Copyright © 2021. All rights reserved.