Package io.deephaven.auth.codegen.impl
Interface HierarchicalTableServiceContextualAuthWiring
- All Known Implementing Classes:
HierarchicalTableServiceContextualAuthWiring.AllowAll
,HierarchicalTableServiceContextualAuthWiring.DelegateAll
,HierarchicalTableServiceContextualAuthWiring.DenyAll
,HierarchicalTableServiceContextualAuthWiring.TestUseOnly
public interface HierarchicalTableServiceContextualAuthWiring
This interface provides type-safe authorization hooks for HierarchicalTableServiceGrpc.
-
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
checkPermissionApply
(AuthContext authContext, HierarchicalTableApplyRequest request, List<Table> sourceTables) Authorize a request to Apply.void
checkPermissionExportSource
(AuthContext authContext, HierarchicalTableSourceExportRequest request, List<Table> sourceTables) Authorize a request to ExportSource.void
checkPermissionRollup
(AuthContext authContext, RollupRequest request, List<Table> sourceTables) Authorize a request to Rollup.void
checkPermissionTree
(AuthContext authContext, TreeRequest request, List<Table> sourceTables) Authorize a request to Tree.void
checkPermissionView
(AuthContext authContext, HierarchicalTableViewRequest request, List<Table> sourceTables) Authorize a request to View.
-
Method Details
-
checkPermissionRollup
void checkPermissionRollup(AuthContext authContext, RollupRequest request, List<Table> sourceTables) Authorize a request to Rollup.- 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 Rollup
-
checkPermissionTree
Authorize a request to Tree.- 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 Tree
-
checkPermissionApply
void checkPermissionApply(AuthContext authContext, HierarchicalTableApplyRequest request, List<Table> sourceTables) Authorize a request to Apply.- 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 Apply
-
checkPermissionView
void checkPermissionView(AuthContext authContext, HierarchicalTableViewRequest request, List<Table> sourceTables) Authorize a request to View.- 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 View
-
checkPermissionExportSource
void checkPermissionExportSource(AuthContext authContext, HierarchicalTableSourceExportRequest request, List<Table> sourceTables) Authorize a request to ExportSource.- 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 ExportSource
-