-
- All Implemented Interfaces:
-
io.grpc.BindableService
public abstract class PermissionsServiceGrpc.PermissionsServiceImplBase implements BindableServicePermissionsService implements a set of RPCs that perform operations on relationships and permissions.
-
-
Method Summary
Modifier and Type Method Description voidreadRelationships(PermissionService.ReadRelationshipsRequest request, StreamObserver<PermissionService.ReadRelationshipsResponse> responseObserver)ReadRelationships reads a set of the relationships matching one or more filters.voidwriteRelationships(PermissionService.WriteRelationshipsRequest request, StreamObserver<PermissionService.WriteRelationshipsResponse> responseObserver)WriteRelationships atomically writes and/or deletes a set of specified relationships. An optional set of preconditions can be provided that must be satisfied for the operation to commit.voiddeleteRelationships(PermissionService.DeleteRelationshipsRequest request, StreamObserver<PermissionService.DeleteRelationshipsResponse> responseObserver)DeleteRelationships atomically bulk deletes all relationships matching the provided filter. If no relationships match, none will be deleted and the operation will succeed. An optional set of preconditions can be provided that must be satisfied for the operation to commit.voidcheckPermission(PermissionService.CheckPermissionRequest request, StreamObserver<PermissionService.CheckPermissionResponse> responseObserver)CheckPermission determines for a given resource whether a subject computes to having a permission or is a direct member of a particular relation.voidexpandPermissionTree(PermissionService.ExpandPermissionTreeRequest request, StreamObserver<PermissionService.ExpandPermissionTreeResponse> responseObserver)ExpandPermissionTree reveals the graph structure for a resource's permission or relation. This RPC does not recurse infinitely deep and may require multiple calls to fully unnest a deeply nested graph.voidlookupResources(PermissionService.LookupResourcesRequest request, StreamObserver<PermissionService.LookupResourcesResponse> responseObserver)LookupResources returns all the resources of a given type that a subject can access whether via a computed permission or relation membership.voidlookupSubjects(PermissionService.LookupSubjectsRequest request, StreamObserver<PermissionService.LookupSubjectsResponse> responseObserver)LookupSubjects returns all the subjects of a given type that have access whether via a computed permission or relation membership.final ServerServiceDefinitionbindService()-
-
Method Detail
-
readRelationships
void readRelationships(PermissionService.ReadRelationshipsRequest request, StreamObserver<PermissionService.ReadRelationshipsResponse> responseObserver)
ReadRelationships reads a set of the relationships matching one or more filters.
-
writeRelationships
void writeRelationships(PermissionService.WriteRelationshipsRequest request, StreamObserver<PermissionService.WriteRelationshipsResponse> responseObserver)
WriteRelationships atomically writes and/or deletes a set of specified relationships. An optional set of preconditions can be provided that must be satisfied for the operation to commit.
-
deleteRelationships
void deleteRelationships(PermissionService.DeleteRelationshipsRequest request, StreamObserver<PermissionService.DeleteRelationshipsResponse> responseObserver)
DeleteRelationships atomically bulk deletes all relationships matching the provided filter. If no relationships match, none will be deleted and the operation will succeed. An optional set of preconditions can be provided that must be satisfied for the operation to commit.
-
checkPermission
void checkPermission(PermissionService.CheckPermissionRequest request, StreamObserver<PermissionService.CheckPermissionResponse> responseObserver)
CheckPermission determines for a given resource whether a subject computes to having a permission or is a direct member of a particular relation.
-
expandPermissionTree
void expandPermissionTree(PermissionService.ExpandPermissionTreeRequest request, StreamObserver<PermissionService.ExpandPermissionTreeResponse> responseObserver)
ExpandPermissionTree reveals the graph structure for a resource's permission or relation. This RPC does not recurse infinitely deep and may require multiple calls to fully unnest a deeply nested graph.
-
lookupResources
void lookupResources(PermissionService.LookupResourcesRequest request, StreamObserver<PermissionService.LookupResourcesResponse> responseObserver)
LookupResources returns all the resources of a given type that a subject can access whether via a computed permission or relation membership.
-
lookupSubjects
void lookupSubjects(PermissionService.LookupSubjectsRequest request, StreamObserver<PermissionService.LookupSubjectsResponse> responseObserver)
LookupSubjects returns all the subjects of a given type that have access whether via a computed permission or relation membership.
-
bindService
final ServerServiceDefinition bindService()
-
-
-
-