Package org.saidone.unrest.client
Each service has a matching client and operation names: nodes, file/folder operations, content, versions,
search, dictionary models and authentication. Clients exchange Protobuf data objects and require no Spring or
MCP runtime. The application owns its channel and can share one AuthenticationServiceClient as the
TicketProvider for all service clients.
Unary calls attach a ticket and deadline, renewing an expired ticket and retrying once when a different ticket becomes available. Downloads retry only before any payload bytes are written; uploads never replay their input. Callers retain ownership of supplied input/output streams.
AlfrescoGrpcChannels.createPool(java.lang.String, int, java.lang.String, java.lang.String, int) creates a bounded reusable content channel pool. Pass the pool to
ContentServiceClient, its borrowed primary channel to metadata/authentication clients, and share one
ticket provider. Only the pool owns and closes its channels; clients never create channels per request.
Configured stub call options are preserved for unary calls, downloads and uploads.
-
ClassDescriptionOwns a fixed set of reusable gRPC channels to one Alfresco endpoint.Creates channels to the unrest-platform module.Client of the AuthenticationService of the gRPC module: exchanges user and password for an Alfresco ticket, gRPC only, no REST.Client of the platform's content service: byte slices, writes, downloads and streaming document creation.Metadata and a single-use content stream owned by the caller.Client of the platform's dictionary service for model listings and qualified model lookups.Client of the platform's file/folder service: listing, creation, moves and copies.Client of the platform's node archive service: lists and permanently purges the nodes in the trashcan.Client of the platform's node service for properties, types, aspects and node snapshots.Typed property factories shared by all write clients.Client of the platform's search service, supporting AFTS, CMIS, pagination and ordered AFTS sort fields.Supplies the Alfresco authentication ticket sent to the gRPC module in the
alfresco-ticketheader: every call runs as the user the ticket belongs to.Client of the platform's version service.