Package org.opencastproject.ingest.impl
Class IngestServiceImpl
java.lang.Object
org.opencastproject.job.api.AbstractJobProducer
org.opencastproject.ingest.impl.IngestServiceImpl
- All Implemented Interfaces:
org.opencastproject.ingest.api.IngestService,org.opencastproject.job.api.JobProducer,org.osgi.service.cm.ManagedService
public class IngestServiceImpl
extends org.opencastproject.job.api.AbstractJobProducer
implements org.opencastproject.ingest.api.IngestService, org.osgi.service.cm.ManagedService
Creates and augments Opencast MediaPackages. Stores media into the Working File Repository.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringManaged Property key to allow new flavors of ingested attachments and catalogs to be added to the existing Opencast mediapackage.static final booleanThe default is to preserve existing Opencast flavors during ingest.static final booleanBy default, do not allow event ingest to modify existing series metadatastatic final booleanThe default for force basic authentication even if download host does not ask for itstatic final floatThe approximate load placed on the system by ingesting a filestatic final floatThe approximate load placed on the system by ingesting a zip filestatic final booleanThe default is not to automatically skip attachments and catalogs from capture agentprotected StringThe default workflow identifier, if one is configuredstatic final StringForce basic authentication even if download host does not ask for itstatic final StringThe authentication method for download from external sourcesstatic final StringThe password for download from external sourcesstatic final StringThe source to download fromstatic final StringThe user for download from external sourcesstatic final StringThe key to look for in the service configuration file to override theDEFAULT_INGEST_FILE_JOB_LOADstatic final intThe maximum length of filenames ingested by Opencaststatic final StringMethods that ingest attachments directly create jobs with this operation typestatic final StringMethods that ingest attachments from a URI create jobs with this operation typestatic final StringMethods that ingest catalogs directly create jobs with this operation typestatic final StringMethods that ingest catalogs from a URI create jobs with this operation typestatic final StringMethods that ingest tracks directly create jobs with this operation typestatic final StringMethods that ingest tracks from a URI create jobs with this operation typestatic final StringMethods that ingest zips create jobs with this operation typeprotected booleanOption to overwrite matching flavors (e.g. series and episode metadata) on ingest, tracks are always taken on ingestprotected booleanstatic final Stringstatic final StringThe key for the legacy mediapackage identifierstatic final StringDeprecated.protected org.opencastproject.security.api.OrganizationDirectoryServiceThe organization directory serviceprotected org.opencastproject.security.api.SecurityServiceThe security servicestatic final StringControl if attachments sent by capture agents for scheduled events are skipped.static final StringControl if catalogs sent by capture agents for scheduled events are skipped.protected booleanprotected org.opencastproject.security.api.UserDirectoryServiceThe user directory serviceprotected static final StringThe workflow configuration property prefixprotected static final StringThe configuration key that defines the default workflow definitionstatic final StringThe key to look for in the service configuration file to override theDEFAULT_INGEST_ZIP_JOB_LOADFields 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.ingest.api.IngestService
START_DATE_KEY, UTC_DATE_FORMAT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) OSGI callback for activating this componentorg.opencastproject.mediapackage.MediaPackageaddAttachment(InputStream in, String fileName, org.opencastproject.mediapackage.MediaPackageElementFlavor flavor, String[] tags, org.opencastproject.mediapackage.MediaPackage mediaPackage) org.opencastproject.mediapackage.MediaPackageaddAttachment(InputStream in, String fileName, org.opencastproject.mediapackage.MediaPackageElementFlavor flavor, org.opencastproject.mediapackage.MediaPackage mediaPackage) org.opencastproject.mediapackage.MediaPackageaddAttachment(URI uri, org.opencastproject.mediapackage.MediaPackageElementFlavor flavor, String[] tags, org.opencastproject.mediapackage.MediaPackage mediaPackage) org.opencastproject.mediapackage.MediaPackageaddCatalog(InputStream in, String fileName, org.opencastproject.mediapackage.MediaPackageElementFlavor flavor, String[] tags, org.opencastproject.mediapackage.MediaPackage mediaPackage) org.opencastproject.mediapackage.MediaPackageaddCatalog(InputStream in, String fileName, org.opencastproject.mediapackage.MediaPackageElementFlavor flavor, org.opencastproject.mediapackage.MediaPackage mediaPackage) org.opencastproject.mediapackage.MediaPackageaddCatalog(URI uri, org.opencastproject.mediapackage.MediaPackageElementFlavor flavor, String[] tags, org.opencastproject.mediapackage.MediaPackage mediaPackage) protected URIaddContentToRepo(org.opencastproject.mediapackage.MediaPackage mp, String elementId, URI uri) org.opencastproject.mediapackage.MediaPackageaddPartialTrack(InputStream in, String fileName, org.opencastproject.mediapackage.MediaPackageElementFlavor flavor, long startTime, org.opencastproject.mediapackage.MediaPackage mediaPackage) org.opencastproject.mediapackage.MediaPackageaddPartialTrack(URI uri, org.opencastproject.mediapackage.MediaPackageElementFlavor flavor, long startTime, org.opencastproject.mediapackage.MediaPackage mediaPackage) org.opencastproject.mediapackage.MediaPackageaddTrack(InputStream in, String fileName, org.opencastproject.mediapackage.MediaPackageElementFlavor flavor, String[] tags, org.opencastproject.mediapackage.MediaPackage mediaPackage) org.opencastproject.mediapackage.MediaPackageaddTrack(InputStream in, String fileName, org.opencastproject.mediapackage.MediaPackageElementFlavor flavor, org.opencastproject.mediapackage.MediaPackage mediaPackage) org.opencastproject.mediapackage.MediaPackageaddTrack(URI uri, org.opencastproject.mediapackage.MediaPackageElementFlavor flavor, String[] tags, org.opencastproject.mediapackage.MediaPackage mediaPackage) org.opencastproject.workflow.api.WorkflowInstanceaddZippedMediaPackage(InputStream zipStream) org.opencastproject.workflow.api.WorkflowInstanceaddZippedMediaPackage(InputStream zipStream, String wd, Map<String, String> workflowConfig) org.opencastproject.workflow.api.WorkflowInstanceaddZippedMediaPackage(InputStream zipStream, String workflowDefinitionId, Map<String, String> workflowConfig, Long workflowInstanceId) org.opencastproject.mediapackage.MediaPackageorg.opencastproject.mediapackage.MediaPackagecreateMediaPackage(String mediaPackageId) voidCallback from OSGi on service deactivation.voiddiscardMediaPackage(org.opencastproject.mediapackage.MediaPackage mp) protected org.apache.http.impl.client.CloseableHttpClientprotected org.opencastproject.security.api.OrganizationDirectoryServiceprotected org.opencastproject.security.api.SecurityServiceprotected org.opencastproject.serviceregistry.api.ServiceRegistryprotected org.opencastproject.security.api.UserDirectoryServiceorg.opencastproject.workflow.api.WorkflowInstanceingest(org.opencastproject.mediapackage.MediaPackage mp) org.opencastproject.workflow.api.WorkflowInstanceorg.opencastproject.workflow.api.WorkflowInstanceingest(org.opencastproject.mediapackage.MediaPackage mp, String workflowDefinitionId, Map<String, String> properties, Long workflowInstanceId) protected Stringprocess(org.opencastproject.job.api.Job job) voidschedule(org.opencastproject.mediapackage.MediaPackage mediaPackage, String workflowDefinitionID, Map<String, String> properties) voidsetDublinCoreService(org.opencastproject.metadata.dublincore.DublinCoreCatalogService dublinCoreService) voidsetHttpClient(org.opencastproject.security.api.TrustedHttpClient httpClient) Sets the trusted http clientvoidsetMediaInspectionService(org.opencastproject.inspection.api.MediaInspectionService mediaInspectionService) Sets the media inspection servicevoidsetOrganizationDirectoryService(org.opencastproject.security.api.OrganizationDirectoryService organizationDirectory) Sets a reference to the organization directory service.voidsetSchedulerService(org.opencastproject.scheduler.api.SchedulerService schedulerService) Callback for setting the scheduler service.voidsetSecurityService(org.opencastproject.security.api.SecurityService securityService) Callback for setting the security service.voidsetSeriesService(org.opencastproject.series.api.SeriesService seriesService) voidsetServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) Sets the service registryvoidsetUserDirectoryService(org.opencastproject.security.api.UserDirectoryService userDirectoryService) Callback for setting the user directory service.voidsetWorkflowService(org.opencastproject.workflow.api.WorkflowService workflowService) voidsetWorkingFileRepository(org.opencastproject.workingfilerepository.api.WorkingFileRepository workingFileRepository) voidunsetSchedulerService(org.opencastproject.scheduler.api.SchedulerService schedulerService) voidupdated(Dictionary<String, ?> properties) protected booleanupdateSeries(org.opencastproject.mediapackage.MediaPackage mediaPackage) Updates the persistent representation of a series based on a potentially modified dublin core document.Methods inherited from class org.opencastproject.job.api.AbstractJobProducer
acceptJob, countJobs, finallyUpdateJob, getJobType, incident, isReadyToAccept, isReadyToAcceptJobsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opencastproject.job.api.JobProducer
acceptJob, countJobs, getJobType, isReadyToAccept, isReadyToAcceptJobs
-
Field Details
-
WORKFLOW_DEFINITION_DEFAULT
The configuration key that defines the default workflow definition- See Also:
-
WORKFLOW_CONFIGURATION_PREFIX
The workflow configuration property prefix- See Also:
-
LEGACY_MEDIAPACKAGE_ID_KEY
The key for the legacy mediapackage identifier- See Also:
-
JOB_TYPE
- See Also:
-
INGEST_ZIP
Methods that ingest zips create jobs with this operation type- See Also:
-
INGEST_TRACK
Methods that ingest tracks directly create jobs with this operation type- See Also:
-
INGEST_TRACK_FROM_URI
Methods that ingest tracks from a URI create jobs with this operation type- See Also:
-
INGEST_ATTACHMENT
Methods that ingest attachments directly create jobs with this operation type- See Also:
-
INGEST_ATTACHMENT_FROM_URI
Methods that ingest attachments from a URI create jobs with this operation type- See Also:
-
INGEST_CATALOG
Methods that ingest catalogs directly create jobs with this operation type- See Also:
-
INGEST_CATALOG_FROM_URI
Methods that ingest catalogs from a URI create jobs with this operation type- See Also:
-
DEFAULT_INGEST_FILE_JOB_LOAD
public static final float DEFAULT_INGEST_FILE_JOB_LOADThe approximate load placed on the system by ingesting a file- See Also:
-
DEFAULT_INGEST_ZIP_JOB_LOAD
public static final float DEFAULT_INGEST_ZIP_JOB_LOADThe approximate load placed on the system by ingesting a zip file- See Also:
-
FILE_JOB_LOAD_KEY
The key to look for in the service configuration file to override theDEFAULT_INGEST_FILE_JOB_LOAD- See Also:
-
ZIP_JOB_LOAD_KEY
The key to look for in the service configuration file to override theDEFAULT_INGEST_ZIP_JOB_LOAD- See Also:
-
DOWNLOAD_SOURCE
The source to download from- See Also:
-
DOWNLOAD_USER
The user for download from external sources- See Also:
-
DOWNLOAD_PASSWORD
The password for download from external sources- See Also:
-
DOWNLOAD_AUTH_METHOD
The authentication method for download from external sources- See Also:
-
DOWNLOAD_AUTH_FORCE_BASIC
Force basic authentication even if download host does not ask for it- See Also:
-
DEFAULT_ALLOW_SERIES_MODIFICATIONS
public static final boolean DEFAULT_ALLOW_SERIES_MODIFICATIONSBy default, do not allow event ingest to modify existing series metadata- See Also:
-
DEFAULT_ALLOW_ONLY_NEW_FLAVORS
public static final boolean DEFAULT_ALLOW_ONLY_NEW_FLAVORSThe default is to preserve existing Opencast flavors during ingest.- See Also:
-
DEFAULT_SKIP
public static final boolean DEFAULT_SKIPThe default is not to automatically skip attachments and catalogs from capture agent- See Also:
-
DEFAULT_DOWNLOAD_AUTH_FORCE_BASIC
public static final boolean DEFAULT_DOWNLOAD_AUTH_FORCE_BASICThe default for force basic authentication even if download host does not ask for it- See Also:
-
FILENAME_LENGTH_MAX
public static final int FILENAME_LENGTH_MAXThe maximum length of filenames ingested by Opencast- See Also:
-
MODIFY_OPENCAST_SERIES_KEY
Deprecated.Managed Property key to allow Opencast series modification during ingest Deprecated, the param potentially causes an update chain reaction for all events associated to that series, for each ingest- See Also:
-
ADD_ONLY_NEW_FLAVORS_KEY
Managed Property key to allow new flavors of ingested attachments and catalogs to be added to the existing Opencast mediapackage. But, not catalogs and attachments that would overwrite existing ones in Opencast.- See Also:
-
SKIP_CATALOGS_KEY
Control if catalogs sent by capture agents for scheduled events are skipped.- See Also:
-
SKIP_ATTACHMENTS_KEY
Control if attachments sent by capture agents for scheduled events are skipped.- See Also:
-
securityService
protected org.opencastproject.security.api.SecurityService securityServiceThe security service -
userDirectoryService
protected org.opencastproject.security.api.UserDirectoryService userDirectoryServiceThe user directory service -
organizationDirectoryService
protected org.opencastproject.security.api.OrganizationDirectoryService organizationDirectoryServiceThe organization directory service -
defaultWorkflowDefinionId
The default workflow identifier, if one is configured -
isAddOnlyNew
protected boolean isAddOnlyNewOption to overwrite matching flavors (e.g. series and episode metadata) on ingest, tracks are always taken on ingest -
isAllowModifySeries
protected boolean isAllowModifySeries -
testMode
protected boolean testMode
-
-
Constructor Details
-
IngestServiceImpl
public IngestServiceImpl()Creates a new ingest service instance.
-
-
Method Details
-
activate
public void activate(org.osgi.service.component.ComponentContext cc) OSGI callback for activating this component- Overrides:
activatein classorg.opencastproject.job.api.AbstractJobProducer- Parameters:
cc- the osgi component context
-
deactivate
public void deactivate()Callback from OSGi on service deactivation. -
updated
public void updated(Dictionary<String, ?> properties) throws org.opencastproject.util.ConfigurationException- Specified by:
updatedin interfaceorg.osgi.service.cm.ManagedService- Throws:
org.opencastproject.util.ConfigurationException- See Also:
-
setHttpClient
public void setHttpClient(org.opencastproject.security.api.TrustedHttpClient httpClient) Sets the trusted http client- Parameters:
httpClient- the http client
-
setServiceRegistry
public void setServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) Sets the service registry- Parameters:
serviceRegistry- the serviceRegistry to set
-
setMediaInspectionService
public void setMediaInspectionService(org.opencastproject.inspection.api.MediaInspectionService mediaInspectionService) Sets the media inspection service- Parameters:
mediaInspectionService- the media inspection service to set
-
addZippedMediaPackage
public org.opencastproject.workflow.api.WorkflowInstance addZippedMediaPackage(InputStream zipStream) throws org.opencastproject.ingest.api.IngestException, IOException, org.opencastproject.mediapackage.MediaPackageException - Throws:
org.opencastproject.ingest.api.IngestExceptionIOExceptionorg.opencastproject.mediapackage.MediaPackageException
-
addZippedMediaPackage
public org.opencastproject.workflow.api.WorkflowInstance addZippedMediaPackage(InputStream zipStream, String wd, Map<String, String> workflowConfig) throws org.opencastproject.mediapackage.MediaPackageException, IOException, org.opencastproject.ingest.api.IngestException, org.opencastproject.util.NotFoundException- Specified by:
addZippedMediaPackagein interfaceorg.opencastproject.ingest.api.IngestService- Throws:
org.opencastproject.mediapackage.MediaPackageExceptionIOExceptionorg.opencastproject.ingest.api.IngestExceptionorg.opencastproject.util.NotFoundException
-
addZippedMediaPackage
public org.opencastproject.workflow.api.WorkflowInstance addZippedMediaPackage(InputStream zipStream, String workflowDefinitionId, Map<String, String> workflowConfig, Long workflowInstanceId) throws org.opencastproject.mediapackage.MediaPackageException, IOException, org.opencastproject.ingest.api.IngestException, org.opencastproject.util.NotFoundException, org.opencastproject.security.api.UnauthorizedException- Specified by:
addZippedMediaPackagein interfaceorg.opencastproject.ingest.api.IngestService- Throws:
org.opencastproject.mediapackage.MediaPackageExceptionIOExceptionorg.opencastproject.ingest.api.IngestExceptionorg.opencastproject.util.NotFoundExceptionorg.opencastproject.security.api.UnauthorizedException- See Also:
-
createMediaPackage
public org.opencastproject.mediapackage.MediaPackage createMediaPackage() throws org.opencastproject.mediapackage.MediaPackageException, org.opencastproject.util.ConfigurationException- Specified by:
createMediaPackagein interfaceorg.opencastproject.ingest.api.IngestService- Throws:
org.opencastproject.mediapackage.MediaPackageExceptionorg.opencastproject.util.ConfigurationException- See Also:
-
createMediaPackage
public org.opencastproject.mediapackage.MediaPackage createMediaPackage(String mediaPackageId) throws org.opencastproject.mediapackage.MediaPackageException, org.opencastproject.util.ConfigurationException - Specified by:
createMediaPackagein interfaceorg.opencastproject.ingest.api.IngestService- Throws:
org.opencastproject.mediapackage.MediaPackageExceptionorg.opencastproject.util.ConfigurationException- See Also:
-
addTrack
public org.opencastproject.mediapackage.MediaPackage addTrack(URI uri, org.opencastproject.mediapackage.MediaPackageElementFlavor flavor, String[] tags, org.opencastproject.mediapackage.MediaPackage mediaPackage) throws IOException, org.opencastproject.ingest.api.IngestException - Specified by:
addTrackin interfaceorg.opencastproject.ingest.api.IngestService- Throws:
IOExceptionorg.opencastproject.ingest.api.IngestException- See Also:
-
addTrack
public org.opencastproject.mediapackage.MediaPackage addTrack(InputStream in, String fileName, org.opencastproject.mediapackage.MediaPackageElementFlavor flavor, org.opencastproject.mediapackage.MediaPackage mediaPackage) throws IOException, org.opencastproject.ingest.api.IngestException - Specified by:
addTrackin interfaceorg.opencastproject.ingest.api.IngestService- Throws:
IOExceptionorg.opencastproject.ingest.api.IngestException- See Also:
-
addTrack
public org.opencastproject.mediapackage.MediaPackage addTrack(InputStream in, String fileName, org.opencastproject.mediapackage.MediaPackageElementFlavor flavor, String[] tags, org.opencastproject.mediapackage.MediaPackage mediaPackage) throws IOException, org.opencastproject.ingest.api.IngestException - Specified by:
addTrackin interfaceorg.opencastproject.ingest.api.IngestService- Throws:
IOExceptionorg.opencastproject.ingest.api.IngestException- See Also:
-
addPartialTrack
public org.opencastproject.mediapackage.MediaPackage addPartialTrack(URI uri, org.opencastproject.mediapackage.MediaPackageElementFlavor flavor, long startTime, org.opencastproject.mediapackage.MediaPackage mediaPackage) throws IOException, org.opencastproject.ingest.api.IngestException - Specified by:
addPartialTrackin interfaceorg.opencastproject.ingest.api.IngestService- Throws:
IOExceptionorg.opencastproject.ingest.api.IngestException
-
addPartialTrack
public org.opencastproject.mediapackage.MediaPackage addPartialTrack(InputStream in, String fileName, org.opencastproject.mediapackage.MediaPackageElementFlavor flavor, long startTime, org.opencastproject.mediapackage.MediaPackage mediaPackage) throws IOException, org.opencastproject.ingest.api.IngestException - Specified by:
addPartialTrackin interfaceorg.opencastproject.ingest.api.IngestService- Throws:
IOExceptionorg.opencastproject.ingest.api.IngestException
-
addCatalog
public org.opencastproject.mediapackage.MediaPackage addCatalog(URI uri, org.opencastproject.mediapackage.MediaPackageElementFlavor flavor, String[] tags, org.opencastproject.mediapackage.MediaPackage mediaPackage) throws IOException, org.opencastproject.ingest.api.IngestException - Specified by:
addCatalogin interfaceorg.opencastproject.ingest.api.IngestService- Throws:
IOExceptionorg.opencastproject.ingest.api.IngestException- See Also:
-
updateSeries
protected boolean updateSeries(org.opencastproject.mediapackage.MediaPackage mediaPackage) throws IOException, org.opencastproject.ingest.api.IngestException Updates the persistent representation of a series based on a potentially modified dublin core document.- Parameters:
mediaPackage- the media package containing series metadata and ACLs.- Returns:
- true, if the series is created or overwritten, false if the existing series remains intact.
- Throws:
IOException- if the series catalog was not foundorg.opencastproject.ingest.api.IngestException- if any other exception was encountered
-
addCatalog
public org.opencastproject.mediapackage.MediaPackage addCatalog(InputStream in, String fileName, org.opencastproject.mediapackage.MediaPackageElementFlavor flavor, org.opencastproject.mediapackage.MediaPackage mediaPackage) throws IOException, org.opencastproject.ingest.api.IngestException - Specified by:
addCatalogin interfaceorg.opencastproject.ingest.api.IngestService- Throws:
IOExceptionorg.opencastproject.ingest.api.IngestException- See Also:
-
addCatalog
public org.opencastproject.mediapackage.MediaPackage addCatalog(InputStream in, String fileName, org.opencastproject.mediapackage.MediaPackageElementFlavor flavor, String[] tags, org.opencastproject.mediapackage.MediaPackage mediaPackage) throws IOException, org.opencastproject.ingest.api.IngestException, IllegalArgumentException - Specified by:
addCatalogin interfaceorg.opencastproject.ingest.api.IngestService- Throws:
IOExceptionorg.opencastproject.ingest.api.IngestExceptionIllegalArgumentException- See Also:
-
addAttachment
public org.opencastproject.mediapackage.MediaPackage addAttachment(URI uri, org.opencastproject.mediapackage.MediaPackageElementFlavor flavor, String[] tags, org.opencastproject.mediapackage.MediaPackage mediaPackage) throws IOException, org.opencastproject.ingest.api.IngestException - Specified by:
addAttachmentin interfaceorg.opencastproject.ingest.api.IngestService- Throws:
IOExceptionorg.opencastproject.ingest.api.IngestException- See Also:
-
addAttachment
public org.opencastproject.mediapackage.MediaPackage addAttachment(InputStream in, String fileName, org.opencastproject.mediapackage.MediaPackageElementFlavor flavor, String[] tags, org.opencastproject.mediapackage.MediaPackage mediaPackage) throws IOException, org.opencastproject.ingest.api.IngestException - Specified by:
addAttachmentin interfaceorg.opencastproject.ingest.api.IngestService- Throws:
IOExceptionorg.opencastproject.ingest.api.IngestException- See Also:
-
addAttachment
public org.opencastproject.mediapackage.MediaPackage addAttachment(InputStream in, String fileName, org.opencastproject.mediapackage.MediaPackageElementFlavor flavor, org.opencastproject.mediapackage.MediaPackage mediaPackage) throws IOException, org.opencastproject.ingest.api.IngestException - Specified by:
addAttachmentin interfaceorg.opencastproject.ingest.api.IngestService- Throws:
IOExceptionorg.opencastproject.ingest.api.IngestException- See Also:
-
ingest
public org.opencastproject.workflow.api.WorkflowInstance ingest(org.opencastproject.mediapackage.MediaPackage mp) throws org.opencastproject.ingest.api.IngestException - Specified by:
ingestin interfaceorg.opencastproject.ingest.api.IngestService- Throws:
org.opencastproject.ingest.api.IngestException- See Also:
-
ingest
public org.opencastproject.workflow.api.WorkflowInstance ingest(org.opencastproject.mediapackage.MediaPackage mp, String wd, Map<String, String> properties) throws org.opencastproject.ingest.api.IngestException, org.opencastproject.util.NotFoundException- Specified by:
ingestin interfaceorg.opencastproject.ingest.api.IngestService- Throws:
org.opencastproject.ingest.api.IngestExceptionorg.opencastproject.util.NotFoundException- See Also:
-
ingest
public org.opencastproject.workflow.api.WorkflowInstance ingest(org.opencastproject.mediapackage.MediaPackage mp, String workflowDefinitionId, Map<String, String> properties, Long workflowInstanceId) throws org.opencastproject.ingest.api.IngestException, org.opencastproject.util.NotFoundException, org.opencastproject.security.api.UnauthorizedException- Specified by:
ingestin interfaceorg.opencastproject.ingest.api.IngestService- Throws:
org.opencastproject.ingest.api.IngestExceptionorg.opencastproject.util.NotFoundExceptionorg.opencastproject.security.api.UnauthorizedException- See Also:
-
schedule
public void schedule(org.opencastproject.mediapackage.MediaPackage mediaPackage, String workflowDefinitionID, Map<String, String> properties) throws IllegalStateException, org.opencastproject.ingest.api.IngestException, org.opencastproject.util.NotFoundException, org.opencastproject.security.api.UnauthorizedException, org.opencastproject.scheduler.api.SchedulerException- Specified by:
schedulein interfaceorg.opencastproject.ingest.api.IngestService- Throws:
IllegalStateExceptionorg.opencastproject.ingest.api.IngestExceptionorg.opencastproject.util.NotFoundExceptionorg.opencastproject.security.api.UnauthorizedExceptionorg.opencastproject.scheduler.api.SchedulerException
-
discardMediaPackage
public void discardMediaPackage(org.opencastproject.mediapackage.MediaPackage mp) throws IOException - Specified by:
discardMediaPackagein interfaceorg.opencastproject.ingest.api.IngestService- Throws:
IOException- See Also:
-
addContentToRepo
protected URI addContentToRepo(org.opencastproject.mediapackage.MediaPackage mp, String elementId, URI uri) throws IOException - Throws:
IOException
-
setWorkflowService
public void setWorkflowService(org.opencastproject.workflow.api.WorkflowService workflowService) -
setWorkingFileRepository
public void setWorkingFileRepository(org.opencastproject.workingfilerepository.api.WorkingFileRepository workingFileRepository) -
setSeriesService
public void setSeriesService(org.opencastproject.series.api.SeriesService seriesService) -
setDublinCoreService
public void setDublinCoreService(org.opencastproject.metadata.dublincore.DublinCoreCatalogService dublinCoreService) -
getServiceRegistry
protected org.opencastproject.serviceregistry.api.ServiceRegistry getServiceRegistry()- Specified by:
getServiceRegistryin classorg.opencastproject.job.api.AbstractJobProducer- See Also:
-
process
- Specified by:
processin classorg.opencastproject.job.api.AbstractJobProducer- Throws:
Exception- 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
-
setSchedulerService
public void setSchedulerService(org.opencastproject.scheduler.api.SchedulerService schedulerService) Callback for setting the scheduler service.- Parameters:
schedulerService- the scheduler service to set
-
unsetSchedulerService
public void unsetSchedulerService(org.opencastproject.scheduler.api.SchedulerService schedulerService) -
setOrganizationDirectoryService
public void setOrganizationDirectoryService(org.opencastproject.security.api.OrganizationDirectoryService organizationDirectory) Sets a reference to the organization directory service.- Parameters:
organizationDirectory- the organization directory
-
getSecurityService
protected org.opencastproject.security.api.SecurityService getSecurityService()- Specified by:
getSecurityServicein classorg.opencastproject.job.api.AbstractJobProducer- See Also:
-
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:
-
getAuthedHttpClient
protected org.apache.http.impl.client.CloseableHttpClient getAuthedHttpClient()
-