Class GrpcTrashcanApi

java.lang.Object
org.saidone.restless.sdk.GrpcTrashcanApi
All Implemented Interfaces:
org.alfresco.core.handler.TrashcanApi, org.alfresco.core.handler.TrashcanApiClient

public class GrpcTrashcanApi extends Object implements org.alfresco.core.handler.TrashcanApiClient
SDK trashcan reads, original-location restore and permanent deletion.
  • 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:
      listDeletedNodes in interface org.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:
      getDeletedNode in interface org.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:
      restoreDeletedNode in interface org.alfresco.core.handler.TrashcanApi
    • deleteDeletedNode

      public org.springframework.http.ResponseEntity<Void> deleteDeletedNode(String nodeId)
      Permanently purges a node from the archive without replaying the mutation.
      Specified by:
      deleteDeletedNode in interface org.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:
      getArchivedNodeRendition in interface org.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:
      getArchivedNodeRenditionContent in interface org.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:
      getDeletedNodeContent in interface org.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:
      listDeletedNodeRenditions in interface org.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:
      requestArchivedNodeRenditionDirectAccessUrl in interface org.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:
      requestDeletedNodeDirectAccessUrl in interface org.alfresco.core.handler.TrashcanApi