Class TaskVariablesRelation
- java.lang.Object
-
- org.alfresco.rest.workflow.api.tasks.TaskVariablesRelation
-
- All Implemented Interfaces:
RelationshipResourceAction.Create<TaskVariable>,RelationshipResourceAction.Delete,RelationshipResourceAction.Read<TaskVariable>,RelationshipResourceAction.Update<TaskVariable>,ResourceAction
@RelationshipResource(name="variables", entityResource=TasksRestEntityResource.class, title="Variables for the current task") public class TaskVariablesRelation extends java.lang.Object implements RelationshipResourceAction.Read<TaskVariable>, RelationshipResourceAction.Create<TaskVariable>, RelationshipResourceAction.Update<TaskVariable>, RelationshipResourceAction.Delete
- Author:
- Tijs Rademakers
-
-
Constructor Summary
Constructors Constructor Description TaskVariablesRelation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<TaskVariable>create(java.lang.String taskId, java.util.List<TaskVariable> variables, Parameters parameters)Creates or updates multiple task variables.voiddelete(java.lang.String entityResourceId, java.lang.String id, Parameters parameters)Delete a task variable.CollectionWithPagingInfo<TaskVariable>readAll(java.lang.String taskId, Parameters parameters)List the tasks variables.voidsetTasks(Tasks tasks)TaskVariableupdate(java.lang.String taskId, TaskVariable entity, Parameters parameters)Update a task variable.
-
-
-
Method Detail
-
setTasks
public void setTasks(Tasks tasks)
-
readAll
public CollectionWithPagingInfo<TaskVariable> readAll(java.lang.String taskId, Parameters parameters)
List the tasks variables.- Specified by:
readAllin interfaceRelationshipResourceAction.Read<TaskVariable>- Parameters:
taskId- Entity resource context for this relationshipparameters- - will never be null and will have the PAGING default values- See Also:
RelationshipResourceAction.Read.readAll(java.lang.String, org.alfresco.rest.framework.resource.parameters.Parameters)
-
create
public java.util.List<TaskVariable> create(java.lang.String taskId, java.util.List<TaskVariable> variables, Parameters parameters)
Creates or updates multiple task variables. If the variable name doesn't exist yet it will be created- Specified by:
createin interfaceRelationshipResourceAction.Create<TaskVariable>
-
update
public TaskVariable update(java.lang.String taskId, TaskVariable entity, Parameters parameters)
Update a task variable. If the variable name doesn't exist yet it will be created- Specified by:
updatein interfaceRelationshipResourceAction.Update<TaskVariable>
-
delete
public void delete(java.lang.String entityResourceId, java.lang.String id, Parameters parameters)Delete a task variable. If the variable name doesn't exist the delete call throws an exception.- Specified by:
deletein interfaceRelationshipResourceAction.Delete
-
-