Class RecordingOutlineReader

java.lang.Object
org.exoplatform.webconferencing.mcp.RecordingOutlineReader

@Component @Profile("mcp-server") @ConditionalOnClass(name="org.exoplatform.documents.service.DocumentFileService") public class RecordingOutlineReader extends Object
Reads what a recording's transcript holds before anyone reads it: its chapters and the names of its speakers, as Documents stores them, with the rights of the user listing the recordings.

Present only when the Documents add-on is: without it, the recordings are listed without an outline.

  • Constructor Details

    • RecordingOutlineReader

      @Autowired public RecordingOutlineReader(org.exoplatform.documents.service.DocumentFileService documentFileService, org.exoplatform.social.core.manager.IdentityManager identityManager)
      Builds the reader.
      Parameters:
      documentFileService - the Documents service storing the transcripts
      identityManager - the service resolving the users who speak
  • Method Details

    • getIdentityId

      public long getIdentityId(String username)
      The identity id of a user, the one the Documents reads take.
      Parameters:
      username - the user's name
      Returns:
      the identity id, or 0 when the user has no identity
    • readOutline

      public RecordingOutlineModel readOutline(String documentId, long identityId)
      The outline of a recording's transcript: its chapters and its speakers' names. Each is read on its own, so a failure on one never takes the other away, and a failure on both gives an empty outline, never an error: the recording is listed all the same.
      Parameters:
      documentId - the id of the recording's document
      identityId - the identity id of the user listing the recordings
      Returns:
      the outline, RecordingOutlineModel.EMPTY when there is none