Record Class TranscriptionSpeakerEntity

java.lang.Object
java.lang.Record
org.exoplatform.documents.rest.model.TranscriptionSpeakerEntity
Record Components:
speaker - the speaker's number in the transcript
identityId - the person's identity id, null for a guest
username - the person's user name, null for a guest
fullName - the person's full name, or the guest's name
avatarUrl - the person's avatar, null for a guest
guest - true for a guest with no account, named by a plain name

public record TranscriptionSpeakerEntity(String speaker, String identityId, String username, String fullName, String avatarUrl, boolean guest) extends Record
A speaker of a transcript whom someone named, as the REST answers it (EXO-92123): the person or the guest, for every reader of the file to see.
  • Constructor Details

    • TranscriptionSpeakerEntity

      public TranscriptionSpeakerEntity(String speaker, String identityId, String username, String fullName, String avatarUrl, boolean guest)
      Creates an instance of a TranscriptionSpeakerEntity record class.
      Parameters:
      speaker - the value for the speaker record component
      identityId - the value for the identityId record component
      username - the value for the username record component
      fullName - the value for the fullName record component
      avatarUrl - the value for the avatarUrl record component
      guest - the value for the guest 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.
    • speaker

      public String speaker()
      Returns the value of the speaker record component.
      Returns:
      the value of the speaker record component
    • identityId

      public String identityId()
      Returns the value of the identityId record component.
      Returns:
      the value of the identityId record component
    • username

      public String username()
      Returns the value of the username record component.
      Returns:
      the value of the username record component
    • fullName

      public String fullName()
      Returns the value of the fullName record component.
      Returns:
      the value of the fullName record component
    • avatarUrl

      public String avatarUrl()
      Returns the value of the avatarUrl record component.
      Returns:
      the value of the avatarUrl record component
    • guest

      public boolean guest()
      Returns the value of the guest record component.
      Returns:
      the value of the guest record component