Interface SessionSPI
- All Known Implementing Classes:
FilteredSession,SessionImpl
public interface SessionSPI
service provider interface for sessions
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddParticipant(int idx, Participant participant) Add participant at given indexvoidaddParticipant(Participant participant) Add a new participantvoidAdd a new transcribervoidaddUserTier(int idx, TierDescription tierDescription) voidaddUserTier(TierDescription tierDescription) Add a user tiervoiddeleteTierAlignmentRules(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 indexintGet the number of participantsintgetParticipantIndex(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 theith transcriber.getTranscriber(String username) Get transcriber for the specified usernameintGet 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.intNumber of user-defined tiers for this sessionvoidputSystemTierParam(SystemTierType systemTier, String key, String value) Set tier parameter for system tiervoidputTierAlignmentRules(TierAlignmentRules tierAlignmentRules) voidremoveParticipant(int idx) Remove a participantvoidremoveParticipant(Participant participant) Remove a participant.voidremoveTranscriber(int i) Remove theith transcribervoidRemove a transcribervoidremoveTranscriber(String username) removeUserTier(int idx) Remove user tierremoveUserTier(TierDescription tierDescription) voidsetBlindTiers(List<String> blindTiers) Set list of blind tier namesvoidSet the corpusvoidGet the transcript datevoidsetLanguages(List<Language> languages) Set the list of languages for the sessionvoidsetMediaLocation(String mediaLocation) Media locationvoidSet the transcript namevoidsetTierView(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 theith 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
-