@RestController public class TaskAttachmentCollectionResource extends TaskBaseResource
| Modifier and Type | Field and Description |
|---|---|
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
historyService, restResponseFactory, taskService| Constructor and Description |
|---|
TaskAttachmentCollectionResource() |
| Modifier and Type | Method and Description |
|---|---|
AttachmentResponse |
createAttachment(String taskId,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected AttachmentResponse |
createBinaryAttachment(org.springframework.web.multipart.MultipartHttpServletRequest request,
org.activiti.engine.task.Task task,
javax.servlet.http.HttpServletResponse response) |
protected AttachmentResponse |
createSimpleAttachment(AttachmentRequest attachmentRequest,
org.activiti.engine.task.Task task) |
List<AttachmentResponse> |
getAttachments(String taskId,
javax.servlet.http.HttpServletRequest request) |
addProcessvariables, addTaskvariables, getDelegationState, getHistoricTaskFromRequest, getTaskFromRequest, getTasksFromQueryRequest, populateTaskFromRequest@Autowired protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
@RequestMapping(value="/runtime/tasks/{taskId}/attachments",
method=GET,
produces="application/json")
public List<AttachmentResponse> getAttachments(@PathVariable
String taskId,
javax.servlet.http.HttpServletRequest request)
@RequestMapping(value="/runtime/tasks/{taskId}/attachments",
method=POST,
produces="application/json")
public AttachmentResponse createAttachment(@PathVariable
String taskId,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
protected AttachmentResponse createSimpleAttachment(AttachmentRequest attachmentRequest, org.activiti.engine.task.Task task)
protected AttachmentResponse createBinaryAttachment(org.springframework.web.multipart.MultipartHttpServletRequest request, org.activiti.engine.task.Task task, javax.servlet.http.HttpServletResponse response)
Copyright © 2016 Alfresco. All rights reserved.