Class GrpcVersionsApi

java.lang.Object
org.saidone.restless.sdk.GrpcVersionsApi
All Implemented Interfaces:
org.alfresco.core.handler.VersionsApi, org.alfresco.core.handler.VersionsApiClient

public final class GrpcVersionsApi extends Object implements org.alfresco.core.handler.VersionsApiClient
SDK version history and content reads backed by the shared gRPC clients.
  • Constructor Details

    • GrpcVersionsApi

      public GrpcVersionsApi()
  • Method Details

    • listVersionHistory

      public org.springframework.http.ResponseEntity<org.alfresco.core.model.VersionPaging> listVersionHistory(String nodeId, List<String> include, List<String> fields, Integer skipCount, Integer maxItems)
      Reads one projected page of frozen version snapshots.
      Specified by:
      listVersionHistory in interface org.alfresco.core.handler.VersionsApi
    • getVersion

      public org.springframework.http.ResponseEntity<org.alfresco.core.model.VersionEntry> getVersion(String nodeId, String versionId)
      Reads one version identified by its Alfresco label.
      Specified by:
      getVersion in interface org.alfresco.core.handler.VersionsApi
    • getVersionContent

      public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> getVersionContent(String nodeId, String versionId, Boolean attachment, OffsetDateTime modified, String range)
      Resolves the frozen version by label and streams only that version's payload.
      Specified by:
      getVersionContent in interface org.alfresco.core.handler.VersionsApi
    • createVersionRendition

      public org.springframework.http.ResponseEntity<Void> createVersionRendition(String nodeId, String versionId, org.alfresco.core.model.RenditionBodyCreate body)
      @throws feign.FeignException with HTTP 501
      Specified by:
      createVersionRendition in interface org.alfresco.core.handler.VersionsApi
    • deleteVersion

      public org.springframework.http.ResponseEntity<Void> deleteVersion(String nodeId, String versionId)
      @throws feign.FeignException with HTTP 501
      Specified by:
      deleteVersion in interface org.alfresco.core.handler.VersionsApi
    • deleteVersionRendition

      public org.springframework.http.ResponseEntity<Void> deleteVersionRendition(String nodeId, String versionId, String renditionId)
      @throws feign.FeignException with HTTP 501
      Specified by:
      deleteVersionRendition in interface org.alfresco.core.handler.VersionsApi
    • getVersionRendition

      public org.springframework.http.ResponseEntity<org.alfresco.core.model.RenditionEntry> getVersionRendition(String nodeId, String versionId, String renditionId)
      @throws feign.FeignException with HTTP 501
      Specified by:
      getVersionRendition in interface org.alfresco.core.handler.VersionsApi
    • getVersionRenditionContent

      public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> getVersionRenditionContent(String nodeId, String versionId, String renditionId, Boolean attachment, OffsetDateTime modified, String range, Boolean placeholder)
      @throws feign.FeignException with HTTP 501
      Specified by:
      getVersionRenditionContent in interface org.alfresco.core.handler.VersionsApi
    • listVersionRenditions

      public org.springframework.http.ResponseEntity<org.alfresco.core.model.RenditionPaging> listVersionRenditions(String nodeId, String versionId, String where)
      @throws feign.FeignException with HTTP 501
      Specified by:
      listVersionRenditions in interface org.alfresco.core.handler.VersionsApi
    • requestVersionDirectAccessUrl

      public org.springframework.http.ResponseEntity<org.alfresco.core.model.DirectAccessUrlEntry> requestVersionDirectAccessUrl(String nodeId, String versionId, org.alfresco.core.model.DirectAccessUrlBodyCreate body)
      @throws feign.FeignException with HTTP 501
      Specified by:
      requestVersionDirectAccessUrl in interface org.alfresco.core.handler.VersionsApi
    • requestVersionRenditionDirectAccessUrl

      public org.springframework.http.ResponseEntity<org.alfresco.core.model.DirectAccessUrlEntry> requestVersionRenditionDirectAccessUrl(String nodeId, String versionId, String renditionId, org.alfresco.core.model.DirectAccessUrlBodyCreate body)
      @throws feign.FeignException with HTTP 501
      Specified by:
      requestVersionRenditionDirectAccessUrl in interface org.alfresco.core.handler.VersionsApi
    • revertVersion

      public org.springframework.http.ResponseEntity<org.alfresco.core.model.VersionEntry> revertVersion(String nodeId, String versionId, org.alfresco.core.model.RevertBody body, List<String> fields)
      @throws feign.FeignException with HTTP 501
      Specified by:
      revertVersion in interface org.alfresco.core.handler.VersionsApi