Class 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.container.PortalContainer container)  
    • 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.container.PortalContainer container)
    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface org.picocontainer.Startable
      • stop

        public void stop()
        Specified by:
        stop in interface org.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)
      • getPendingEvents

        @RolesAllowed("users")
        public javax.ws.rs.core.Response getPendingEvents​(List<Long> ownerIds,
                                                          int offset,
                                                          int limit,
                                                          String timeZoneId,
                                                          String expand)