Package org.apache.unomi.rest.endpoints
Class EventServiceEndpoint
java.lang.Object
org.apache.unomi.rest.endpoints.EventServiceEndpoint
A JAX-RS endpoint to access information about the context server's events.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAllows to retrieve event by id.Retrieves the list of event types identifiers that the server has processed.searchEvents
(Query query) Allows to search events using a query.void
setEventService
(EventService eventService)
-
Constructor Details
-
EventServiceEndpoint
public EventServiceEndpoint()
-
-
Method Details
-
setEventService
-
searchEvents
Allows to search events using a query.- Parameters:
query
- the query object to use to search for events. You can specify offset and limits along with a condition tree.- Returns:
- a partial list containing the events that match the query.
-
getEvents
Allows to retrieve event by id.- Parameters:
id
- the event id.- Returns:
Event
with the provided id.
-
getEventTypeNames
Retrieves the list of event types identifiers that the server has processed.- Returns:
- a Set of strings that contain event type identifiers.
-