Class CoverImageServiceOsgiImpl
java.lang.Object
org.opencastproject.job.api.AbstractJobProducer
org.opencastproject.coverimage.impl.AbstractCoverImageService
org.opencastproject.coverimage.impl.CoverImageServiceOsgiImpl
- All Implemented Interfaces:
CoverImageService,JobProducer
Implementation of
AbstractCoverImageService for use in OSGi environment-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencastproject.coverimage.impl.AbstractCoverImageService
AbstractCoverImageService.Operation -
Field Summary
Fields inherited from class org.opencastproject.coverimage.impl.AbstractCoverImageService
COVERIMAGE_WORKSPACE_COLLECTION, organizationDirectoryService, securityService, serviceRegistry, userDirectoryService, workspaceFields 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.coverimage.CoverImageService
JOB_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) OSGi activation callbackprotected 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 voidsetOrganizationDirectoryService(OrganizationDirectoryService organizationDirectoryService) OSGi callback to set the organization directory serviceprotected voidsetSecurityService(SecurityService securityService) OSGi callback to set the security serviceprotected voidsetServiceRegistry(ServiceRegistry serviceRegistry) OSGi callback to set the service registry serviceprotected voidsetUserDirectoryService(UserDirectoryService userDirectoryService) OSGi callback to set the user directory serviceprotected voidsetWorkspace(Workspace workspace) OSGi callback to set the workspace service.Methods inherited from class org.opencastproject.coverimage.impl.AbstractCoverImageService
createTempFile, generateCoverImage, generateCoverImageInternal, parseXsl, process, rasterizeSvg, transformSvgMethods inherited from class org.opencastproject.job.api.AbstractJobProducer
acceptJob, countJobs, finallyUpdateJob, getJobType, incident, isReadyToAccept, isReadyToAcceptJobs
-
Constructor Details
-
CoverImageServiceOsgiImpl
public CoverImageServiceOsgiImpl()
-
-
Method Details
-
activate
public void activate(org.osgi.service.component.ComponentContext cc) OSGi activation callback- Overrides:
activatein classAbstractJobProducer- Parameters:
cc- the OSGi component context
-
setWorkspace
OSGi callback to set the workspace service.- Parameters:
workspace- the workspace service
-
setServiceRegistry
OSGi callback to set the service registry service- Parameters:
serviceRegistry- the service registry service
-
setSecurityService
OSGi callback to set the security service- Parameters:
securityService- the security service
-
setUserDirectoryService
OSGi callback to set the user directory service- Parameters:
userDirectoryService- the user directory service
-
setOrganizationDirectoryService
protected void setOrganizationDirectoryService(OrganizationDirectoryService organizationDirectoryService) OSGi callback to set the organization directory service- Parameters:
organizationDirectoryService- the organization directory service
-
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
-