Class GroupServiceClient

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

public final class GroupServiceClient extends Object
Reads group memberships under the shared Alfresco ticket.
  • Constructor Details

    • GroupServiceClient

      public GroupServiceClient(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
    • GroupServiceClient

      public GroupServiceClient(org.saidone.restless.api.GroupServiceGrpc.GroupServiceBlockingStub 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

    • getGroupsByPersonId

      public org.saidone.restless.api.GroupsByPersonResponse getGroupsByPersonId(org.saidone.restless.api.GroupsByPersonRequest request)
      Lists memberships visible to the authenticated caller. A rejected ticket can be renewed once by the shared provider.
      Parameters:
      request - person ID or -me-, pagination and optional filters
      Returns:
      the membership page and continuation metadata