Class MicrosoftAzureTranscriptionService
java.lang.Object
org.opencastproject.job.api.AbstractJobProducer
org.opencastproject.transcription.microsoft.azure.MicrosoftAzureTranscriptionService
- All Implemented Interfaces:
JobProducer,TranscriptionService
public class MicrosoftAzureTranscriptionService
extends AbstractJobProducer
implements TranscriptionService
-
Field Summary
Fields inherited from class org.opencastproject.job.api.AbstractJobProducer
ACCEPT_JOB_LOADS_EXCEEDING_PROPERTY, acceptJobLoadsExeedingMaxLoad, DEFAULT_ACCEPT_JOB_LOADS_EXCEEDING, executor, jobType -
Constructor Summary
ConstructorsConstructorDescriptionA public constructor, required by OSGi. -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) OSGI activate method.createTranscriptionJob(long jobId, String mpId, Track track, String language) voidvoiddeleteTranscription(String mpId, String transcriptionId) voiddeleteTranscriptionSourceFiles(String mpId, String transcriptionId) getGeneratedTranscription(String mpId, String jobId, MediaPackageElement.Type type) protected OrganizationDirectoryServiceReturns a reference to the organization directory service.getReturnValues(String mpId, String jobId) protected SecurityServiceReturns a reference to the security serviceprotected ServiceRegistryReturns a reference to the service registry.protected UserDirectoryServiceReturns a reference to the user directory servicevoidmodified(org.osgi.service.component.ComponentContext cc) protected StringAsks the overriding class to process the arguments using the given operation.voidsetAssetManager(AssetManager service) voidsetDatabase(TranscriptionDatabase service) voidsetOrganizationDirectoryService(OrganizationDirectoryService organizationDirectoryService) voidsetSecurityService(SecurityService securityService) voidsetServiceRegistry(ServiceRegistry serviceRegistry) voidsetUserDirectoryService(UserDirectoryService userDirectoryService) voidsetWorkflowService(WorkflowService service) voidstartTranscription(String mpId, Track track) startTranscription(String mpId, Track track, String... args) voidtranscriptionDone(String mpId, Object results) voidtranscriptionError(String mpId, Object results) Methods inherited from class org.opencastproject.job.api.AbstractJobProducer
acceptJob, countJobs, finallyUpdateJob, getJobType, incident, isReadyToAccept, isReadyToAcceptJobs
-
Constructor Details
-
MicrosoftAzureTranscriptionService
public MicrosoftAzureTranscriptionService()A public constructor, required by OSGi.
-
-
Method Details
-
activate
public void activate(org.osgi.service.component.ComponentContext cc) Description copied from class:AbstractJobProducerOSGI activate method.- Overrides:
activatein classAbstractJobProducer- Parameters:
cc- OSGI component context
-
modified
public void modified(org.osgi.service.component.ComponentContext cc) -
deactivate
public void deactivate() -
process
Description copied from class:AbstractJobProducerAsks the overriding class to process the arguments using the given operation. The result will be added to the associated job as the payload.- Specified by:
processin classAbstractJobProducer- Parameters:
job- the job to process- Returns:
- the operation result
- Throws:
Exception
-
startTranscription
- Specified by:
startTranscriptionin interfaceTranscriptionService- Throws:
TranscriptionServiceException
-
startTranscription
public Job startTranscription(String mpId, Track track, String... args) throws TranscriptionServiceException - Specified by:
startTranscriptionin interfaceTranscriptionService- Throws:
TranscriptionServiceException
-
getGeneratedTranscription
public MediaPackageElement getGeneratedTranscription(String mpId, String jobId, MediaPackageElement.Type type) throws TranscriptionServiceException - Specified by:
getGeneratedTranscriptionin interfaceTranscriptionService- Throws:
TranscriptionServiceException
-
transcriptionDone
- Specified by:
transcriptionDonein interfaceTranscriptionService- Throws:
TranscriptionServiceException
-
transcriptionError
- Specified by:
transcriptionErrorin interfaceTranscriptionService- Throws:
TranscriptionServiceException
-
getLanguage
- Specified by:
getLanguagein interfaceTranscriptionService
-
getReturnValues
public Map<String,Object> getReturnValues(String mpId, String jobId) throws TranscriptionServiceException - Specified by:
getReturnValuesin interfaceTranscriptionService- Throws:
TranscriptionServiceException
-
createTranscriptionJob
public String createTranscriptionJob(long jobId, String mpId, Track track, String language) throws TranscriptionServiceException - Throws:
TranscriptionServiceException
-
deleteTranscription
public void deleteTranscription(String mpId, String transcriptionId) throws TranscriptionServiceException, TranscriptionDatabaseException -
deleteTranscriptionSourceFiles
public void deleteTranscriptionSourceFiles(String mpId, String transcriptionId) throws TranscriptionServiceException - Throws:
TranscriptionServiceException
-
getServiceRegistry
Description copied from class:AbstractJobProducerReturns a reference to the service registry.- Specified by:
getServiceRegistryin classAbstractJobProducer- Returns:
- the service registry
-
getSecurityService
Description copied from class:AbstractJobProducerReturns a reference to the security service- Specified by:
getSecurityServicein classAbstractJobProducer- Returns:
- the security service
-
getUserDirectoryService
Description copied from class:AbstractJobProducerReturns a reference to the user directory service- Specified by:
getUserDirectoryServicein classAbstractJobProducer- Returns:
- the user directory service
-
getOrganizationDirectoryService
Description copied from class:AbstractJobProducerReturns a reference to the organization directory service.- Specified by:
getOrganizationDirectoryServicein classAbstractJobProducer- Returns:
- the organization directory service
-
setServiceRegistry
-
setSecurityService
-
setUserDirectoryService
-
setOrganizationDirectoryService
public void setOrganizationDirectoryService(OrganizationDirectoryService organizationDirectoryService) -
setWorkspace
-
setDatabase
-
setAssetManager
-
setWorkflowService
-