Class IngestDownloadServiceImpl
java.lang.Object
org.opencastproject.job.api.AbstractJobProducer
org.opencastproject.ingestdownloadservice.impl.IngestDownloadServiceImpl
- All Implemented Interfaces:
org.opencastproject.ingestdownloadservice.api.IngestDownloadService,org.opencastproject.job.api.JobProducer
public class IngestDownloadServiceImpl
extends org.opencastproject.job.api.AbstractJobProducer
implements org.opencastproject.ingestdownloadservice.api.IngestDownloadService
A simple tutorial class to learn about Opencast Services
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.opencastproject.job.api.AbstractJobProducer
ACCEPT_JOB_LOADS_EXCEEDING_PROPERTY, acceptJobLoadsExeedingMaxLoad, DEFAULT_ACCEPT_JOB_LOADS_EXCEEDING, executor, jobTypeFields inherited from interface org.opencastproject.ingestdownloadservice.api.IngestDownloadService
JOB_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new abstract job producer for jobs of the given type. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.opencastproject.security.api.OrganizationDirectoryServiceprotected org.opencastproject.security.api.SecurityServiceprotected org.opencastproject.serviceregistry.api.ServiceRegistryprotected org.opencastproject.security.api.UserDirectoryServiceorg.opencastproject.job.api.JobingestDownload(org.opencastproject.mediapackage.MediaPackage mediaPackage, String sourceFlavors, String sourceTags, boolean deleteExternal, boolean tagsAndFlavor) protected Stringprocess(org.opencastproject.job.api.Job job) voidsetOrganizationDirectoryService(org.opencastproject.security.api.OrganizationDirectoryService organizationDirectory) Sets a reference to the organization directory service.voidsetSecurityService(org.opencastproject.security.api.SecurityService securityService) Callback for setting the security service.voidsetServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) Sets the receipt servicevoidsetUserDirectoryService(org.opencastproject.security.api.UserDirectoryService userDirectoryService) Callback for setting the user directory service.voidsetWorkspace(org.opencastproject.workspace.api.Workspace workspace) Sets the workspace to use.Methods inherited from class org.opencastproject.job.api.AbstractJobProducer
acceptJob, activate, countJobs, finallyUpdateJob, getJobType, incident, isReadyToAccept, isReadyToAcceptJobs
-
Constructor Details
-
IngestDownloadServiceImpl
public IngestDownloadServiceImpl()Creates a new abstract job producer for jobs of the given type.
-
-
Method Details
-
setWorkspace
public void setWorkspace(org.opencastproject.workspace.api.Workspace workspace) Sets the workspace to use.- Parameters:
workspace- the workspace
-
setServiceRegistry
public void setServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) Sets the receipt service- Parameters:
serviceRegistry- the service registry
-
getServiceRegistry
protected org.opencastproject.serviceregistry.api.ServiceRegistry getServiceRegistry()- Specified by:
getServiceRegistryin classorg.opencastproject.job.api.AbstractJobProducer- See Also:
-
getSecurityService
protected org.opencastproject.security.api.SecurityService getSecurityService()- Specified by:
getSecurityServicein classorg.opencastproject.job.api.AbstractJobProducer- See Also:
-
setSecurityService
public void setSecurityService(org.opencastproject.security.api.SecurityService securityService) Callback for setting the security service.- Parameters:
securityService- the securityService to set
-
setUserDirectoryService
public void setUserDirectoryService(org.opencastproject.security.api.UserDirectoryService userDirectoryService) Callback for setting the user directory service.- Parameters:
userDirectoryService- the userDirectoryService to set
-
getUserDirectoryService
protected org.opencastproject.security.api.UserDirectoryService getUserDirectoryService()- Specified by:
getUserDirectoryServicein classorg.opencastproject.job.api.AbstractJobProducer- See Also:
-
getOrganizationDirectoryService
protected org.opencastproject.security.api.OrganizationDirectoryService getOrganizationDirectoryService()- Specified by:
getOrganizationDirectoryServicein classorg.opencastproject.job.api.AbstractJobProducer- See Also:
-
setOrganizationDirectoryService
public void setOrganizationDirectoryService(org.opencastproject.security.api.OrganizationDirectoryService organizationDirectory) Sets a reference to the organization directory service.- Parameters:
organizationDirectory- the organization directory
-
ingestDownload
public org.opencastproject.job.api.Job ingestDownload(org.opencastproject.mediapackage.MediaPackage mediaPackage, String sourceFlavors, String sourceTags, boolean deleteExternal, boolean tagsAndFlavor) throws org.opencastproject.serviceregistry.api.ServiceRegistryException - Specified by:
ingestDownloadin interfaceorg.opencastproject.ingestdownloadservice.api.IngestDownloadService- Throws:
org.opencastproject.serviceregistry.api.ServiceRegistryException
-
process
protected String process(org.opencastproject.job.api.Job job) throws org.opencastproject.mediapackage.MediaPackageException, IOException - Specified by:
processin classorg.opencastproject.job.api.AbstractJobProducer- Throws:
org.opencastproject.mediapackage.MediaPackageExceptionIOException
-