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

    • checkPermissionPartitionBy

      void checkPermissionPartitionBy(AuthContext authContext, PartitionByRequest request, List<Table> sourceTables)
      Authorize a request to PartitionBy.
      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 PartitionBy
    • checkPermissionMerge

      void checkPermissionMerge(AuthContext authContext, MergeRequest request, List<Table> sourceTables)
      Authorize a request to Merge.
      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 Merge
    • checkPermissionGetTable

      void checkPermissionGetTable(AuthContext authContext, GetTableRequest request, List<Table> sourceTables)
      Authorize a request to GetTable.
      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 GetTable