Class ConfigurablePublicationServiceImpl
java.lang.Object
org.opencastproject.job.api.AbstractJobProducer
org.opencastproject.publication.configurable.ConfigurablePublicationServiceImpl
- All Implemented Interfaces:
JobProducer,ConfigurablePublicationService
public class ConfigurablePublicationServiceImpl
extends AbstractJobProducer
implements ConfigurablePublicationService
-
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.publication.api.ConfigurablePublicationService
JOB_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) OSGI activate method.The type of jobs that this producer creates.protected OrganizationDirectoryServiceReturns a reference to the organization directory service.protected SecurityServiceReturns a reference to the security serviceprotected ServiceRegistryReturns a reference to the service registry.protected UserDirectoryServiceReturns a reference to the user directory serviceprotected StringAsks the overriding class to process the arguments using the given operation.replace(MediaPackage mediaPackage, String channelId, Collection<? extends MediaPackageElement> addElements, Set<String> retractElementIds) Replaces media package elements.replaceSync(MediaPackage mediaPackage, String channelId, Collection<? extends MediaPackageElement> addElements, Set<String> retractElementIds) Synchronously replaces media package elements.voidsetDownloadDistributionService(DownloadDistributionService downloadDistributionService) voidsetOrganizationDirectoryService(OrganizationDirectoryService organizationDirectoryService) voidsetSecurityService(SecurityService securityService) voidsetServiceRegistry(ServiceRegistry serviceRegistry) voidsetUserDirectoryService(UserDirectoryService userDirectoryService) Methods inherited from class org.opencastproject.job.api.AbstractJobProducer
acceptJob, countJobs, finallyUpdateJob, incident, isReadyToAccept, isReadyToAcceptJobs
-
Constructor Details
-
ConfigurablePublicationServiceImpl
public ConfigurablePublicationServiceImpl()
-
-
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
-
getJobType
Description copied from class:AbstractJobProducerThe type of jobs that this producer creates.- Specified by:
getJobTypein interfaceJobProducer- Overrides:
getJobTypein classAbstractJobProducer- Returns:
- the job type
- See Also:
-
replace
public Job replace(MediaPackage mediaPackage, String channelId, Collection<? extends MediaPackageElement> addElements, Set<String> retractElementIds) throws PublicationException, MediaPackageException Description copied from interface:ConfigurablePublicationServiceReplaces media package elements.- Specified by:
replacein interfaceConfigurablePublicationService- Parameters:
mediaPackage- the media packagechannelId- the id of the publication channeladdElements- the media package elements to be addedretractElementIds- the ids of the media package elements to be removed- Returns:
- The job
- Throws:
PublicationException- if there was a problem publishing the mediaMediaPackageException- if there was a problem with the mediapackage element
-
replaceSync
public Publication replaceSync(MediaPackage mediaPackage, String channelId, Collection<? extends MediaPackageElement> addElements, Set<String> retractElementIds) throws PublicationException, MediaPackageException Description copied from interface:ConfigurablePublicationServiceSynchronously replaces media package elements.- Specified by:
replaceSyncin interfaceConfigurablePublicationService- Parameters:
mediaPackage- the media packagechannelId- the id of the publication channeladdElements- the media package elements to be addedretractElementIds- the ids of the media package elements to be removed- Returns:
- The publication with the updated media package.
- Throws:
PublicationException- if there was a problem publishing the mediaMediaPackageException- if there was a problem with the mediapackage element
-
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
-
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) -
setDownloadDistributionService
-