Class TaskResourceImpl
- java.lang.Object
-
- org.camunda.bpm.engine.rest.sub.task.impl.TaskResourceImpl
-
- All Implemented Interfaces:
TaskResource
public class TaskResourceImpl extends java.lang.Object implements TaskResource
-
-
Field Summary
Fields Modifier and Type Field Description protected ProcessEngine
engine
protected com.fasterxml.jackson.databind.ObjectMapper
objectMapper
protected java.lang.String
rootResourcePath
protected java.lang.String
taskId
static java.util.List<javax.ws.rs.core.Variant>
VARIANTS
-
Constructor Summary
Constructors Constructor Description TaskResourceImpl(ProcessEngine engine, java.lang.String taskId, java.lang.String rootResourcePath, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIdentityLink(IdentityLinkDto identityLink)
void
claim(UserIdDto dto)
javax.ws.rs.core.Response
complete(CompleteTaskDto dto)
void
delegate(UserIdDto delegatedUser)
void
deleteIdentityLink(IdentityLinkDto identityLink)
void
deleteTask(java.lang.String id)
TaskAttachmentResource
getAttachmentResource()
javax.ws.rs.core.Response
getDeployedForm()
FormDto
getForm()
java.util.Map<java.lang.String,VariableValueDto>
getFormVariables(java.lang.String variableNames, boolean deserializeValues)
HalTask
getHalTask()
java.util.List<IdentityLinkDto>
getIdentityLinks(java.lang.String type)
TaskDto
getJsonTask()
VariableResource
getLocalVariables()
javax.ws.rs.core.Response
getRenderedForm()
java.lang.Object
getTask(javax.ws.rs.core.Request request)
protected Task
getTaskById(java.lang.String id)
TaskCommentResource
getTaskCommentResource()
protected java.lang.String
getTaskFormMediaType(java.lang.String taskId)
VariableResource
getVariables()
void
handleBpmnError(TaskBpmnErrorDto dto)
void
handleEscalation(TaskEscalationDto dto)
void
resolve(CompleteTaskDto dto)
protected <V> V
runWithoutAuthorization(java.util.function.Supplier<V> action)
void
setAssignee(UserIdDto dto)
javax.ws.rs.core.Response
submit(CompleteTaskDto dto)
void
unclaim()
void
updateTask(TaskDto taskDto)
-
-
-
Field Detail
-
VARIANTS
public static final java.util.List<javax.ws.rs.core.Variant> VARIANTS
-
engine
protected ProcessEngine engine
-
taskId
protected java.lang.String taskId
-
rootResourcePath
protected java.lang.String rootResourcePath
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Detail
-
TaskResourceImpl
public TaskResourceImpl(ProcessEngine engine, java.lang.String taskId, java.lang.String rootResourcePath, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Detail
-
claim
public void claim(UserIdDto dto)
- Specified by:
claim
in interfaceTaskResource
-
unclaim
public void unclaim()
- Specified by:
unclaim
in interfaceTaskResource
-
complete
public javax.ws.rs.core.Response complete(CompleteTaskDto dto)
- Specified by:
complete
in interfaceTaskResource
-
submit
public javax.ws.rs.core.Response submit(CompleteTaskDto dto)
- Specified by:
submit
in interfaceTaskResource
-
delegate
public void delegate(UserIdDto delegatedUser)
- Specified by:
delegate
in interfaceTaskResource
-
getTask
public java.lang.Object getTask(javax.ws.rs.core.Request request)
- Specified by:
getTask
in interfaceTaskResource
-
getJsonTask
public TaskDto getJsonTask()
-
getHalTask
public HalTask getHalTask()
-
getForm
public FormDto getForm()
- Specified by:
getForm
in interfaceTaskResource
-
getRenderedForm
public javax.ws.rs.core.Response getRenderedForm()
- Specified by:
getRenderedForm
in interfaceTaskResource
-
resolve
public void resolve(CompleteTaskDto dto)
- Specified by:
resolve
in interfaceTaskResource
-
setAssignee
public void setAssignee(UserIdDto dto)
- Specified by:
setAssignee
in interfaceTaskResource
-
getIdentityLinks
public java.util.List<IdentityLinkDto> getIdentityLinks(java.lang.String type)
- Specified by:
getIdentityLinks
in interfaceTaskResource
-
addIdentityLink
public void addIdentityLink(IdentityLinkDto identityLink)
- Specified by:
addIdentityLink
in interfaceTaskResource
-
deleteIdentityLink
public void deleteIdentityLink(IdentityLinkDto identityLink)
- Specified by:
deleteIdentityLink
in interfaceTaskResource
-
getTaskCommentResource
public TaskCommentResource getTaskCommentResource()
- Specified by:
getTaskCommentResource
in interfaceTaskResource
-
getAttachmentResource
public TaskAttachmentResource getAttachmentResource()
- Specified by:
getAttachmentResource
in interfaceTaskResource
-
getLocalVariables
public VariableResource getLocalVariables()
- Specified by:
getLocalVariables
in interfaceTaskResource
-
getVariables
public VariableResource getVariables()
- Specified by:
getVariables
in interfaceTaskResource
-
getFormVariables
public java.util.Map<java.lang.String,VariableValueDto> getFormVariables(java.lang.String variableNames, boolean deserializeValues)
- Specified by:
getFormVariables
in interfaceTaskResource
-
updateTask
public void updateTask(TaskDto taskDto)
- Specified by:
updateTask
in interfaceTaskResource
-
deleteTask
public void deleteTask(java.lang.String id)
- Specified by:
deleteTask
in interfaceTaskResource
-
getDeployedForm
public javax.ws.rs.core.Response getDeployedForm()
- Specified by:
getDeployedForm
in interfaceTaskResource
-
handleBpmnError
public void handleBpmnError(TaskBpmnErrorDto dto)
- Specified by:
handleBpmnError
in interfaceTaskResource
-
handleEscalation
public void handleEscalation(TaskEscalationDto dto)
- Specified by:
handleEscalation
in interfaceTaskResource
-
getTaskById
protected Task getTaskById(java.lang.String id)
-
getTaskFormMediaType
protected java.lang.String getTaskFormMediaType(java.lang.String taskId)
-
runWithoutAuthorization
protected <V> V runWithoutAuthorization(java.util.function.Supplier<V> action)
-
-