EventQueryService

public interface EventQueryService<T>

Interface to query for stored events.

Methods

getAllEventsByParameter

List<T> getAllEventsByParameter(String parameter, String value)

Queries the database for all events that match a given parameter and key- value pair.

Parameters:
  • parameter – the parameter key from the event
  • value – the parameter value from the event
Returns:

a list of informational objects that match the key-value pair

getAllEventsBySubject

List<T> getAllEventsBySubject(String subject)

Queries the database for all events that match a given subject.

Parameters:
  • subject – the subject of the event
Returns:

a list of informational objects that match the event subject

getAllEventsBySubjectAndParameter

List<T> getAllEventsBySubjectAndParameter(String subject, String parameter, String value)

Queries the database for all events that match a given subject and parameter key-value pair.

Parameters:
  • subject – the subject of the event.
  • parameter – the parameter key from the event
  • value – the parameter value from the event
Returns:

a list of informational objects that match the subject as well as the key-value pair