Package org.saidone.restless.sdk
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> createVersionRendition(String nodeId, String versionId, org.alfresco.core.model.RenditionBodyCreate body) @throws feign.FeignException with HTTP 501org.springframework.http.ResponseEntity<Void> deleteVersion(String nodeId, String versionId) @throws feign.FeignException with HTTP 501org.springframework.http.ResponseEntity<Void> deleteVersionRendition(String nodeId, String versionId, String renditionId) @throws feign.FeignException with HTTP 501org.springframework.http.ResponseEntity<org.alfresco.core.model.VersionEntry> getVersion(String nodeId, String versionId) Reads one version identified by its Alfresco label.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.org.springframework.http.ResponseEntity<org.alfresco.core.model.RenditionEntry> getVersionRendition(String nodeId, String versionId, String renditionId) @throws feign.FeignException with HTTP 501org.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 501org.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.org.springframework.http.ResponseEntity<org.alfresco.core.model.RenditionPaging> listVersionRenditions(String nodeId, String versionId, String where) @throws feign.FeignException with HTTP 501org.springframework.http.ResponseEntity<org.alfresco.core.model.DirectAccessUrlEntry> requestVersionDirectAccessUrl(String nodeId, String versionId, org.alfresco.core.model.DirectAccessUrlBodyCreate body) @throws feign.FeignException with HTTP 501org.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 501org.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
-
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:
listVersionHistoryin interfaceorg.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:
getVersionin interfaceorg.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:
getVersionContentin interfaceorg.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:
createVersionRenditionin interfaceorg.alfresco.core.handler.VersionsApi
-
deleteVersion
@throws feign.FeignException with HTTP 501- Specified by:
deleteVersionin interfaceorg.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:
deleteVersionRenditionin interfaceorg.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:
getVersionRenditionin interfaceorg.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:
getVersionRenditionContentin interfaceorg.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:
listVersionRenditionsin interfaceorg.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:
requestVersionDirectAccessUrlin interfaceorg.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:
requestVersionRenditionDirectAccessUrlin interfaceorg.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:
revertVersionin interfaceorg.alfresco.core.handler.VersionsApi
-