Class PersonServiceClient

java.lang.Object
org.saidone.restless.client.PersonServiceClient

public final class PersonServiceClient extends Object
Reads person profiles using the shared Alfresco ticket and call deadline.
  • Constructor Details

    • PersonServiceClient

      public PersonServiceClient(io.grpc.Channel channel, TicketProvider tickets, Duration deadline)
      Uses the supplied gRPC channel and borrows it for the lifetime of the client.
      Parameters:
      channel - caller-owned gRPC channel
      tickets - provider of the authenticated Alfresco caller's ticket
      deadline - per-attempt RPC deadline
    • PersonServiceClient

      public PersonServiceClient(org.saidone.restless.api.PersonServiceGrpc.PersonServiceBlockingStub stub, TicketProvider tickets, Duration deadline)
      Uses a preconfigured stub and retains its call options, applying the per-attempt deadline.
      Parameters:
      stub - caller-supplied service stub
      tickets - provider of the authenticated Alfresco caller's ticket
      deadline - per-attempt RPC deadline
  • Method Details

    • getPerson

      public org.saidone.restless.api.PersonInfo getPerson(String personId)
      Looks up a person by ID. Use -me- for the authenticated caller.