Package com.day.cq.dam.core.process
Class DownloadAssetProcess
- java.lang.Object
 - 
- com.day.cq.dam.commons.process.AbstractAssetWorkflowProcess
 - 
- com.day.cq.dam.core.process.DownloadAssetProcess
 
 
 
- 
- All Implemented Interfaces:
 WorkflowProcess
@Service @Property(name="service.description",value="Download selected asset(s).") @Property(name="process.label",value="Download Dam Asset") public class DownloadAssetProcess extends AbstractAssetWorkflowProcess
TheDownloadAssetProcesswill invoke the downloadasset service to process asset(s) download. 
- 
- 
Field Summary
Fields Modifier and Type Field Description AssetDownloadServiceassetDownloadServiceExternalizerexternalizerSlingRepositoryslingRepository- 
Fields inherited from class com.day.cq.dam.commons.process.AbstractAssetWorkflowProcess
TYPE_JCR_PATH 
 - 
 
- 
Constructor Summary
Constructors Constructor Description DownloadAssetProcess() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaData)Executes a new Java process with the givenandWorkItem.WorkflowSession 
 - 
 
- 
- 
Field Detail
- 
assetDownloadService
@Reference(cardinality=MANDATORY_UNARY, policy=STATIC) public AssetDownloadService assetDownloadService 
- 
externalizer
@Reference(policyOption=GREEDY) public Externalizer externalizer
 
- 
slingRepository
@Reference public SlingRepository slingRepository
 
 - 
 
- 
Method Detail
- 
execute
public void execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaData) throws WorkflowException
Description copied from interface:WorkflowProcessExecutes a new Java process with the givenandWorkItem.WorkflowSession- Parameters:
 workItem- Thethat defines the newly startedWorkItemJavaProcessNew.workflowSession- Thethat is used for starting theWorkflowSessionJavaProcess.metaData- Process specific arguments can be passed here- Throws:
 WorkflowException- Thrown in case something goes wrong during execution.
 
 - 
 
 -