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.
  • Method Details

    • checkPermissionRollup

      void checkPermissionRollup(AuthContext authContext, RollupRequest request, List<Table> sourceTables)
      Authorize a request to Rollup.
      Parameters:
      authContext - the authentication context of the request
      request - the request to authorize
      sourceTables - the operation's source tables
      Throws:
      io.grpc.StatusRuntimeException - if the user is not authorized to invoke Rollup
    • checkPermissionTree

      void checkPermissionTree(AuthContext authContext, TreeRequest request, List<Table> sourceTables)
      Authorize a request to Tree.
      Parameters:
      authContext - the authentication context of the request
      request - the request to authorize
      sourceTables - 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 request
      request - the request to authorize
      sourceTables - 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 request
      request - the request to authorize
      sourceTables - 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 request
      request - the request to authorize
      sourceTables - the operation's source tables
      Throws:
      io.grpc.StatusRuntimeException - if the user is not authorized to invoke ExportSource