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 TypeMethodDescriptionvoiddelete(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.requestContentDirectUrl(String originalNodeId, DirectAccessUrlRequest directAccessUrlRequest, Parameters parameters, WithResponse withResponse) restoreDeletedNode(String nodeId, NodeTargetAssoc nodeTargetAssoc, Parameters parameters, WithResponse withResponse) voidsetDeletedNodes(DeletedNodes deletedNodes) voidsetDirectAccessUrlHelper(DirectAccessUrlHelper directAccessUrlHelper)
-
Constructor Details
-
TrashcanEntityResource
public TrashcanEntityResource()
-
-
Method Details
-
setDeletedNodes
-
setDirectAccessUrlHelper
-
readAll
Description copied from interface:EntityResourceAction.ReadReads all the entries from the collection. Paging information is provided.- Specified by:
readAllin interfaceEntityResourceAction.Read<Node>- Parameters:
params- - will never be null and will have the PAGING default values
-
readById
- Specified by:
readByIdin interfaceEntityResourceAction.ReadById<Node>- Throws:
EntityNotFoundException
-
restoreDeletedNode
public Node restoreDeletedNode(String nodeId, NodeTargetAssoc nodeTargetAssoc, Parameters parameters, WithResponse withResponse) -
readProperty
Description copied from interface:BinaryResourceAction.ReadRetrieves a binary property by returning a BinaryResource object. The specific property is specified in theParametersobject. SeeParameters.hasBinaryProperty(String)orParameters.getBinaryProperty()- Specified by:
readPropertyin interfaceBinaryResourceAction.Read- Parameters:
nodeId- unique idparameters-Parameters- Returns:
- BinaryResource - Either
FileBinaryResourceorNodeBinaryResource
-
requestContentDirectUrl
public DirectAccessUrl requestContentDirectUrl(String originalNodeId, DirectAccessUrlRequest directAccessUrlRequest, Parameters parameters, WithResponse withResponse) -
delete
- Specified by:
deletein interfaceEntityResourceAction.Delete
-