Class RecordingInfo
java.lang.Object
org.exoplatform.webconferencing.model.RecordingInfo
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 Summary
ConstructorsConstructorDescriptionRecordingInfo(String documentId, String title, Date recordedDate, long sizeBytes, String mimeType) Builds a recording.RecordingInfo(String documentId, String title, Date recordedDate, Date startedDate, long sizeBytes, String mimeType) Builds a recording that knows when it started.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. -
Method Summary
Modifier and TypeMethodDescriptionGets the JCR identifier of the recording's file.Gets how long the recording lasts, as its file tells it.Gets the media type of the recording.Gets the link opening the recording in the Documents preview.Gets when the recording was saved.longGets the size of the recording.Gets when the recording started, as the recorder named its file.getTitle()Gets the title displayed in Documents.voidsetPreviewUrl(String previewUrl) Sets the link opening the recording in the Documents preview.
-
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 filetitle- the title displayed in DocumentsrecordedDate- when the recording was savedsizeBytes- the size of the recording, in bytes, or -1 when unknownmimeType- 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 filetitle- the title displayed in DocumentsrecordedDate- when the recording was savedstartedDate- when the recording started, or null when unknownsizeBytes- the size of the recording, in bytes, or -1 when unknownmimeType- 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 filetitle- the title displayed in DocumentsrecordedDate- when the recording was savedstartedDate- when the recording started, or null when unknownsizeBytes- the size of the recording, in bytes, or -1 when unknownmimeType- the media type of the recordingdurationSeconds- how long the recording lasts, in seconds, or null when unknown
-
-
Method Details
-
getDocumentId
Gets the JCR identifier of the recording's file.- Returns:
- the document id
-
getTitle
-
getRecordedDate
Gets when the recording was saved.- Returns:
- a copy of the recorded date, or
nullwhen unknown
-
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
-
getDurationSeconds
Gets how long the recording lasts, as its file tells it.- Returns:
- the duration in seconds, or null when unknown
-
getPreviewUrl
Gets the link opening the recording in the Documents preview.- Returns:
- the preview url
-
setPreviewUrl
Sets the link opening the recording in the Documents preview.- Parameters:
previewUrl- the preview url
-