Class RecordingInfo

java.lang.Object
org.exoplatform.webconferencing.model.RecordingInfo

public class RecordingInfo extends Object
A recording of a call, as the viewer who asked for it can open it in Documents. The transcript state is not carried here: it belongs to the documents add-on, which the client asks per recording.
  • Constructor Details

    • RecordingInfo

      public RecordingInfo(String documentId, String title, Date recordedDate, long sizeBytes, String mimeType)
      Builds a recording.
      Parameters:
      documentId - the JCR identifier of the recording's file
      title - the title displayed in Documents
      recordedDate - when the recording was saved
      sizeBytes - the size of the recording, in bytes, or -1 when unknown
      mimeType - the media type of the recording
    • RecordingInfo

      public RecordingInfo(String documentId, String title, Date recordedDate, Date startedDate, long sizeBytes, String mimeType)
      Builds a recording that knows when it started.
      Parameters:
      documentId - the JCR identifier of the recording's file
      title - the title displayed in Documents
      recordedDate - when the recording was saved
      startedDate - when the recording started, or null when unknown
      sizeBytes - the size of the recording, in bytes, or -1 when unknown
      mimeType - the media type of the recording
    • RecordingInfo

      public RecordingInfo(String documentId, String title, Date recordedDate, Date startedDate, long sizeBytes, String mimeType, Long durationSeconds)
      Builds a recording that knows when it started and how long it lasts.
      Parameters:
      documentId - the JCR identifier of the recording's file
      title - the title displayed in Documents
      recordedDate - when the recording was saved
      startedDate - when the recording started, or null when unknown
      sizeBytes - the size of the recording, in bytes, or -1 when unknown
      mimeType - the media type of the recording
      durationSeconds - how long the recording lasts, in seconds, or null when unknown
  • Method Details

    • getDocumentId

      public String getDocumentId()
      Gets the JCR identifier of the recording's file.
      Returns:
      the document id
    • getTitle

      public String getTitle()
      Gets the title displayed in Documents.
      Returns:
      the title
    • getRecordedDate

      public Date getRecordedDate()
      Gets when the recording was saved.
      Returns:
      a copy of the recorded date, or null when unknown
    • getStartedDate

      public Date getStartedDate()
      Gets when the recording started, as the recorder named its file.
      Returns:
      the start, or null when the file name does not tell it
    • getSizeBytes

      public long getSizeBytes()
      Gets the size of the recording.
      Returns:
      the size in bytes, or -1 when unknown
    • getMimeType

      public String getMimeType()
      Gets the media type of the recording.
      Returns:
      the mime type
    • getDurationSeconds

      public Long getDurationSeconds()
      Gets how long the recording lasts, as its file tells it.
      Returns:
      the duration in seconds, or null when unknown
    • getPreviewUrl

      public String getPreviewUrl()
      Gets the link opening the recording in the Documents preview.
      Returns:
      the preview url
    • setPreviewUrl

      public void setPreviewUrl(String previewUrl)
      Sets the link opening the recording in the Documents preview.
      Parameters:
      previewUrl - the preview url