@EntityResource(name="tasks", title="Tasks") public class TasksRestEntityResource extends java.lang.Object implements EntityResourceAction.Read, EntityResourceAction.ReadById, EntityResourceAction.Update
Constructor and Description |
---|
TasksRestEntityResource() |
Modifier and Type | Method and Description |
---|---|
CollectionWithPagingInfo |
readAll(Parameters params)
Reads all the entries from the collection.
|
Task |
readById(java.lang.String id,
Parameters parameters) |
void |
setTasks(Tasks tasks) |
Task |
update(java.lang.String id,
Task entity,
Parameters parameters) |
public void setTasks(Tasks tasks)
public CollectionWithPagingInfo readAll(Parameters params)
EntityResourceAction.Read
readAll
in interface EntityResourceAction.Read
params
- - will never be null and will have the PAGING default valuespublic Task readById(java.lang.String id, Parameters parameters) throws EntityNotFoundException
readById
in interface EntityResourceAction.ReadById
EntityNotFoundException
public Task update(java.lang.String id, Task entity, Parameters parameters)
update
in interface EntityResourceAction.Update
Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.