public class EventServiceImpl extends Object implements org.apache.unomi.api.services.EventService
| Constructor and Description |
|---|
EventServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
authenticateThirdPartyServer(String key,
String ip) |
void |
bind(org.osgi.framework.ServiceReference<org.apache.unomi.api.services.EventListenerService> serviceReference) |
org.apache.unomi.api.Event |
getEvent(String id) |
List<org.apache.unomi.api.EventProperty> |
getEventProperties() |
Set<String> |
getEventTypeIds() |
boolean |
hasEventAlreadyBeenRaised(org.apache.unomi.api.Event event) |
boolean |
hasEventAlreadyBeenRaised(org.apache.unomi.api.Event event,
boolean session) |
boolean |
isEventAllowed(org.apache.unomi.api.Event event,
String thirdPartyId) |
void |
removeProfileEvents(String profileId) |
org.apache.unomi.api.PartialList<org.apache.unomi.api.Event> |
search(org.apache.unomi.api.query.Query query) |
org.apache.unomi.api.PartialList<org.apache.unomi.api.Event> |
searchEvents(org.apache.unomi.api.conditions.Condition condition,
int offset,
int size) |
org.apache.unomi.api.PartialList<org.apache.unomi.api.Event> |
searchEvents(String sessionId,
String[] eventTypes,
String query,
int offset,
int size,
String sortBy) |
int |
send(org.apache.unomi.api.Event event) |
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext) |
void |
setDefinitionsService(org.apache.unomi.api.services.DefinitionsService definitionsService) |
void |
setPersistenceService(org.apache.unomi.persistence.spi.PersistenceService persistenceService) |
void |
setPredefinedEventTypeIds(Set<String> predefinedEventTypeIds) |
void |
setRestrictedEventTypeIds(Set<String> restrictedEventTypeIds) |
void |
setThirdPartyConfiguration(Map<String,String> thirdPartyConfiguration) |
void |
unbind(org.osgi.framework.ServiceReference<org.apache.unomi.api.services.EventListenerService> serviceReference) |
public void setThirdPartyConfiguration(Map<String,String> thirdPartyConfiguration)
public void setPersistenceService(org.apache.unomi.persistence.spi.PersistenceService persistenceService)
public void setDefinitionsService(org.apache.unomi.api.services.DefinitionsService definitionsService)
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
public boolean isEventAllowed(org.apache.unomi.api.Event event,
String thirdPartyId)
isEventAllowed in interface org.apache.unomi.api.services.EventServicepublic String authenticateThirdPartyServer(String key, String ip)
authenticateThirdPartyServer in interface org.apache.unomi.api.services.EventServicepublic int send(org.apache.unomi.api.Event event)
send in interface org.apache.unomi.api.services.EventServicepublic List<org.apache.unomi.api.EventProperty> getEventProperties()
getEventProperties in interface org.apache.unomi.api.services.EventServicepublic Set<String> getEventTypeIds()
getEventTypeIds in interface org.apache.unomi.api.services.EventServicepublic org.apache.unomi.api.PartialList<org.apache.unomi.api.Event> searchEvents(org.apache.unomi.api.conditions.Condition condition,
int offset,
int size)
searchEvents in interface org.apache.unomi.api.services.EventServicepublic org.apache.unomi.api.PartialList<org.apache.unomi.api.Event> searchEvents(String sessionId, String[] eventTypes, String query, int offset, int size, String sortBy)
searchEvents in interface org.apache.unomi.api.services.EventServicepublic org.apache.unomi.api.PartialList<org.apache.unomi.api.Event> search(org.apache.unomi.api.query.Query query)
search in interface org.apache.unomi.api.services.EventServicepublic org.apache.unomi.api.Event getEvent(String id)
getEvent in interface org.apache.unomi.api.services.EventServicepublic boolean hasEventAlreadyBeenRaised(org.apache.unomi.api.Event event)
hasEventAlreadyBeenRaised in interface org.apache.unomi.api.services.EventServicepublic boolean hasEventAlreadyBeenRaised(org.apache.unomi.api.Event event,
boolean session)
hasEventAlreadyBeenRaised in interface org.apache.unomi.api.services.EventServicepublic void bind(org.osgi.framework.ServiceReference<org.apache.unomi.api.services.EventListenerService> serviceReference)
public void unbind(org.osgi.framework.ServiceReference<org.apache.unomi.api.services.EventListenerService> serviceReference)
public void removeProfileEvents(String profileId)
removeProfileEvents in interface org.apache.unomi.api.services.EventServiceCopyright © 2014–2023 Apache Software Foundation. All rights reserved.