Class AgendaConferenceEventRest

java.lang.Object
org.exoplatform.agenda.rest.AgendaConferenceEventRest

@RestController @RequestMapping("conference-event") public class AgendaConferenceEventRest extends Object
Tells which event a web conferencing call was held for, so that what the call left behind, such as a recording, can link to it.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The grace when the caller gives none: the default of web conferencing's occurrence-grace-hours, which files a recording under an occurrence up to that long after its end.
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    AgendaConferenceEventRest(org.exoplatform.agenda.service.AgendaConferenceEventService conferenceEventService, org.exoplatform.social.core.manager.IdentityManager identityManager)
    Builds the resource.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<ConferenceEventEntity>
    getConferenceEvent(jakarta.servlet.http.HttpServletRequest request, String providerType, String callId, String moment, int graceHours)
    Answers the event, or the occurrence of a recurring event, a call was held for at a moment, as AgendaConferenceEventService.getConferenceEvent(String, String, ZonedDateTime, int, long) finds it for the authenticated user.

    Methods inherited from class Object

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

    • INVALID_MOMENT

      public static final String INVALID_MOMENT
      See Also:
    • DEFAULT_GRACE_HOURS

      public static final String DEFAULT_GRACE_HOURS
      The grace when the caller gives none: the default of web conferencing's occurrence-grace-hours, which files a recording under an occurrence up to that long after its end.
      See Also:
  • Constructor Details

    • AgendaConferenceEventRest

      @Autowired public AgendaConferenceEventRest(org.exoplatform.agenda.service.AgendaConferenceEventService conferenceEventService, org.exoplatform.social.core.manager.IdentityManager identityManager)
      Builds the resource.
      Parameters:
      conferenceEventService - finds the event of a call
      identityManager - resolves the authenticated user's identity
  • Method Details

    • getConferenceEvent

      @GetMapping @Secured("users") public org.springframework.http.ResponseEntity<ConferenceEventEntity> getConferenceEvent(jakarta.servlet.http.HttpServletRequest request, @RequestParam("providerType") String providerType, @RequestParam("callId") String callId, @RequestParam("moment") String moment, @RequestParam(name="graceHours",required=false,defaultValue="12") int graceHours)
      Answers the event, or the occurrence of a recurring event, a call was held for at a moment, as AgendaConferenceEventService.getConferenceEvent(String, String, ZonedDateTime, int, long) finds it for the authenticated user.
      Parameters:
      request - the authenticated request, the only source of the reading user's identity
      providerType - the web conferencing provider type
      callId - the call identifier
      moment - when the call was held, ISO-8601 with an offset
      graceHours - how many hours after an occurrence's end the call still belongs to it
      Returns:
      200 with the event, or 204 when the lookup answers no event the user can read in full; never stored by a cache, the answer depending on the reader