Class GrpcPersonService

java.lang.Object
org.saidone.restless.api.PersonServiceGrpc.PersonServiceImplBase
org.saidone.restless.platform.GrpcPersonService
All Implemented Interfaces:
io.grpc.BindableService, org.saidone.restless.api.PersonServiceGrpc.AsyncService

public final class GrpcPersonService extends org.saidone.restless.api.PersonServiceGrpc.PersonServiceImplBase
Exposes Alfresco's native person representation in the authenticated caller's read transaction.
  • Constructor Summary

    Constructors
    Constructor
    Description
    GrpcPersonService(org.alfresco.service.ServiceRegistry services, org.alfresco.rest.api.People people)
    Creates the adapter for native person profiles and capabilities.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    getPerson(org.saidone.restless.api.GetPersonRequest request, io.grpc.stub.StreamObserver<org.saidone.restless.api.PersonInfo> observer)
    Resolves a person as the authenticated caller in a read-only transaction.

    Methods inherited from class org.saidone.restless.api.PersonServiceGrpc.PersonServiceImplBase

    bindService

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GrpcPersonService

      public GrpcPersonService(org.alfresco.service.ServiceRegistry services, org.alfresco.rest.api.People people)
      Creates the adapter for native person profiles and capabilities.
      Parameters:
      services - repository service registry for caller-scoped transactions
      people - native Alfresco person API
  • Method Details

    • getPerson

      public void getPerson(org.saidone.restless.api.GetPersonRequest request, io.grpc.stub.StreamObserver<org.saidone.restless.api.PersonInfo> observer)
      Resolves a person as the authenticated caller in a read-only transaction.
      Parameters:
      request - person ID or -me-
      observer - receives the profile or a mapped error, including NOT_FOUND for an unknown person