-
- All Implemented Interfaces:
-
io.grpc.BindableService
public abstract class PermissionsServiceGrpcKt.PermissionsServiceCoroutineImplBase extends AbstractCoroutineServerImplSkeletal implementation of the authzed.api.v1.PermissionsService service based on Kotlin coroutines.
-
-
Field Summary
Fields Modifier and Type Field Description private final CoroutineContextcontext
-
Constructor Summary
Constructors Constructor Description PermissionsServiceGrpcKt.PermissionsServiceCoroutineImplBase(CoroutineContext coroutineContext)
-
Method Summary
Modifier and Type Method Description Flow<PermissionService.ReadRelationshipsResponse>readRelationships(PermissionService.ReadRelationshipsRequest request)Returns a Flow of responses to an RPC for authzed.api.v1.PermissionsService.ReadRelationships. PermissionService.WriteRelationshipsResponsewriteRelationships(PermissionService.WriteRelationshipsRequest request)Returns the response to an RPC for authzed.api.v1.PermissionsService.WriteRelationships. PermissionService.DeleteRelationshipsResponsedeleteRelationships(PermissionService.DeleteRelationshipsRequest request)Returns the response to an RPC for authzed.api.v1.PermissionsService.DeleteRelationships. PermissionService.CheckPermissionResponsecheckPermission(PermissionService.CheckPermissionRequest request)Returns the response to an RPC for authzed.api.v1.PermissionsService.CheckPermission. PermissionService.ExpandPermissionTreeResponseexpandPermissionTree(PermissionService.ExpandPermissionTreeRequest request)Returns the response to an RPC for authzed.api.v1.PermissionsService.ExpandPermissionTree. Flow<PermissionService.LookupResourcesResponse>lookupResources(PermissionService.LookupResourcesRequest request)Returns a Flow of responses to an RPC for authzed.api.v1.PermissionsService.LookupResources. Flow<PermissionService.LookupSubjectsResponse>lookupSubjects(PermissionService.LookupSubjectsRequest request)Returns a Flow of responses to an RPC for authzed.api.v1.PermissionsService.LookupSubjects. final ServerServiceDefinitionbindService()-
-
Constructor Detail
-
PermissionsServiceGrpcKt.PermissionsServiceCoroutineImplBase
PermissionsServiceGrpcKt.PermissionsServiceCoroutineImplBase(CoroutineContext coroutineContext)
-
-
Method Detail
-
readRelationships
Flow<PermissionService.ReadRelationshipsResponse> readRelationships(PermissionService.ReadRelationshipsRequest request)
Returns a Flow of responses to an RPC for authzed.api.v1.PermissionsService.ReadRelationships.
If creating or collecting the returned flow fails with a StatusException, the RPC will fail with the corresponding Status. If it fails with a java.util.concurrent.CancellationException, the RPC will fail with status
Status.CANCELLED. If creating or collecting the returned flow fails for any other reason, the RPC will fail withStatus.UNKNOWNwith the exception as a cause.- Parameters:
request- The request from the client.
-
writeRelationships
PermissionService.WriteRelationshipsResponse writeRelationships(PermissionService.WriteRelationshipsRequest request)
Returns the response to an RPC for authzed.api.v1.PermissionsService.WriteRelationships.
If this method fails with a StatusException, the RPC will fail with the corresponding Status. If this method fails with a java.util.concurrent.CancellationException, the RPC will fail with status
Status.CANCELLED. If this method fails for any other reason, the RPC will fail withStatus.UNKNOWNwith the exception as a cause.- Parameters:
request- The request from the client.
-
deleteRelationships
PermissionService.DeleteRelationshipsResponse deleteRelationships(PermissionService.DeleteRelationshipsRequest request)
Returns the response to an RPC for authzed.api.v1.PermissionsService.DeleteRelationships.
If this method fails with a StatusException, the RPC will fail with the corresponding Status. If this method fails with a java.util.concurrent.CancellationException, the RPC will fail with status
Status.CANCELLED. If this method fails for any other reason, the RPC will fail withStatus.UNKNOWNwith the exception as a cause.- Parameters:
request- The request from the client.
-
checkPermission
PermissionService.CheckPermissionResponse checkPermission(PermissionService.CheckPermissionRequest request)
Returns the response to an RPC for authzed.api.v1.PermissionsService.CheckPermission.
If this method fails with a StatusException, the RPC will fail with the corresponding Status. If this method fails with a java.util.concurrent.CancellationException, the RPC will fail with status
Status.CANCELLED. If this method fails for any other reason, the RPC will fail withStatus.UNKNOWNwith the exception as a cause.- Parameters:
request- The request from the client.
-
expandPermissionTree
PermissionService.ExpandPermissionTreeResponse expandPermissionTree(PermissionService.ExpandPermissionTreeRequest request)
Returns the response to an RPC for authzed.api.v1.PermissionsService.ExpandPermissionTree.
If this method fails with a StatusException, the RPC will fail with the corresponding Status. If this method fails with a java.util.concurrent.CancellationException, the RPC will fail with status
Status.CANCELLED. If this method fails for any other reason, the RPC will fail withStatus.UNKNOWNwith the exception as a cause.- Parameters:
request- The request from the client.
-
lookupResources
Flow<PermissionService.LookupResourcesResponse> lookupResources(PermissionService.LookupResourcesRequest request)
Returns a Flow of responses to an RPC for authzed.api.v1.PermissionsService.LookupResources.
If creating or collecting the returned flow fails with a StatusException, the RPC will fail with the corresponding Status. If it fails with a java.util.concurrent.CancellationException, the RPC will fail with status
Status.CANCELLED. If creating or collecting the returned flow fails for any other reason, the RPC will fail withStatus.UNKNOWNwith the exception as a cause.- Parameters:
request- The request from the client.
-
lookupSubjects
Flow<PermissionService.LookupSubjectsResponse> lookupSubjects(PermissionService.LookupSubjectsRequest request)
Returns a Flow of responses to an RPC for authzed.api.v1.PermissionsService.LookupSubjects.
If creating or collecting the returned flow fails with a StatusException, the RPC will fail with the corresponding Status. If it fails with a java.util.concurrent.CancellationException, the RPC will fail with status
Status.CANCELLED. If creating or collecting the returned flow fails for any other reason, the RPC will fail withStatus.UNKNOWNwith the exception as a cause.- Parameters:
request- The request from the client.
-
bindService
final ServerServiceDefinition bindService()
-
-
-
-