|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cumulocity.sdk.client.event.EventApiImpl
public class EventApiImpl
Constructor Summary | |
---|---|
EventApiImpl(RestConnector restConnector,
TemplateUrlParser templateUrlParser,
String platformApiUrl)
Deprecated. |
|
EventApiImpl(RestConnector restConnector,
TemplateUrlParser templateUrlParser,
String platformApiUrl,
int pageSize)
|
Method Summary | |
---|---|
EventRepresentation |
create(EventRepresentation representation)
Creates event in the platform. |
void |
delete(EventRepresentation event)
Deletes event from the platform. |
EventRepresentation |
getEvent(GId eventId)
Gets event by id |
PagedCollectionResource<EventCollectionRepresentation> |
getEvents()
Gets the all the event in the platform |
PagedCollectionResource<EventCollectionRepresentation> |
getEventsByFilter(EventFilter filter)
Gets the events from the platform based on specified filter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public EventApiImpl(RestConnector restConnector, TemplateUrlParser templateUrlParser, String platformApiUrl)
public EventApiImpl(RestConnector restConnector, TemplateUrlParser templateUrlParser, String platformApiUrl, int pageSize)
Method Detail |
---|
public EventRepresentation getEvent(GId eventId) throws SDKException
EventApi
getEvent
in interface EventApi
eventId
- id of the event to search for
SDKException
- if the event is not found or if the query failedpublic PagedCollectionResource<EventCollectionRepresentation> getEvents() throws SDKException
EventApi
getEvents
in interface EventApi
SDKException
- if the query failedpublic EventRepresentation create(EventRepresentation representation) throws SDKException
EventApi
create
in interface EventApi
representation
- event to be created
SDKException
- if the event could not be createdpublic void delete(EventRepresentation event) throws SDKException
EventApi
delete
in interface EventApi
event
- to be deleted
SDKException
- if the event could not be deletedpublic PagedCollectionResource<EventCollectionRepresentation> getEventsByFilter(EventFilter filter) throws SDKException
EventApi
getEventsByFilter
in interface EventApi
filter
- the filter criteria(s)
SDKException
- if the query failed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |