Package org.alfresco.rest.api
Interface DeletedNodes
- All Known Implementing Classes:
DeletedNodesImpl
public interface DeletedNodes
Handles trashcan / deleted nodes
- Author:
- Gethin James
-
Method Summary
Modifier and TypeMethodDescriptiongetContent(String archivedId, String renditionId, Parameters parameters) Download file content (or rendition content) via archived node.getDeletedNode(String originalId, Parameters parameters, boolean fullnode, Map<String, UserInfo> mapUserInfo) Gets a single deleted node by id.getDeletedNodes(List<String> originalIds, Parameters parameters, boolean fullnode, Map<String, UserInfo> mapUserInfo) Gets a list of deleted nodes by id.getRendition(String archivedId, String renditionId, Parameters parameters) getRenditions(String archivedId, Parameters parameters) listDeleted(Parameters parameters) Lists deleted nodes using a ArchivedNodesCannedQueryvoidpurgeArchivedNode(String archivedId) Permanently delete the node.default DirectAccessUrlrequestContentDirectUrl(String archivedId, String renditionId, boolean attachment) Gets a presigned URL to directly access content.requestContentDirectUrl(String archivedId, String renditionId, boolean attachment, Long validFor) Gets a presigned URL to directly access content.restoreArchivedNode(String archivedId, NodeTargetAssoc nodeTargetAssoc) Restores a deleted node and returns it.
-
Method Details
-
listDeleted
Lists deleted nodes using a ArchivedNodesCannedQuery- Parameters:
parameters-- Returns:
- Collection of deleted Nodes
-
getDeletedNode
Node getDeletedNode(String originalId, Parameters parameters, boolean fullnode, Map<String, UserInfo> mapUserInfo) Gets a single deleted node by id.- Parameters:
originalId-parameters-fullnode- Should we return the full representation of the minimal one?mapUserInfo-- Returns:
- a deleted node
-
getDeletedNodes
List<Node> getDeletedNodes(List<String> originalIds, Parameters parameters, boolean fullnode, Map<String, UserInfo> mapUserInfo) Gets a list of deleted nodes by id.- Parameters:
list- of originalIdsparameters-fullnode- Should we return the full representation of the minimal one?mapUserInfo-- Returns:
- a deleted node
-
restoreArchivedNode
Restores a deleted node and returns it.- Parameters:
archivedId-nodeTargetAssoc- - optional- Returns:
- the new undeleted node.
-
purgeArchivedNode
Permanently delete the node.- Parameters:
archivedId-
-
getContent
Download file content (or rendition content) via archived node.- Parameters:
archivedId-renditionId- - optionalparameters-Parameters- Returns:
-
getRendition
- Parameters:
archivedId-renditionId-- Returns:
-
getRenditions
- Parameters:
archivedId-- Returns:
-
requestContentDirectUrl
default DirectAccessUrl requestContentDirectUrl(String archivedId, String renditionId, boolean attachment) Gets a presigned URL to directly access content.- Parameters:
archivedId- The node id for which to obtain the direct accessURLrenditionId- The rendition id for which to obtain the direct accessURLattachment-trueif an attachmentURLis requested,falsefor an embeddedURL,trueby default.- Returns:
- A direct access
URLobject for the content.
-
requestContentDirectUrl
DirectAccessUrl requestContentDirectUrl(String archivedId, String renditionId, boolean attachment, Long validFor) Gets a presigned URL to directly access content.- Parameters:
archivedId- The node id for which to obtain the direct accessURLrenditionId- The rendition id for which to obtain the direct accessURLattachment-trueif an attachmentURLis requested,falsefor an embeddedURL,trueby default.validFor- The time at which the direct accessURLwill expire.- Returns:
- A direct access
URLobject for the content.
-