Package io.deephaven.auth.codegen.impl
Interface PartitionedTableServiceContextualAuthWiring
- All Known Implementing Classes:
PartitionedTableServiceContextualAuthWiring.AllowAll
,PartitionedTableServiceContextualAuthWiring.DelegateAll
,PartitionedTableServiceContextualAuthWiring.DenyAll
,PartitionedTableServiceContextualAuthWiring.TestUseOnly
public interface PartitionedTableServiceContextualAuthWiring
This interface provides type-safe authorization hooks for PartitionedTableServiceGrpc.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
A default implementation that allows all requests.static class
A default implementation that funnels all requests to invokecheckPermission
.static class
A default implementation that denies all requests.static class
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkPermissionGetTable
(AuthContext authContext, GetTableRequest request, List<Table> sourceTables) Authorize a request to GetTable.void
checkPermissionMerge
(AuthContext authContext, MergeRequest request, List<Table> sourceTables) Authorize a request to Merge.void
checkPermissionPartitionBy
(AuthContext authContext, PartitionByRequest request, List<Table> sourceTables) Authorize a request to PartitionBy.
-
Method Details
-
checkPermissionPartitionBy
void checkPermissionPartitionBy(AuthContext authContext, PartitionByRequest request, List<Table> sourceTables) Authorize a request to PartitionBy.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorizesourceTables
- the operation's source tables- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke PartitionBy
-
checkPermissionMerge
Authorize a request to Merge.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorizesourceTables
- the operation's source tables- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke Merge
-
checkPermissionGetTable
void checkPermissionGetTable(AuthContext authContext, GetTableRequest request, List<Table> sourceTables) Authorize a request to GetTable.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorizesourceTables
- the operation's source tables- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke GetTable
-