Class CallRecordingRest

java.lang.Object
org.exoplatform.webconferencing.rest.CallRecordingRest

@RestController public class CallRecordingRest extends Object
The recordings of a call, as the viewer can open them in Documents. Served under /webconferencing/rest/.

Every refusal answers a JSON body {"message": "<code>"}, the code being one of the webconferencing.recordings.* message codes of WebConferencingService and RecordingDateUtils.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The prefix of the message codes a refusal may carry.
    static final String
    The message code of a request refused for a reason that has no code.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CallRecordingRest(WebConferencingService webConferencingService)
    Builds the resource.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<?>
    getCallRecordings(jakarta.servlet.http.HttpServletRequest request, String callId, String from, String to)
    Lists the recordings of a call that the user can open, newest first.
    org.springframework.http.ResponseEntity<?>
    getRecordingCall(jakarta.servlet.http.HttpServletRequest request, String documentId)
    Answers the call a recording file was made in, when the user can read the file and it is a stamped call recording.
    org.springframework.http.ResponseEntity<?>
    getRecordingsByConference(jakarta.servlet.http.HttpServletRequest request, String url, String from, String to)
    Lists the recordings of the call a meeting link points to that the user can open, newest first.

    Methods inherited from class Object

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

    • CODE_PREFIX

      public static final String CODE_PREFIX
      The prefix of the message codes a refusal may carry.
      See Also:
    • INVALID_REQUEST

      public static final String INVALID_REQUEST
      The message code of a request refused for a reason that has no code.
      See Also:
  • Constructor Details

    • CallRecordingRest

      @Autowired public CallRecordingRest(WebConferencingService webConferencingService)
      Builds the resource.
      Parameters:
      webConferencingService - the service holding the recordings lookup
  • Method Details

    • getCallRecordings

      @GetMapping("calls/{callId}/recordings") @Secured("users") public org.springframework.http.ResponseEntity<?> getCallRecordings(jakarta.servlet.http.HttpServletRequest request, @PathVariable("callId") String callId, @RequestParam(name="from",required=false) String from, @RequestParam(name="to",required=false) String to)
      Lists the recordings of a call that the user can open, newest first.
      Parameters:
      request - the authenticated request
      callId - the call id
      from - the earliest recording date, ISO 8601
      to - the end of the range, ISO 8601: the server adds its grace
      Returns:
      the recordings
    • getRecordingsByConference

      @GetMapping("recordings/byConference") @Secured("users") public org.springframework.http.ResponseEntity<?> getRecordingsByConference(jakarta.servlet.http.HttpServletRequest request, @RequestParam(name="url",required=false) String url, @RequestParam(name="from",required=false) String from, @RequestParam(name="to",required=false) String to)
      Lists the recordings of the call a meeting link points to that the user can open, newest first.
      Parameters:
      request - the authenticated request
      url - the meeting link, as an agenda event's conference stores it
      from - the earliest recording date, ISO 8601
      to - the end of the range, ISO 8601: the server adds its grace
      Returns:
      the recordings
    • getRecordingCall

      @GetMapping("recordings/documents/{documentId}/call") @Secured("users") public org.springframework.http.ResponseEntity<?> getRecordingCall(jakarta.servlet.http.HttpServletRequest request, @PathVariable("documentId") String documentId)
      Answers the call a recording file was made in, when the user can read the file and it is a stamped call recording.
      Parameters:
      request - the authenticated request
      documentId - the identifier of the file, or of a link to it
      Returns:
      200 with the call, or 204 when the file is not a stamped recording the user can read