@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
Constructor and Description |
---|
TaskItemsRelation() |
Modifier and Type | Method and Description |
---|---|
List<Item> |
create(String taskId,
List<Item> entity,
Parameters parameters) |
void |
delete(String taskId,
String itemId,
Parameters parameters) |
CollectionWithPagingInfo<Item> |
readAll(String taskId,
Parameters parameters)
List the attached items.
|
Item |
readById(String taskId,
String itemId,
Parameters parameters) |
void |
setTasks(Tasks tasks) |
public void setTasks(Tasks tasks)
public Item readById(String taskId, String itemId, Parameters parameters) throws RelationshipResourceNotFoundException
readById
in interface RelationshipResourceAction.ReadById<Item>
RelationshipResourceNotFoundException
public CollectionWithPagingInfo<Item> readAll(String taskId, Parameters parameters)
readAll
in interface RelationshipResourceAction.Read<Item>
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<Item> create(String taskId, List<Item> entity, Parameters parameters)
create
in interface RelationshipResourceAction.Create<Item>
public void delete(String taskId, String itemId, Parameters parameters)
delete
in interface RelationshipResourceAction.Delete
Copyright © 2005–2017 Alfresco Software. All rights reserved.