Package org.camunda.bpm.engine.impl.cmd
Class CreateAttachmentCmd
- java.lang.Object
-
- org.camunda.bpm.engine.impl.cmd.CreateAttachmentCmd
-
- All Implemented Interfaces:
Command<Attachment>
public class CreateAttachmentCmd extends Object implements Command<Attachment>
- Author:
- Tom Baeyens
-
-
Field Summary
Fields Modifier and Type Field Description protected StringattachmentDescriptionprotected StringattachmentNameprotected StringattachmentTypeprotected InputStreamcontentprotected ExecutionEntityprocessInstanceprotected StringprocessInstanceIdprotected StringtaskIdprotected Stringurl
-
Constructor Summary
Constructors Constructor Description CreateAttachmentCmd(String attachmentType, String taskId, String processInstanceId, String attachmentName, String attachmentDescription, InputStream content, String url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attachmentexecute(CommandContext commandContext)protected HistoricProcessInstanceEventEntitygetHistoricRootProcessInstance(String rootProcessInstanceId)protected StringgetHistoryRemovalTimeStrategy()protected booleanisHistoryRemovalTimeStrategyStart()protected voidprovideRemovalTime(AttachmentEntity attachment)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.Command
isRetryable
-
-
-
-
Field Detail
-
taskId
protected String taskId
-
attachmentType
protected String attachmentType
-
processInstanceId
protected String processInstanceId
-
attachmentName
protected String attachmentName
-
attachmentDescription
protected String attachmentDescription
-
content
protected InputStream content
-
url
protected String url
-
processInstance
protected ExecutionEntity processInstance
-
-
Method Detail
-
execute
public Attachment execute(CommandContext commandContext)
- Specified by:
executein interfaceCommand<Attachment>
-
isHistoryRemovalTimeStrategyStart
protected boolean isHistoryRemovalTimeStrategyStart()
-
getHistoryRemovalTimeStrategy
protected String getHistoryRemovalTimeStrategy()
-
getHistoricRootProcessInstance
protected HistoricProcessInstanceEventEntity getHistoricRootProcessInstance(String rootProcessInstanceId)
-
provideRemovalTime
protected void provideRemovalTime(AttachmentEntity attachment)
-
-