Package org.saidone.unrest.platform
Service boundaries
Each Grpc<Service> corresponds to an Alfresco service: node metadata, file/folder operations,
content, version history, search, dictionary lookups, the trashcan (archive store) and credential
authentication. Protobuf messages
replace local repository objects. Aggregate node snapshots and updates, materialized content access and
streaming transfers are documented remote extensions rather than implementations of Alfresco Java interfaces.
Authentication and transactions
TicketInterceptor requires an alfresco-ticket header on
every operation except credential authentication. It records the validated username in the gRPC context;
repository callbacks run as that user. Both ticket validation and repository execution restore the previous
Alfresco thread authentication. Read operations use read-only transactions and mutations use retryable
read-write transactions. Unary responses are emitted only after the transaction succeeds.
Downloads resolve their content reader inside a transaction, then stream bytes outside it so a retry cannot duplicate output. Uploads spool their input before creating a document. The transactional write reopens the spool for every attempt, and temporary files are cleaned up on completion, cancellation and failure.
References and values
Node arguments accept a full repository reference, a bare workspace node ID, or -root-,
-my- and -shared-. Aliases resolve as the caller. Qualified property, aspect and type names
accept prefix:localName or expanded {namespace-uri}localName notation. Read snapshots preserve
supported scalar types, collection cardinality and null markers, while exposing content metadata without
content-store URLs. Write inputs use the same typed properties, with explicit scalar/list cardinality
validated against dictionary definitions.
Failure delivery
RPC failures are sent to response observers using gRPC statuses; they are not declared as synchronous exceptions on service method signatures. Shared repository error translation uses these mappings:
| Condition | Status |
|---|---|
| Missing/invalid ticket or rejected credentials | UNAUTHENTICATED |
| Repository permission denied | PERMISSION_DENIED |
| Unresolved or missing node/model | NOT_FOUND |
| Duplicate child name | ALREADY_EXISTS |
| Lock or repository integrity constraint | FAILED_PRECONDITION |
| Invalid input or cyclic folder operation | INVALID_ARGUMENT |
| Unexpected repository failure | INTERNAL |
Explicit status exceptions keep their status. Content extraction and streaming add operation-specific statuses described on the corresponding methods. Internal exception details are omitted from permission and unexpected-failure responses, while diagnostic causes remain available in server logs.
-
ClassesClassDescriptionExchanges Alfresco credentials for a ticket and handles validation and revocation of the presented ticket.Exposes document content access and streaming transfers through gRPC.Exposes deployed Alfresco content models, types, aspects and property definitions through gRPC.Exposes file and folder listing, creation, moves and copies through gRPC.Exposes the Alfresco trashcan (the archive store of workspace://SpacesStore) through gRPC.Exposes node metadata and aspect operations through gRPC.Adapts Alfresco's search service to paged, permission-filtered gRPC queries.Owns the lifecycle of the embedded Alfresco gRPC listener.Exposes Alfresco document version histories through gRPC.Validates repository tickets and propagates the authenticated user through the gRPC context.