@Service @Property(name="process.label", value="Create Thumbnail") public class CreateThumbnailProcess extends AbstractAssetWorkflowProcess
CreateThumbnailProcess
is called in a Workflow process step. This process will create one or more Thumbnails for the
Asset to be procesed. The Thumbnail generation is delegated to the appropriate AssetHandler
. The thumbails Dimensions are given as the Workflow
Process arguments
Example with the following Workflow step arguments:
[70:70], [80:100:true]
The Process creates two PNG images one of the size of 70x70 pixel and one 80x100 where the result is centred
Modifier and Type | Class and Description |
---|---|
static class |
CreateThumbnailProcess.Arguments
The available arguments to this process implementation.
|
static class |
CreateThumbnailProcess.Config
The parsed configuration for this wf process
|
TYPE_JCR_PATH
Constructor and Description |
---|
CreateThumbnailProcess() |
Modifier and Type | Method and Description |
---|---|
static RenditionTemplate[] |
createRenditionTemplates(Asset asset,
ThumbnailConfig[] thumbnails,
RenditionMaker renditionMaker) |
void |
createThumbnails(Asset asset,
CreateThumbnailProcess.Config config,
RenditionMaker renditionMaker) |
void |
execute(WorkItem workItem,
WorkflowSession workflowSession,
MetaDataMap metaData)
Executes a new Java process with the given
and . |
CreateThumbnailProcess.Config |
parseConfig(MetaDataMap metaData) |
static ThumbnailConfig |
parseThumbnailArguments(java.lang.String arg) |
static ThumbnailConfig[] |
parseThumbnailArguments(java.lang.String[] args) |
public void execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaData) throws WorkflowException
WorkflowProcess
WorkItem
and WorkflowSession
.workItem
- The WorkItem
that defines the newly
started JavaProcessNew
.workflowSession
- The WorkflowSession
that is used for starting the JavaProcess
.metaData
- Process specific arguments can be passed hereWorkflowException
- Thrown in case something goes wrong during execution.public void createThumbnails(Asset asset, CreateThumbnailProcess.Config config, RenditionMaker renditionMaker)
public static RenditionTemplate[] createRenditionTemplates(Asset asset, ThumbnailConfig[] thumbnails, RenditionMaker renditionMaker)
public CreateThumbnailProcess.Config parseConfig(MetaDataMap metaData)
public static ThumbnailConfig[] parseThumbnailArguments(java.lang.String[] args)
public static ThumbnailConfig parseThumbnailArguments(java.lang.String arg)
Copyright © 2010 - 2020 Adobe. All Rights Reserved