public abstract class AbstractCoverImageService
extends org.opencastproject.job.api.AbstractJobProducer
implements org.opencastproject.coverimage.CoverImageService
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractCoverImageService.Operation
List of available operations on jobs
|
| Modifier and Type | Field and Description |
|---|---|
protected static String |
COVERIMAGE_WORKSPACE_COLLECTION |
protected org.opencastproject.security.api.OrganizationDirectoryService |
organizationDirectoryService
The organization directory service
|
protected org.opencastproject.security.api.SecurityService |
securityService
The security service
|
protected org.opencastproject.serviceregistry.api.ServiceRegistry |
serviceRegistry
The service registry service
|
protected org.opencastproject.security.api.UserDirectoryService |
userDirectoryService
The user directory service
|
protected org.opencastproject.workspace.api.Workspace |
workspace
The workspace service
|
| Constructor and Description |
|---|
AbstractCoverImageService()
Creates a new composer service instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected File |
createTempFile(org.opencastproject.job.api.Job job,
String suffix) |
org.opencastproject.job.api.Job |
generateCoverImage(String xml,
String xsl,
String width,
String height,
String posterImageUri,
String targetFlavor) |
protected org.opencastproject.mediapackage.Attachment |
generateCoverImageInternal(org.opencastproject.job.api.Job job,
String xml,
String xsl,
int width,
int height,
String posterImage,
String targetFlavor) |
protected static Document |
parseXsl(String xsl) |
protected String |
process(org.opencastproject.job.api.Job job) |
protected static void |
rasterizeSvg(File svgSource,
File pngResult) |
protected static void |
transformSvg(Result svg,
Source xmlSource,
Document xslDoc,
int width,
int height,
String posterImage) |
protected static final String COVERIMAGE_WORKSPACE_COLLECTION
protected org.opencastproject.workspace.api.Workspace workspace
protected org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry
protected org.opencastproject.security.api.SecurityService securityService
protected org.opencastproject.security.api.UserDirectoryService userDirectoryService
protected org.opencastproject.security.api.OrganizationDirectoryService organizationDirectoryService
public AbstractCoverImageService()
protected String process(org.opencastproject.job.api.Job job) throws Exception
process in class org.opencastproject.job.api.AbstractJobProducerExceptionpublic org.opencastproject.job.api.Job generateCoverImage(String xml, String xsl, String width, String height, String posterImageUri, String targetFlavor) throws org.opencastproject.coverimage.CoverImageException
generateCoverImage in interface org.opencastproject.coverimage.CoverImageServiceorg.opencastproject.coverimage.CoverImageExceptionprotected org.opencastproject.mediapackage.Attachment generateCoverImageInternal(org.opencastproject.job.api.Job job,
String xml,
String xsl,
int width,
int height,
String posterImage,
String targetFlavor)
throws org.opencastproject.coverimage.CoverImageException
org.opencastproject.coverimage.CoverImageExceptionprotected static Document parseXsl(String xsl) throws org.opencastproject.coverimage.CoverImageException
org.opencastproject.coverimage.CoverImageExceptionprotected static void transformSvg(Result svg, Source xmlSource, Document xslDoc, int width, int height, String posterImage) throws TransformerFactoryConfigurationError, org.opencastproject.coverimage.CoverImageException
TransformerFactoryConfigurationErrororg.opencastproject.coverimage.CoverImageExceptionprotected File createTempFile(org.opencastproject.job.api.Job job, String suffix) throws org.opencastproject.coverimage.CoverImageException
org.opencastproject.coverimage.CoverImageExceptionCopyright © 2009–2020 Opencast Project. All rights reserved.