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

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

public class ExtractMetadataProcess
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
ExtractMetadataProcess()
           
 
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[] strings)
          Executes a new Java process with the given WorkItem and WorkflowSession.
protected  void saveMetadata(Node file, ExtractedMetadata metadata, 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

ExtractMetadataProcess

public ExtractMetadataProcess()
Method Detail

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.

execute

public void execute(WorkItem workItem,
                    WorkflowSession workflowSession,
                    String[] strings)
             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.
strings - Process specific arguments can be passed here
Throws:
Exception - Thrown in case something goes wrong during execution.

saveMetadata

protected void saveMetadata(Node file,
                            ExtractedMetadata metadata,
                            Session session)


Copyright © 2009 Day Management AG. All Rights Reserved.