Package org.saidone.restless.client
Class GroupServiceClient
java.lang.Object
org.saidone.restless.client.GroupServiceClient
Reads group memberships under the shared Alfresco ticket.
-
Constructor Summary
ConstructorsConstructorDescriptionGroupServiceClient(io.grpc.Channel channel, TicketProvider tickets, Duration deadline) Uses the supplied gRPC channel and borrows it for the lifetime of the client.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. -
Method Summary
Modifier and TypeMethodDescriptionorg.saidone.restless.api.GroupsByPersonResponsegetGroupsByPersonId(org.saidone.restless.api.GroupsByPersonRequest request) Lists memberships visible to the authenticated caller.
-
Constructor Details
-
GroupServiceClient
Uses the supplied gRPC channel and borrows it for the lifetime of the client.- Parameters:
channel- caller-owned gRPC channeltickets- provider of the authenticated Alfresco caller's ticketdeadline- 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 stubtickets- provider of the authenticated Alfresco caller's ticketdeadline- 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
-