@RelationshipResource(name="variables", entityResource=TasksRestEntityResource.class, title="Variables for the current task") public class TaskVariablesRelation extends Object implements RelationshipResourceAction.Read<TaskVariable>, RelationshipResourceAction.Create<TaskVariable>, RelationshipResourceAction.Update<TaskVariable>, RelationshipResourceAction.Delete
Constructor and Description |
---|
TaskVariablesRelation() |
Modifier and Type | Method and Description |
---|---|
List<TaskVariable> |
create(String taskId,
List<TaskVariable> variables,
Parameters parameters)
Creates or updates multiple task variables.
|
void |
delete(String entityResourceId,
String id,
Parameters parameters)
Delete a task variable.
|
CollectionWithPagingInfo<TaskVariable> |
readAll(String taskId,
Parameters parameters)
List the tasks variables.
|
void |
setTasks(Tasks tasks) |
TaskVariable |
update(String taskId,
TaskVariable entity,
Parameters parameters)
Update a task variable.
|
public void setTasks(Tasks tasks)
public CollectionWithPagingInfo<TaskVariable> readAll(String taskId, Parameters parameters)
readAll
in interface RelationshipResourceAction.Read<TaskVariable>
taskId
- Entity resource context for this relationshipparameters
- - will never be null and will have the PAGING default valuesRelationshipResourceAction.Read.readAll(java.lang.String, org.alfresco.rest.framework.resource.parameters.Parameters)
public List<TaskVariable> create(String taskId, List<TaskVariable> variables, Parameters parameters)
create
in interface RelationshipResourceAction.Create<TaskVariable>
public TaskVariable update(String taskId, TaskVariable entity, Parameters parameters)
update
in interface RelationshipResourceAction.Update<TaskVariable>
public void delete(String entityResourceId, String id, Parameters parameters)
delete
in interface RelationshipResourceAction.Delete
Copyright © 2005–2017 Alfresco Software. All rights reserved.