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
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 TypeMethodDescriptionvoidcheckPermissionApply(AuthContext authContext, HierarchicalTableApplyRequest request, List<Table> sourceTables) Authorize a request to Apply.voidcheckPermissionExportSource(AuthContext authContext, HierarchicalTableSourceExportRequest request, List<Table> sourceTables) Authorize a request to ExportSource.voidcheckPermissionRollup(AuthContext authContext, RollupRequest request, List<Table> sourceTables) Authorize a request to Rollup.voidcheckPermissionTree(AuthContext authContext, TreeRequest request, List<Table> sourceTables) Authorize a request to Tree.voidcheckPermissionView(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
-