Package org.alfresco.rest.api.trashcan
Class TrashcanEntityResource
java.lang.Object
org.alfresco.rest.api.trashcan.TrashcanEntityResource
- All Implemented Interfaces:
BinaryResourceAction.Read
,EntityResourceAction.Delete
,EntityResourceAction.Read<Node>
,EntityResourceAction.ReadById<Node>
,ResourceAction
@EntityResource(name="deleted-nodes",
title="Deleted Nodes")
public class TrashcanEntityResource
extends Object
implements EntityResourceAction.ReadById<Node>, EntityResourceAction.Read<Node>, EntityResourceAction.Delete, BinaryResourceAction.Read
An implementation of an Entity Resource for handling archived content
- Author:
- Gethin James
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete
(String nodeId, Parameters parameters) readAll
(Parameters params) Reads all the entries from the collection.readById
(String nodeId, Parameters parameters) readProperty
(String nodeId, Parameters parameters) Retrieves a binary property by returning a BinaryResource object.restoreDeletedNode
(String nodeId, NodeTargetAssoc nodeTargetAssoc, Parameters parameters, WithResponse withResponse) void
setDeletedNodes
(DeletedNodes deletedNodes)
-
Constructor Details
-
TrashcanEntityResource
public TrashcanEntityResource()
-
-
Method Details
-
setDeletedNodes
-
readAll
Description copied from interface:EntityResourceAction.Read
Reads all the entries from the collection. Paging information is provided.- Specified by:
readAll
in interfaceEntityResourceAction.Read<Node>
- Parameters:
params
- - will never be null and will have the PAGING default values
-
readById
- Specified by:
readById
in interfaceEntityResourceAction.ReadById<Node>
- Throws:
EntityNotFoundException
-
restoreDeletedNode
public Node restoreDeletedNode(String nodeId, NodeTargetAssoc nodeTargetAssoc, Parameters parameters, WithResponse withResponse) -
readProperty
Description copied from interface:BinaryResourceAction.Read
Retrieves a binary property by returning a BinaryResource object. The specific property is specified in theParameters
object. SeeParameters.hasBinaryProperty(String)
orParameters.getBinaryProperty()
- Specified by:
readProperty
in interfaceBinaryResourceAction.Read
- Parameters:
nodeId
- unique idparameters
-Parameters
- Returns:
- BinaryResource - Either
FileBinaryResource
orNodeBinaryResource
-
delete
- Specified by:
delete
in interfaceEntityResourceAction.Delete
-