Package org.exoplatform.agenda.rest
Class AgendaEventRest
- java.lang.Object
-
- org.exoplatform.agenda.rest.AgendaEventRest
-
- All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer,org.picocontainer.Startable
public class AgendaEventRest extends Object implements org.exoplatform.services.rest.resource.ResourceContainer, org.picocontainer.Startable
-
-
Constructor Summary
Constructors Constructor Description AgendaEventRest(org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.portal.config.UserPortalConfigService portalConfigService, org.exoplatform.agenda.service.AgendaCalendarService agendaCalendarService, org.exoplatform.agenda.service.AgendaEventService agendaEventService, org.exoplatform.agenda.service.AgendaEventConferenceService agendaEventConferenceService, org.exoplatform.agenda.service.AgendaRemoteEventService agendaRemoteEventService, org.exoplatform.agenda.service.AgendaEventDatePollService agendaEventDatePollService, org.exoplatform.agenda.service.AgendaEventReminderService agendaEventReminderService, org.exoplatform.agenda.service.AgendaEventAttendeeService agendaEventAttendeeService, org.exoplatform.agenda.service.AgendaEventGuestService agendaEventGuestService, org.exoplatform.container.PortalContainer container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsecreateEvent(String timeZoneId, org.exoplatform.agenda.rest.model.EventEntity eventEntity)javax.ws.rs.core.ResponsedeleteEvent(long eventId, long delay, String timeZoneId)javax.ws.rs.core.ResponsedismissEventDateOption(long eventId, long dateOptionId)javax.ws.rs.core.ResponsegetDatePolls(List<Long> ownerIds, int offset, int limit, String start, String end, String timeZoneId, String expand)javax.ws.rs.core.ResponsegetEventById(long eventId, String expand, String timeZoneId, boolean firstOccurrence)javax.ws.rs.core.ResponsegetEventExceptionalOccurrences(long parentEventId, String expand, String timeZoneId)javax.ws.rs.core.ResponsegetEventOccurrence(long parentEventId, String occurrenceId, String expand, String timeZoneId)javax.ws.rs.core.ResponsegetEventRemindersById(long eventId)javax.ws.rs.core.ResponsegetEventResponse(long eventId, String occurrenceId, String token)javax.ws.rs.core.ResponsegetEvents(List<Long> ownerIds, long attendeeIdentityId, String expand, String start, String end, String timeZoneId, int limit, List<org.exoplatform.agenda.constant.EventAttendeeResponse> responseTypes)javax.ws.rs.core.ResponsegetPendingEvents(List<Long> ownerIds, int offset, int limit, String timeZoneId, String expand)javax.ws.rs.core.ResponsesaveEventReminders(long eventId, String occurrenceId, boolean upcoming, List<org.exoplatform.agenda.model.EventReminder> reminders)javax.ws.rs.core.Responsesearch(String query, String timeZoneId, String expand, int offset, int limit)javax.ws.rs.core.ResponseselectEventDateOption(long eventId, long dateOptionId)javax.ws.rs.core.ResponsesendEventResponse(long eventId, String occurrenceId, String responseString, boolean upcoming, String token, boolean redirect)voidstart()voidstop()javax.ws.rs.core.ResponseundoDeleteEvent(long eventId)javax.ws.rs.core.ResponseupdateEvent(org.exoplatform.agenda.rest.model.EventEntity eventEntity, String timeZoneId)javax.ws.rs.core.ResponseupdateEventFields(long eventId, boolean updateAllOccurrences, boolean sendInvitations, String timeZoneId, javax.ws.rs.core.MultivaluedMap<String,String> eventFields)javax.ws.rs.core.ResponsevoteEvent(long eventId, List<Long> dateOptionId)javax.ws.rs.core.ResponsevoteEventDateOption(long eventId, long dateOptionId)
-
-
-
Constructor Detail
-
AgendaEventRest
public AgendaEventRest(org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.portal.config.UserPortalConfigService portalConfigService, org.exoplatform.agenda.service.AgendaCalendarService agendaCalendarService, org.exoplatform.agenda.service.AgendaEventService agendaEventService, org.exoplatform.agenda.service.AgendaEventConferenceService agendaEventConferenceService, org.exoplatform.agenda.service.AgendaRemoteEventService agendaRemoteEventService, org.exoplatform.agenda.service.AgendaEventDatePollService agendaEventDatePollService, org.exoplatform.agenda.service.AgendaEventReminderService agendaEventReminderService, org.exoplatform.agenda.service.AgendaEventAttendeeService agendaEventAttendeeService, org.exoplatform.agenda.service.AgendaEventGuestService agendaEventGuestService, org.exoplatform.container.PortalContainer container)
-
-
Method Detail
-
start
public void start()
- Specified by:
startin interfaceorg.picocontainer.Startable
-
stop
public void stop()
- Specified by:
stopin interfaceorg.picocontainer.Startable
-
getEvents
@RolesAllowed("users") public javax.ws.rs.core.Response getEvents(List<Long> ownerIds, long attendeeIdentityId, String expand, String start, String end, String timeZoneId, int limit, List<org.exoplatform.agenda.constant.EventAttendeeResponse> responseTypes)
-
getEventById
@RolesAllowed("users") public javax.ws.rs.core.Response getEventById(long eventId, String expand, String timeZoneId, boolean firstOccurrence)
-
getEventOccurrence
@RolesAllowed("users") public javax.ws.rs.core.Response getEventOccurrence(long parentEventId, String occurrenceId, String expand, String timeZoneId)
-
getEventExceptionalOccurrences
@RolesAllowed("users") public javax.ws.rs.core.Response getEventExceptionalOccurrences(long parentEventId, String expand, String timeZoneId)
-
createEvent
@RolesAllowed("users") public javax.ws.rs.core.Response createEvent(String timeZoneId, org.exoplatform.agenda.rest.model.EventEntity eventEntity)
-
updateEvent
@RolesAllowed("users") public javax.ws.rs.core.Response updateEvent(org.exoplatform.agenda.rest.model.EventEntity eventEntity, String timeZoneId)
-
updateEventFields
@RolesAllowed("users") public javax.ws.rs.core.Response updateEventFields(long eventId, boolean updateAllOccurrences, boolean sendInvitations, String timeZoneId, javax.ws.rs.core.MultivaluedMap<String,String> eventFields)
-
deleteEvent
@RolesAllowed("users") public javax.ws.rs.core.Response deleteEvent(long eventId, long delay, String timeZoneId)
-
undoDeleteEvent
@RolesAllowed("users") public javax.ws.rs.core.Response undoDeleteEvent(long eventId)
-
selectEventDateOption
@RolesAllowed("users") public javax.ws.rs.core.Response selectEventDateOption(long eventId, long dateOptionId)
-
getEventRemindersById
@RolesAllowed("users") public javax.ws.rs.core.Response getEventRemindersById(long eventId)
-
saveEventReminders
@RolesAllowed("users") public javax.ws.rs.core.Response saveEventReminders(long eventId, String occurrenceId, boolean upcoming, List<org.exoplatform.agenda.model.EventReminder> reminders)
-
getEventResponse
public javax.ws.rs.core.Response getEventResponse(long eventId, String occurrenceId, String token)
-
voteEvent
@RolesAllowed("users") public javax.ws.rs.core.Response voteEvent(long eventId, List<Long> dateOptionId)
-
voteEventDateOption
@RolesAllowed("users") public javax.ws.rs.core.Response voteEventDateOption(long eventId, long dateOptionId)
-
dismissEventDateOption
@RolesAllowed("users") public javax.ws.rs.core.Response dismissEventDateOption(long eventId, long dateOptionId)
-
sendEventResponse
public javax.ws.rs.core.Response sendEventResponse(long eventId, String occurrenceId, String responseString, boolean upcoming, String token, boolean redirect)
-
search
@RolesAllowed("users") public javax.ws.rs.core.Response search(String query, String timeZoneId, String expand, int offset, int limit) throws Exception- Throws:
Exception
-
getDatePolls
@RolesAllowed("users") public javax.ws.rs.core.Response getDatePolls(List<Long> ownerIds, int offset, int limit, String start, String end, String timeZoneId, String expand)
-
-