@EntityResource(name="deleted-nodes", title="Deleted Nodes") public class TrashcanEntityResource extends Object implements EntityResourceAction.ReadById<Node>, EntityResourceAction.Read<Node>, EntityResourceAction.Delete
Constructor and Description |
---|
TrashcanEntityResource() |
Modifier and Type | Method and Description |
---|---|
void |
delete(String nodeId,
Parameters parameters) |
CollectionWithPagingInfo<Node> |
readAll(Parameters params)
Reads all the entries from the collection.
|
Node |
readById(String nodeId,
Parameters parameters) |
Node |
restoreDeletedNode(String nodeId,
Void ignored,
Parameters parameters,
WithResponse withResponse) |
void |
setDeletedNodes(DeletedNodes deletedNodes) |
public void setDeletedNodes(DeletedNodes deletedNodes)
public CollectionWithPagingInfo<Node> readAll(Parameters params)
EntityResourceAction.Read
readAll
in interface EntityResourceAction.Read<Node>
params
- - will never be null and will have the PAGING default valuespublic Node readById(String nodeId, Parameters parameters) throws EntityNotFoundException
readById
in interface EntityResourceAction.ReadById<Node>
EntityNotFoundException
public Node restoreDeletedNode(String nodeId, Void ignored, Parameters parameters, WithResponse withResponse)
public void delete(String nodeId, Parameters parameters)
delete
in interface EntityResourceAction.Delete
Copyright © 2005–2017 Alfresco Software. All rights reserved.