Class TaskItemsRelation
java.lang.Object
org.alfresco.rest.workflow.api.tasks.TaskItemsRelation
- All Implemented Interfaces:
RelationshipResourceAction.Create<Item>
,RelationshipResourceAction.Delete
,RelationshipResourceAction.Read<Item>
,RelationshipResourceAction.ReadById<Item>
,ResourceAction
@RelationshipResource(name="items",
entityResource=TasksRestEntityResource.class,
title="The items attached to a task")
public class TaskItemsRelation
extends Object
implements RelationshipResourceAction.ReadById<Item>, RelationshipResourceAction.Read<Item>, RelationshipResourceAction.Create<Item>, RelationshipResourceAction.Delete
- Author:
- Frederik Heremans
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(String taskId, List<Item> entity, Parameters parameters) void
delete
(String taskId, String itemId, Parameters parameters) readAll
(String taskId, Parameters parameters) List the attached items.readById
(String taskId, String itemId, Parameters parameters) void
-
Constructor Details
-
TaskItemsRelation
public TaskItemsRelation()
-
-
Method Details
-
setTasks
-
readById
public Item readById(String taskId, String itemId, Parameters parameters) throws RelationshipResourceNotFoundException - Specified by:
readById
in interfaceRelationshipResourceAction.ReadById<Item>
- Throws:
RelationshipResourceNotFoundException
-
readAll
List the attached items.- Specified by:
readAll
in interfaceRelationshipResourceAction.Read<Item>
- Parameters:
taskId
- Entity resource context for this relationshipparameters
- - will never be null and will have the PAGING default values- See Also:
-
create
- Specified by:
create
in interfaceRelationshipResourceAction.Create<Item>
-
delete
- Specified by:
delete
in interfaceRelationshipResourceAction.Delete
-