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 Constructor Description TrashcanEntityResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(String nodeId, Parameters parameters)CollectionWithPagingInfo<Node>readAll(Parameters params)Reads all the entries from the collection.NodereadById(String nodeId, Parameters parameters)BinaryResourcereadProperty(String nodeId, Parameters parameters)Retrieves a binary property by returning a BinaryResource object.DirectAccessUrlrequestContentDirectUrl(String originalNodeId, DirectAccessUrlRequest directAccessUrlRequest, Parameters parameters, WithResponse withResponse)NoderestoreDeletedNode(String nodeId, NodeTargetAssoc nodeTargetAssoc, Parameters parameters, WithResponse withResponse)voidsetDeletedNodes(DeletedNodes deletedNodes)voidsetDirectAccessUrlHelper(DirectAccessUrlHelper directAccessUrlHelper)
-
-
-
Method Detail
-
setDeletedNodes
public void setDeletedNodes(DeletedNodes deletedNodes)
-
setDirectAccessUrlHelper
public void setDirectAccessUrlHelper(DirectAccessUrlHelper directAccessUrlHelper)
-
readAll
public CollectionWithPagingInfo<Node> readAll(Parameters params)
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
public Node readById(String nodeId, Parameters parameters) throws EntityNotFoundException
- Specified by:
readByIdin interfaceEntityResourceAction.ReadById<Node>- Throws:
EntityNotFoundException
-
restoreDeletedNode
public Node restoreDeletedNode(String nodeId, NodeTargetAssoc nodeTargetAssoc, Parameters parameters, WithResponse withResponse)
-
readProperty
public BinaryResource readProperty(String nodeId, Parameters parameters)
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
public void delete(String nodeId, Parameters parameters)
- Specified by:
deletein interfaceEntityResourceAction.Delete
-
-