Package org.saidone.restless.sdk
Class GrpcTrashcanApi
java.lang.Object
org.saidone.restless.sdk.GrpcTrashcanApi
- All Implemented Interfaces:
org.alfresco.core.handler.TrashcanApi,org.alfresco.core.handler.TrashcanApiClient
SDK trashcan reads, original-location restore and permanent deletion.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> deleteDeletedNode(String nodeId) Permanently purges a node from the archive without replaying the mutation.org.springframework.http.ResponseEntity<org.alfresco.core.model.RenditionEntry> getArchivedNodeRendition(String nodeId, String renditionId) @throws feign.FeignException with HTTP 501org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> getArchivedNodeRenditionContent(String nodeId, String renditionId, Boolean attachment, OffsetDateTime modified, String range, Boolean placeholder) @throws feign.FeignException with HTTP 501org.springframework.http.ResponseEntity<org.alfresco.core.model.DeletedNodeEntry> getDeletedNode(String nodeId, List<String> include) Reads an archived node by its original ID.org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> getDeletedNodeContent(String nodeId, Boolean attachment, OffsetDateTime modified, String range) @throws feign.FeignException with HTTP 501org.springframework.http.ResponseEntity<org.alfresco.core.model.RenditionPaging> listDeletedNodeRenditions(String nodeId, String where) @throws feign.FeignException with HTTP 501org.springframework.http.ResponseEntity<org.alfresco.core.model.DeletedNodesPaging> listDeletedNodes(Integer skipCount, Integer maxItems, List<String> fields) Returns one page of nodes visible in the caller's archive.org.springframework.http.ResponseEntity<org.alfresco.core.model.DirectAccessUrlEntry> requestArchivedNodeRenditionDirectAccessUrl(String nodeId, String renditionId, org.alfresco.core.model.DirectAccessUrlBodyCreate body) @throws feign.FeignException with HTTP 501org.springframework.http.ResponseEntity<org.alfresco.core.model.DirectAccessUrlEntry> requestDeletedNodeDirectAccessUrl(String nodeId, org.alfresco.core.model.DirectAccessUrlBodyCreate body) @throws feign.FeignException with HTTP 501org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeEntry> restoreDeletedNode(String nodeId, List<String> fields, org.alfresco.core.model.DeletedNodeBodyRestore body) Restores the archived node to its original location.
-
Constructor Details
-
GrpcTrashcanApi
public GrpcTrashcanApi()
-
-
Method Details
-
listDeletedNodes
public org.springframework.http.ResponseEntity<org.alfresco.core.model.DeletedNodesPaging> listDeletedNodes(Integer skipCount, Integer maxItems, List<String> fields) Returns one page of nodes visible in the caller's archive.- Specified by:
listDeletedNodesin interfaceorg.alfresco.core.handler.TrashcanApi
-
getDeletedNode
public org.springframework.http.ResponseEntity<org.alfresco.core.model.DeletedNodeEntry> getDeletedNode(String nodeId, List<String> include) Reads an archived node by its original ID.- Specified by:
getDeletedNodein interfaceorg.alfresco.core.handler.TrashcanApi
-
restoreDeletedNode
public org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeEntry> restoreDeletedNode(String nodeId, List<String> fields, org.alfresco.core.model.DeletedNodeBodyRestore body) Restores the archived node to its original location.- Specified by:
restoreDeletedNodein interfaceorg.alfresco.core.handler.TrashcanApi
-
deleteDeletedNode
Permanently purges a node from the archive without replaying the mutation.- Specified by:
deleteDeletedNodein interfaceorg.alfresco.core.handler.TrashcanApi
-
getArchivedNodeRendition
public org.springframework.http.ResponseEntity<org.alfresco.core.model.RenditionEntry> getArchivedNodeRendition(String nodeId, String renditionId) @throws feign.FeignException with HTTP 501- Specified by:
getArchivedNodeRenditionin interfaceorg.alfresco.core.handler.TrashcanApi
-
getArchivedNodeRenditionContent
public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> getArchivedNodeRenditionContent(String nodeId, String renditionId, Boolean attachment, OffsetDateTime modified, String range, Boolean placeholder) @throws feign.FeignException with HTTP 501- Specified by:
getArchivedNodeRenditionContentin interfaceorg.alfresco.core.handler.TrashcanApi
-
getDeletedNodeContent
public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> getDeletedNodeContent(String nodeId, Boolean attachment, OffsetDateTime modified, String range) @throws feign.FeignException with HTTP 501- Specified by:
getDeletedNodeContentin interfaceorg.alfresco.core.handler.TrashcanApi
-
listDeletedNodeRenditions
public org.springframework.http.ResponseEntity<org.alfresco.core.model.RenditionPaging> listDeletedNodeRenditions(String nodeId, String where) @throws feign.FeignException with HTTP 501- Specified by:
listDeletedNodeRenditionsin interfaceorg.alfresco.core.handler.TrashcanApi
-
requestArchivedNodeRenditionDirectAccessUrl
public org.springframework.http.ResponseEntity<org.alfresco.core.model.DirectAccessUrlEntry> requestArchivedNodeRenditionDirectAccessUrl(String nodeId, String renditionId, org.alfresco.core.model.DirectAccessUrlBodyCreate body) @throws feign.FeignException with HTTP 501- Specified by:
requestArchivedNodeRenditionDirectAccessUrlin interfaceorg.alfresco.core.handler.TrashcanApi
-
requestDeletedNodeDirectAccessUrl
public org.springframework.http.ResponseEntity<org.alfresco.core.model.DirectAccessUrlEntry> requestDeletedNodeDirectAccessUrl(String nodeId, org.alfresco.core.model.DirectAccessUrlBodyCreate body) @throws feign.FeignException with HTTP 501- Specified by:
requestDeletedNodeDirectAccessUrlin interfaceorg.alfresco.core.handler.TrashcanApi
-