com.day.cq.dam.core
Class AbstractAssetProcess

java.lang.Object
  extended by com.day.cq.dam.core.AbstractAssetProcess
All Implemented Interfaces:
JavaProcess, JavaProcessExt
Direct Known Subclasses:
CreateSubAssetsProcess, CreateThumbnailProcess, DeleteAssetProcess, DeleteDamAssetProcess, ExtractMetadataProcess, SyncAssetProcess

public abstract class AbstractAssetProcess
extends Object
implements JavaProcessExt

The AbstractAssetProcess class ...


Field Summary
static Object APPLICATION_OCTETSTREAM_MIMETYPE
           
protected  org.apache.sling.commons.mime.MimeTypeService mimeTypeService
           
static String TYPE_JCR_PATH
           
 
Constructor Summary
AbstractAssetProcess()
           
 
Method Summary
protected  Node getFile(Node asset)
           
protected  String getMimetype(Node file)
           
protected  Node getNodeFromPayload(WorkItem item, Session session)
           
protected  String getProcessingPath(Node file)
          TODO
protected  boolean isNotReadyForProcessing(Node asset)
          This method is a temporary solution to workaround the mac webdav behaviour which breaks the post processing stuff
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.day.cq.workflow.exec.JavaProcessExt
execute
 
Methods inherited from interface com.day.cq.workflow.exec.JavaProcess
execute
 

Field Detail

TYPE_JCR_PATH

public static final String TYPE_JCR_PATH
See Also:
Constant Field Values

mimeTypeService

protected org.apache.sling.commons.mime.MimeTypeService mimeTypeService

APPLICATION_OCTETSTREAM_MIMETYPE

public static final Object APPLICATION_OCTETSTREAM_MIMETYPE
Constructor Detail

AbstractAssetProcess

public AbstractAssetProcess()
Method Detail

getNodeFromPayload

protected Node getNodeFromPayload(WorkItem item,
                                  Session session)

getMimetype

protected String getMimetype(Node file)

isNotReadyForProcessing

protected boolean isNotReadyForProcessing(Node asset)
                                   throws RepositoryException
This method is a temporary solution to workaround the mac webdav behaviour which breaks the post processing stuff

Parameters:
asset -
Returns:
Throws:
RepositoryException

getProcessingPath

protected String getProcessingPath(Node file)
                            throws RepositoryException
TODO

Parameters:
file -
Returns:
Throws:
RepositoryException

getFile

protected Node getFile(Node asset)
                throws RepositoryException
Throws:
RepositoryException


Copyright © 2009 Day Management AG. All Rights Reserved.