Package org.alfresco.rest.api.impl
Class DeletedNodesImpl
java.lang.Object
org.alfresco.rest.api.impl.DeletedNodesImpl
- All Implemented Interfaces:
DeletedNodes
,RecognizedParamsExtractor
Handles trashcan / deleted nodes
- Author:
- Gethin James
-
Field Summary
Fields inherited from interface org.alfresco.rest.framework.tools.RecognizedParamsExtractor
KNOWN_PARAMS, PARAM_FILTER_FIELDS, PARAM_FILTER_PROPERTIES, PARAM_INCLUDE, PARAM_INCLUDE_SOURCE_ENTITY, PARAM_ORDERBY, PARAM_PAGING_MAX, PARAM_PAGING_SKIP, PARAM_RELATIONS, PARAM_SELECT, PARAM_WHERE
-
Constructor Summary
Constructors -
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.getRendition
(String archivedId, String renditionId, Parameters parameters) getRenditions
(String archivedId, Parameters parameters) listDeleted
(Parameters parameters) Lists deleted nodes using a ArchivedNodesCannedQueryvoid
purgeArchivedNode
(String archivedId) Permanently delete the node.requestContentDirectUrl
(String originalNodeId, 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.void
setNodeArchiveService
(NodeArchiveService nodeArchiveService) void
void
setNodeService
(NodeService nodeService) void
setPersonService
(PersonService personService) void
setRenditions
(Renditions renditions) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.alfresco.rest.api.DeletedNodes
requestContentDirectUrl
Methods inherited from interface org.alfresco.rest.framework.tools.RecognizedParamsExtractor
findPaging, getClause, getFilter, getFilter, getIncludeClause, getPaging, getRecognizedParams, getRelationFilter, getRequestParameters, getSelectClause, getSort, getWhereClause, rpeLogger
-
Constructor Details
-
DeletedNodesImpl
public DeletedNodesImpl()
-
-
Method Details
-
setNodeArchiveService
-
setPersonService
-
setNodeService
-
setNodes
-
setRenditions
-
listDeleted
Description copied from interface:DeletedNodes
Lists deleted nodes using a ArchivedNodesCannedQuery- Specified by:
listDeleted
in interfaceDeletedNodes
- Returns:
- Collection of deleted Nodes
-
getDeletedNode
public Node getDeletedNode(String originalId, Parameters parameters, boolean fullnode, Map<String, UserInfo> mapUserInfo) Description copied from interface:DeletedNodes
Gets a single deleted node by id.- Specified by:
getDeletedNode
in interfaceDeletedNodes
fullnode
- Should we return the full representation of the minimal one?- Returns:
- a deleted node
-
restoreArchivedNode
Description copied from interface:DeletedNodes
Restores a deleted node and returns it.- Specified by:
restoreArchivedNode
in interfaceDeletedNodes
nodeTargetAssoc
- - optional- Returns:
- the new undeleted node.
-
purgeArchivedNode
Description copied from interface:DeletedNodes
Permanently delete the node.- Specified by:
purgeArchivedNode
in interfaceDeletedNodes
-
getContent
Description copied from interface:DeletedNodes
Download file content (or rendition content) via archived node.- Specified by:
getContent
in interfaceDeletedNodes
renditionId
- - optionalparameters
-Parameters
- Returns:
-
getRendition
- Specified by:
getRendition
in interfaceDeletedNodes
- Returns:
-
getRenditions
- Specified by:
getRenditions
in interfaceDeletedNodes
- Returns:
-
requestContentDirectUrl
public DirectAccessUrl requestContentDirectUrl(String originalNodeId, String renditionId, boolean attachment, Long validFor) Gets a presigned URL to directly access content.- Specified by:
requestContentDirectUrl
in interfaceDeletedNodes
- Parameters:
originalNodeId
- The node id for which to obtain the direct accessURL
renditionId
- The rendition id for which to obtain the direct accessURL
attachment
-true
if an attachmentURL
is requested,false
for an embeddedURL
,true
by default.validFor
- The time at which the direct accessURL
will expire.- Returns:
- A direct access
URL
object for the content.
-