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 ArchivedNodesCannedQueryvoidpurgeArchivedNode(String archivedId) Permanently delete the node.requestContentDirectUrl(String originalNodeId, String renditionId, boolean attachment, Long validFor, String fileName) Gets a presigned URL to directly access content.restoreArchivedNode(String archivedId, NodeTargetAssoc nodeTargetAssoc) Restores a deleted node and returns it.voidsetNodeArchiveService(NodeArchiveService nodeArchiveService) voidvoidsetNodeService(NodeService nodeService) voidsetPersonService(PersonService personService) voidsetRenditions(Renditions renditions) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.alfresco.rest.api.DeletedNodes
requestContentDirectUrl, requestContentDirectUrlMethods 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:DeletedNodesLists deleted nodes using a ArchivedNodesCannedQuery- Specified by:
listDeletedin interfaceDeletedNodes- Returns:
- Collection of deleted Nodes
-
getDeletedNode
public Node getDeletedNode(String originalId, Parameters parameters, boolean fullnode, Map<String, UserInfo> mapUserInfo) Description copied from interface:DeletedNodesGets a single deleted node by id.- Specified by:
getDeletedNodein interfaceDeletedNodesfullnode- Should we return the full representation of the minimal one?- Returns:
- a deleted node
-
restoreArchivedNode
Description copied from interface:DeletedNodesRestores a deleted node and returns it.- Specified by:
restoreArchivedNodein interfaceDeletedNodesnodeTargetAssoc- - optional- Returns:
- the new undeleted node.
-
purgeArchivedNode
Description copied from interface:DeletedNodesPermanently delete the node.- Specified by:
purgeArchivedNodein interfaceDeletedNodes
-
getContent
Description copied from interface:DeletedNodesDownload file content (or rendition content) via archived node.- Specified by:
getContentin interfaceDeletedNodesrenditionId- - optionalparameters-Parameters- Returns:
-
getRendition
- Specified by:
getRenditionin interfaceDeletedNodes- Returns:
-
getRenditions
- Specified by:
getRenditionsin interfaceDeletedNodes- Returns:
-
requestContentDirectUrl
public DirectAccessUrl requestContentDirectUrl(String originalNodeId, String renditionId, boolean attachment, Long validFor, String fileName) Gets a presigned URL to directly access content.- Specified by:
requestContentDirectUrlin interfaceDeletedNodes- Parameters:
originalNodeId- 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.fileName- Optional overide for file name- Returns:
- A direct access
URLobject for the content.
-