Interface SessionSPI
- All Known Implementing Classes:
FilteredSession
,SessionImpl
public interface SessionSPI
service provider interface for sessions
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addParticipant
(int idx, Participant participant) Add participant at given indexvoid
addParticipant
(Participant participant) Add a new participantvoid
Add a new transcribervoid
addUserTier
(int idx, TierDescription tierDescription) void
addUserTier
(TierDescription tierDescription) Add a user tiervoid
deleteTierAlignmentRules
(String tier1, String tier2) Get list of blind tier namesGet the corpusgetDate()
Get the transcript dateGet the list of (unmodifiable) languages (if any) for the sessionGet/Set the media file locationGet the metadatagetName()
Get the transcript namegetParticipant
(int idx) Get the participant at the given indexint
Get the number of participantsint
getParticipantIndex
(Participant participant) Get the index of the given participantgetSystemTierParameters
(SystemTierType systemTier) Get tier parameters for system tiergetTierAlignmentRules
(String tier1, String tier2) getTiers()
Get list of all tiers including system tiersGet the tier viewGet the timeline object which is the collection of all timeline tiers.getTranscriber
(int i) Get thei
th transcriber.getTranscriber
(String username) Get transcriber for the specified usernameint
Get the number of transcribersGet the transcript object which is the collection of all comments, gems and records.getUserTier
(int idx) Get user tier for the specified index.int
Number of user-defined tiers for this sessionvoid
putSystemTierParam
(SystemTierType systemTier, String key, String value) Set tier parameter for system tiervoid
putTierAlignmentRules
(TierAlignmentRules tierAlignmentRules) void
removeParticipant
(int idx) Remove a participantvoid
removeParticipant
(Participant participant) Remove a participant.void
removeTranscriber
(int i) Remove thei
th transcribervoid
Remove a transcribervoid
removeTranscriber
(String username) removeUserTier
(int idx) Remove user tierremoveUserTier
(TierDescription tierDescription) void
setBlindTiers
(List<String> blindTiers) Set list of blind tier namesvoid
Set the corpusvoid
Get the transcript datevoid
setLanguages
(List<Language> languages) Set the list of languages for the sessionvoid
setMediaLocation
(String mediaLocation) Media locationvoid
Set the transcript namevoid
setTierView
(List<TierViewItem> view) Set tier view
-
Method Details
-
getCorpus
String getCorpus()Get the corpus -
getName
String getName()Get the transcript name -
getDate
LocalDate getDate()Get the transcript date -
getLanguages
-
setLanguages
-
getMediaLocation
String getMediaLocation()Get/Set the media file location -
getTierView
-
setTierView
-
getTiers
List<TierDescription> getTiers()Get list of all tiers including system tiers- Returns:
- list of all tiers including system tiers and user defined tiers
-
getSystemTierParameters
Get tier parameters for system tier- Parameters:
systemTier
-- Returns:
- unmodifiable tier params for given system tier
-
putSystemTierParam
Set tier parameter for system tier- Parameters:
systemTier
-key
-value
-
-
getUserTierCount
int getUserTierCount()Number of user-defined tiers for this session -
getUserTier
Get user tier for the specified index.- Parameters:
idx
-- Returns:
- tier description
-
removeUserTier
-
removeUserTier
-
addUserTier
Add a user tier -
addUserTier
-
getTierAlignmentRules
List<TierAlignmentRules> getTierAlignmentRules() -
getTierAlignmentRules
-
putTierAlignmentRules
-
deleteTierAlignmentRules
-
getBlindTiers
-
setBlindTiers
Set list of blind tier names- Parameters:
list
- of tier names- Throws:
IllegalArgumentException
- if tier names in list cannot be found in the list of tiers returned by getTiers
-
getTranscriberCount
int getTranscriberCount()Get the number of transcribers -
getTranscriber
Get transcriber for the specified username- Parameters:
username
-- Returns:
-
getTranscriber
-
removeTranscriber
void removeTranscriber(int i) Remove thei
th transcriber- Parameters:
i
-
-
getMetadata
-
getParticipantCount
int getParticipantCount()Get the number of participants- Returns:
- the number of participants
-
addParticipant
-
addParticipant
Add participant at given index- Parameters:
idx
-participant
-
-
getParticipant
Get the participant at the given index- Parameters:
idx
-- Returns:
- the specified participant
-
getParticipantIndex
Get the index of the given participant- Returns:
- index of participant or -1 if not found
-
setCorpus
Set the corpus -
setName
Set the transcript name -
setDate
Get the transcript date -
setMediaLocation
Media location -
addTranscriber
Add a new transcriber -
removeTranscriber
Remove a transcriber -
removeTranscriber
-
removeParticipant
-
removeParticipant
void removeParticipant(int idx) Remove a participant- Parameters:
idx
-
-
getTranscript
Transcript getTranscript()Get the transcript object which is the collection of all comments, gems and records.- Returns:
- transcript object
-
getTimeline
IntervalTiers getTimeline()Get the timeline object which is the collection of all timeline tiers.- Returns:
- timeline object
-