Service class to execute CRUD operations on the Event object.

Method Summary

Modifier and Type Method and Description
EventService getInstance()
EventService getInstance(String version)
void getApiResponse()
List<Event> get(SearchRequest sr)
void getAllEvents(Id contactId)
void getEventsWithChatterGroup(String groupId, Id contactId)
void getEvent(Id eventId)

Method Detail

This class supports the following methods:

global static EventService getInstance()

Get Instance of EventService.


global static EventService getInstance(String version)

Get Instance of EventVersionedService.
Parameters

Name Type Description
version String undefined

global EventService ()

EventService Constructor that should not be called directly.


global static void getApiResponse()

global virtual List<Event> get(SearchRequest sr)

Get list of Event objects using the SearchRequest object as criteria
Parameters

Name Type Description
sr SearchRequest SearchRequest

global List<Event> getAllEvents(Id contactId)

Parameters

Name Type Description
contactId Id undefined

global List<Event> getEventsWithChatterGroup(String groupId, Id contactId)

Parameters

Name Type Description
groupId String undefined
contactId Id undefined

global Event getEvent(Id eventId)

Parameters

Name Type Description
eventId Id undefined