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 Summary
ConstructorsConstructorDescriptionRecordingOutlineReader(org.exoplatform.documents.service.DocumentFileService documentFileService, org.exoplatform.social.core.manager.IdentityManager identityManager) Builds the reader. -
Method Summary
Modifier and TypeMethodDescriptionlonggetIdentityId(String username) The identity id of a user, the one the Documents reads take.readOutline(String documentId, long identityId) The outline of a recording's transcript: its chapters and its speakers' names.
-
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 transcriptsidentityManager- the service resolving the users who speak
-
-
Method Details
-
getIdentityId
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
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 documentidentityId- the identity id of the user listing the recordings- Returns:
- the outline,
RecordingOutlineModel.EMPTYwhen there is none
-