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

    Modifier and Type
    Method
    Description
    javax.ws.rs.core.Response
    createEvent(String timeZoneId, org.exoplatform.agenda.rest.model.EventEntity eventEntity)
     
    javax.ws.rs.core.Response
    deleteEvent(long eventId, long delay, String timeZoneId)
     
    javax.ws.rs.core.Response
    dismissEventDateOption(long eventId, long dateOptionId)
     
    javax.ws.rs.core.Response
    getDatePolls(List<Long> ownerIds, int offset, int limit, String start, String end, String timeZoneId, String expand)
     
    javax.ws.rs.core.Response
    getEventById(long eventId, String expand, String timeZoneId, boolean firstOccurrence)
     
    javax.ws.rs.core.Response
    getEventExceptionalOccurrences(long parentEventId, String expand, String timeZoneId)
     
    javax.ws.rs.core.Response
    getEventOccurrence(long parentEventId, String occurrenceId, String expand, String timeZoneId)
     
    javax.ws.rs.core.Response
    getEventRemindersById(long eventId)
     
    javax.ws.rs.core.Response
    getEventResponse(long eventId, String occurrenceId, String token)
     
    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)
     
    javax.ws.rs.core.Response
    getICSOfEvent(jakarta.servlet.http.HttpServletRequest request, long eventId, String timeZoneId)
     
    javax.ws.rs.core.Response
    getPendingEvents(List<Long> ownerIds, int offset, int limit, String timeZoneId, String expand)
     
    javax.ws.rs.core.Response
    saveEventReminders(long eventId, String occurrenceId, boolean upcoming, List<org.exoplatform.agenda.model.EventReminder> reminders)
     
    javax.ws.rs.core.Response
    search(String query, String timeZoneId, String expand, List<Long> spaceIds, int offset, int limit)
     
    javax.ws.rs.core.Response
    selectEventDateOption(long eventId, long dateOptionId)
     
    javax.ws.rs.core.Response
    sendEventResponse(long eventId, String occurrenceId, String responseString, boolean upcoming, String token, boolean redirect)
     
    void
     
    void
     
    javax.ws.rs.core.Response
    undoDeleteEvent(long eventId)
     
    javax.ws.rs.core.Response
    updateEvent(org.exoplatform.agenda.rest.model.EventEntity eventEntity, String timeZoneId)
     
    javax.ws.rs.core.Response
    updateEventFields(long eventId, boolean updateAllOccurrences, boolean sendInvitations, String timeZoneId, javax.ws.rs.core.MultivaluedMap<String,String> eventFields)
     
    javax.ws.rs.core.Response
    voteEvent(long eventId, List<Long> dateOptionId)
     
    javax.ws.rs.core.Response
    voteEventDateOption(long eventId, long dateOptionId)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • 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 Details

    • 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, List<Long> spaceIds, 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)
    • getICSOfEvent

      @RolesAllowed("users") public javax.ws.rs.core.Response getICSOfEvent(@Context jakarta.servlet.http.HttpServletRequest request, long eventId, String timeZoneId)