Record Class RecordingEntity

java.lang.Object
java.lang.Record
org.exoplatform.webconferencing.rest.model.RecordingEntity
Record Components:
documentId - the JCR identifier of the recording's file, the id the documents add-on and its transcription REST take
title - the title displayed in Documents
recordedDate - when the recording was saved, an ISO 8601 instant in UTC
startedDate - when the recording started, an ISO 8601 instant in UTC, or null when its file name does not tell it
sizeBytes - the size of the recording in bytes, -1 when unknown
mimeType - the media type of the recording
durationSeconds - how long the recording lasts, in seconds, or null when its file does not tell it
previewUrl - the link opening the recording in the Documents preview

public record RecordingEntity(String documentId, String title, String recordedDate, String startedDate, long sizeBytes, String mimeType, Long durationSeconds, String previewUrl) extends Record
A recording of a call, as the recordings REST answers it.
  • Constructor Details

    • RecordingEntity

      public RecordingEntity(String documentId, String title, String recordedDate, String startedDate, long sizeBytes, String mimeType, Long durationSeconds, String previewUrl)
      Creates an instance of a RecordingEntity record class.
      Parameters:
      documentId - the value for the documentId record component
      title - the value for the title record component
      recordedDate - the value for the recordedDate record component
      startedDate - the value for the startedDate record component
      sizeBytes - the value for the sizeBytes record component
      mimeType - the value for the mimeType record component
      durationSeconds - the value for the durationSeconds record component
      previewUrl - the value for the previewUrl record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • documentId

      public String documentId()
      Returns the value of the documentId record component.
      Returns:
      the value of the documentId record component
    • title

      public String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • recordedDate

      public String recordedDate()
      Returns the value of the recordedDate record component.
      Returns:
      the value of the recordedDate record component
    • startedDate

      public String startedDate()
      Returns the value of the startedDate record component.
      Returns:
      the value of the startedDate record component
    • sizeBytes

      public long sizeBytes()
      Returns the value of the sizeBytes record component.
      Returns:
      the value of the sizeBytes record component
    • mimeType

      public String mimeType()
      Returns the value of the mimeType record component.
      Returns:
      the value of the mimeType record component
    • durationSeconds

      public Long durationSeconds()
      Returns the value of the durationSeconds record component.
      Returns:
      the value of the durationSeconds record component
    • previewUrl

      public String previewUrl()
      Returns the value of the previewUrl record component.
      Returns:
      the value of the previewUrl record component