Class MicrosoftAzureTranscriptionService
java.lang.Object
org.opencastproject.job.api.AbstractJobProducer
org.opencastproject.transcription.microsoft.azure.MicrosoftAzureTranscriptionService
- All Implemented Interfaces:
org.opencastproject.job.api.JobProducer,org.opencastproject.transcription.api.TranscriptionService
public class MicrosoftAzureTranscriptionService
extends org.opencastproject.job.api.AbstractJobProducer
implements org.opencastproject.transcription.api.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) createTranscriptionJob(long jobId, String mpId, org.opencastproject.mediapackage.Track track, String language) voidvoiddeleteTranscription(String mpId, String transcriptionId) voiddeleteTranscriptionSourceFiles(String mpId, String transcriptionId) org.opencastproject.mediapackage.MediaPackageElementgetGeneratedTranscription(String mpId, String jobId, org.opencastproject.mediapackage.MediaPackageElement.Type type) protected org.opencastproject.security.api.OrganizationDirectoryServicegetReturnValues(String mpId, String jobId) protected org.opencastproject.security.api.SecurityServiceprotected org.opencastproject.serviceregistry.api.ServiceRegistryprotected org.opencastproject.security.api.UserDirectoryServicevoidmodified(org.osgi.service.component.ComponentContext cc) protected Stringprocess(org.opencastproject.job.api.Job job) voidsetAssetManager(org.opencastproject.assetmanager.api.AssetManager service) voidsetDatabase(org.opencastproject.transcription.persistence.TranscriptionDatabase service) voidsetOrganizationDirectoryService(org.opencastproject.security.api.OrganizationDirectoryService organizationDirectoryService) voidsetSecurityService(org.opencastproject.security.api.SecurityService securityService) voidsetServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) voidsetUserDirectoryService(org.opencastproject.security.api.UserDirectoryService userDirectoryService) voidsetWorkflowService(org.opencastproject.workflow.api.WorkflowService service) voidsetWorkspace(org.opencastproject.workspace.api.Workspace ws) org.opencastproject.job.api.JobstartTranscription(String mpId, org.opencastproject.mediapackage.Track track) org.opencastproject.job.api.JobstartTranscription(String mpId, org.opencastproject.mediapackage.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) - Overrides:
activatein classorg.opencastproject.job.api.AbstractJobProducer
-
modified
public void modified(org.osgi.service.component.ComponentContext cc) -
deactivate
public void deactivate() -
process
- Specified by:
processin classorg.opencastproject.job.api.AbstractJobProducer- Throws:
Exception
-
startTranscription
public org.opencastproject.job.api.Job startTranscription(String mpId, org.opencastproject.mediapackage.Track track) throws org.opencastproject.transcription.api.TranscriptionServiceException - Specified by:
startTranscriptionin interfaceorg.opencastproject.transcription.api.TranscriptionService- Throws:
org.opencastproject.transcription.api.TranscriptionServiceException
-
startTranscription
public org.opencastproject.job.api.Job startTranscription(String mpId, org.opencastproject.mediapackage.Track track, String... args) throws org.opencastproject.transcription.api.TranscriptionServiceException - Specified by:
startTranscriptionin interfaceorg.opencastproject.transcription.api.TranscriptionService- Throws:
org.opencastproject.transcription.api.TranscriptionServiceException
-
getGeneratedTranscription
public org.opencastproject.mediapackage.MediaPackageElement getGeneratedTranscription(String mpId, String jobId, org.opencastproject.mediapackage.MediaPackageElement.Type type) throws org.opencastproject.transcription.api.TranscriptionServiceException - Specified by:
getGeneratedTranscriptionin interfaceorg.opencastproject.transcription.api.TranscriptionService- Throws:
org.opencastproject.transcription.api.TranscriptionServiceException
-
transcriptionDone
public void transcriptionDone(String mpId, Object results) throws org.opencastproject.transcription.api.TranscriptionServiceException - Specified by:
transcriptionDonein interfaceorg.opencastproject.transcription.api.TranscriptionService- Throws:
org.opencastproject.transcription.api.TranscriptionServiceException
-
transcriptionError
public void transcriptionError(String mpId, Object results) throws org.opencastproject.transcription.api.TranscriptionServiceException - Specified by:
transcriptionErrorin interfaceorg.opencastproject.transcription.api.TranscriptionService- Throws:
org.opencastproject.transcription.api.TranscriptionServiceException
-
getLanguage
- Specified by:
getLanguagein interfaceorg.opencastproject.transcription.api.TranscriptionService
-
getReturnValues
public Map<String,Object> getReturnValues(String mpId, String jobId) throws org.opencastproject.transcription.api.TranscriptionServiceException - Specified by:
getReturnValuesin interfaceorg.opencastproject.transcription.api.TranscriptionService- Throws:
org.opencastproject.transcription.api.TranscriptionServiceException
-
createTranscriptionJob
public String createTranscriptionJob(long jobId, String mpId, org.opencastproject.mediapackage.Track track, String language) throws org.opencastproject.transcription.api.TranscriptionServiceException - Throws:
org.opencastproject.transcription.api.TranscriptionServiceException
-
deleteTranscription
public void deleteTranscription(String mpId, String transcriptionId) throws org.opencastproject.transcription.api.TranscriptionServiceException, org.opencastproject.transcription.persistence.TranscriptionDatabaseException - Throws:
org.opencastproject.transcription.api.TranscriptionServiceExceptionorg.opencastproject.transcription.persistence.TranscriptionDatabaseException
-
deleteTranscriptionSourceFiles
public void deleteTranscriptionSourceFiles(String mpId, String transcriptionId) throws org.opencastproject.transcription.api.TranscriptionServiceException - Throws:
org.opencastproject.transcription.api.TranscriptionServiceException
-
getServiceRegistry
protected org.opencastproject.serviceregistry.api.ServiceRegistry getServiceRegistry()- Specified by:
getServiceRegistryin classorg.opencastproject.job.api.AbstractJobProducer
-
getSecurityService
protected org.opencastproject.security.api.SecurityService getSecurityService()- Specified by:
getSecurityServicein classorg.opencastproject.job.api.AbstractJobProducer
-
getUserDirectoryService
protected org.opencastproject.security.api.UserDirectoryService getUserDirectoryService()- Specified by:
getUserDirectoryServicein classorg.opencastproject.job.api.AbstractJobProducer
-
getOrganizationDirectoryService
protected org.opencastproject.security.api.OrganizationDirectoryService getOrganizationDirectoryService()- Specified by:
getOrganizationDirectoryServicein classorg.opencastproject.job.api.AbstractJobProducer
-
setServiceRegistry
public void setServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) -
setSecurityService
public void setSecurityService(org.opencastproject.security.api.SecurityService securityService) -
setUserDirectoryService
public void setUserDirectoryService(org.opencastproject.security.api.UserDirectoryService userDirectoryService) -
setOrganizationDirectoryService
public void setOrganizationDirectoryService(org.opencastproject.security.api.OrganizationDirectoryService organizationDirectoryService) -
setWorkspace
public void setWorkspace(org.opencastproject.workspace.api.Workspace ws) -
setDatabase
public void setDatabase(org.opencastproject.transcription.persistence.TranscriptionDatabase service) -
setAssetManager
public void setAssetManager(org.opencastproject.assetmanager.api.AssetManager service) -
setWorkflowService
public void setWorkflowService(org.opencastproject.workflow.api.WorkflowService service)
-