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
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA default implementation that allows all requests.static classA default implementation that funnels all requests to invokecheckPermission.static classA default implementation that denies all requests.static class -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckPermissionGetTable(AuthContext authContext, GetTableRequest request, List<Table> sourceTables) Authorize a request to GetTable.voidcheckPermissionMerge(AuthContext authContext, MergeRequest request, List<Table> sourceTables) Authorize a request to Merge.voidcheckPermissionPartitionBy(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
-