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