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 java.lang.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 Constructor Description TrashcanEntityResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(java.lang.String nodeId, Parameters parameters)
CollectionWithPagingInfo<Node>
readAll(Parameters params)
Reads all the entries from the collection.Node
readById(java.lang.String nodeId, Parameters parameters)
BinaryResource
readProperty(java.lang.String nodeId, Parameters parameters)
Retrieves a binary property by returning a BinaryResource object.Node
restoreDeletedNode(java.lang.String nodeId, NodeTargetAssoc nodeTargetAssoc, Parameters parameters, WithResponse withResponse)
void
setDeletedNodes(DeletedNodes deletedNodes)
-
-
-
Method Detail
-
setDeletedNodes
public void setDeletedNodes(DeletedNodes deletedNodes)
-
readAll
public CollectionWithPagingInfo<Node> readAll(Parameters params)
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
public Node readById(java.lang.String nodeId, Parameters parameters) throws EntityNotFoundException
- Specified by:
readById
in interfaceEntityResourceAction.ReadById<Node>
- Throws:
EntityNotFoundException
-
restoreDeletedNode
public Node restoreDeletedNode(java.lang.String nodeId, NodeTargetAssoc nodeTargetAssoc, Parameters parameters, WithResponse withResponse)
-
readProperty
public BinaryResource readProperty(java.lang.String nodeId, Parameters parameters)
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
public void delete(java.lang.String nodeId, Parameters parameters)
- Specified by:
delete
in interfaceEntityResourceAction.Delete
-
-