com.day.cq.dam.core.process
Class CreateThumbnailProcess

java.lang.Object
  extended by com.day.cq.dam.core.AbstractAssetProcess
      extended by com.day.cq.dam.core.process.CreateThumbnailProcess
All Implemented Interfaces:
JavaProcess, JavaProcessExt

public class CreateThumbnailProcess
extends AbstractAssetProcess

The ExtractMetadataProcess is called in a workflow process step. This process will import metadata, create thumbnails of the respective asset/file.


Field Summary
 
Fields inherited from class com.day.cq.dam.core.AbstractAssetProcess
APPLICATION_OCTETSTREAM_MIMETYPE, mimeTypeService, TYPE_JCR_PATH
 
Constructor Summary
CreateThumbnailProcess()
           
 
Method Summary
 void execute(WorkItem workItem, WorkflowSession workflowSession)
          Executes a new Java process with the given WorkItem and WorkflowSession.
 void execute(WorkItem workItem, WorkflowSession workflowSession, String[] args)
          Executes a new Java process with the given WorkItem and WorkflowSession.
protected  Node getRenditionFolder(String path, Session session)
           
 
Methods inherited from class com.day.cq.dam.core.AbstractAssetProcess
getFile, getMimetype, getNodeFromPayload, getProcessingPath, isNotReadyForProcessing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateThumbnailProcess

public CreateThumbnailProcess()
Method Detail

execute

public void execute(WorkItem workItem,
                    WorkflowSession workflowSession,
                    String[] args)
             throws Exception
Description copied from interface: JavaProcessExt
Executes a new Java process with the given WorkItem and WorkflowSession.

Parameters:
workItem - The WorkItem that defines the newly started JavaProcess.
workflowSession - The WorkflowSession that is used for starting the JavaProcess.
args - Process specific arguments can be passed here
Throws:
Exception - Thrown in case something goes wrong during execution.

execute

public void execute(WorkItem workItem,
                    WorkflowSession workflowSession)
             throws Exception
Description copied from interface: JavaProcess
Executes a new Java process with the given WorkItem and WorkflowSession.

Parameters:
workItem - The WorkItem that defines the newly started JavaProcess.
workflowSession - The WorkflowSession that is used for starting the JavaProcess.
Throws:
Exception - Thrown in case something goes wrong during execution.

getRenditionFolder

protected Node getRenditionFolder(String path,
                                  Session session)
                           throws RepositoryException
Throws:
RepositoryException


Copyright © 2009 Day Management AG. All Rights Reserved.