@EntityResource(name="deleted-nodes", title="Deleted Nodes") public class TrashcanEntityResource extends Object implements EntityResourceAction.ReadById<Node>, EntityResourceAction.Read<Node>, EntityResourceAction.Delete, BinaryResourceAction.Read
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) |
BinaryResource |
readProperty(String nodeId,
Parameters parameters)
Retrieves a binary property by returning a BinaryResource object.
|
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 BinaryResource readProperty(String nodeId, Parameters parameters)
BinaryResourceAction.Read
Parameters
object.
See Parameters.hasBinaryProperty(String)
or Parameters.getBinaryProperty()
readProperty
in interface BinaryResourceAction.Read
nodeId
- unique idparameters
- Parameters
FileBinaryResource
or NodeBinaryResource
public void delete(String nodeId, Parameters parameters)
delete
in interface EntityResourceAction.Delete
Copyright © 2005–2018 Alfresco Software. All rights reserved.