Record Class TranscriptionStateEntity
java.lang.Object
java.lang.Record
org.exoplatform.documents.rest.model.TranscriptionStateEntity
- Record Components:
available- whether a transcription engine is installed; when false, the other fields are empty and no transcript affordance is shownstatus- QUEUED, PROCESSING, DONE or FAILED, or null when the file was never sent to transcriptionprogress- the pieces transcribed out of the pieces to transcribe ("3/9")error- the message code of the last failurelanguage- the ISO-639-1 language of the transcriptdurationSeconds- the duration of the mediaupdated- when the state last changed, in milliseconds since the epochhasSegments- whether the transcript has timed segmentshasChapters- whether the transcript is grouped into chapters (EXO-92122)canRetry- whether the caller may ask to transcribe the file again: anyone who can edit it
public record TranscriptionStateEntity(boolean available, String status, String progress, String error, String language, Long durationSeconds, Long updated, boolean hasSegments, boolean hasChapters, boolean canRetry)
extends Record
The transcription state of a media file as the REST answers it (EXO-92097).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theavailablerecord component.booleancanRetry()Returns the value of thecanRetryrecord component.Returns the value of thedurationSecondsrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.booleanReturns the value of thehasChaptersrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasSegmentsrecord component.language()Returns the value of thelanguagerecord component.progress()Returns the value of theprogressrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.updated()Returns the value of theupdatedrecord component.
-
Constructor Details
-
TranscriptionStateEntity
public TranscriptionStateEntity(boolean available, String status, String progress, String error, String language, Long durationSeconds, Long updated, boolean hasSegments, boolean hasChapters, boolean canRetry) Creates an instance of aTranscriptionStateEntityrecord class.- Parameters:
available- the value for theavailablerecord componentstatus- the value for thestatusrecord componentprogress- the value for theprogressrecord componenterror- the value for theerrorrecord componentlanguage- the value for thelanguagerecord componentdurationSeconds- the value for thedurationSecondsrecord componentupdated- the value for theupdatedrecord componenthasSegments- the value for thehasSegmentsrecord componenthasChapters- the value for thehasChaptersrecord componentcanRetry- the value for thecanRetryrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
available
-
status
-
progress
-
error
-
language
-
durationSeconds
Returns the value of thedurationSecondsrecord component.- Returns:
- the value of the
durationSecondsrecord component
-
updated
-
hasSegments
public boolean hasSegments()Returns the value of thehasSegmentsrecord component.- Returns:
- the value of the
hasSegmentsrecord component
-
hasChapters
public boolean hasChapters()Returns the value of thehasChaptersrecord component.- Returns:
- the value of the
hasChaptersrecord component
-
canRetry
-