Interface SchemaServiceAuthenticatedMutator

All Superinterfaces:
AutoCloseable, NamedImplementation, SchemaService
All Known Implementing Classes:
SchemaServiceEmptyTransientImpl, SchemaServiceEtcdImpl, SchemaServiceKvImpl

public interface SchemaServiceAuthenticatedMutator extends SchemaService
Extend SchemaService with mutating methods that accept UserContext. These methods are to be used only in contexts where the user is authenticated by the caller.
Deephaven internal use only.
  • Method Details

    • createNamespace

      boolean createNamespace(@NotNull NamespaceSet namespaceSet, @NotNull String namespaceName, @NotNull io.deephaven.enterprise.auth.UserContext userContext, @NotNull String code, @NotNull String comment)
      Parameters:
      namespaceSet - add namespaceName to this namespace set
      namespaceName - name of the new namespace
      userContext - pass-thru to kv persistence, indicates the user making this change
      code - pass-thru to kv persistence, indicates the code source of this change
      comment - pass-thru to kv persistence - a comment for this change
      Returns:
      true if the namespace was created, false if it already exists
      Throws:
      SchemaException - if the namespace could not be added to the given namespace set
    • removeNamespace

      void removeNamespace(@NotNull String namespaceName, @NotNull io.deephaven.enterprise.auth.UserContext userContext, @NotNull String code, @NotNull String comment)
      Parameters:
      namespaceName - name of the namespace
      userContext - pass-thru to kv persistence, indicates the user making this change
      code - pass-thru to kv persistence, indicates the code source of this change
      comment - pass-thru to kv persistence - a comment for this change
    • addSchema

      Schema addSchema(@NotNull Schema newSchema, @NotNull io.deephaven.enterprise.auth.UserContext userContext, @NotNull String code, @NotNull String comment) throws SchemaException
      Adds a UserContext parameter to SchemaService.addSchema(Schema, String, String)
      Parameters:
      newSchema - the schema to add
      userContext - pass-thru to kv persistence, indicates the user making this change
      code - pass-thru to kv persistence, indicates the code source of this change
      comment - pass-thru to kv persistence - a comment for this change
      Throws:
      SchemaException
    • updateSchema

      Schema updateSchema(@NotNull Schema newSchema, @NotNull io.deephaven.enterprise.auth.UserContext userContext, @NotNull String code, @NotNull String comment) throws IllegalArgumentException, SchemaException
      Parameters:
      newSchema - the schema to update
      userContext - pass-thru to kv persistence, indicates the user making this change
      code - pass-thru to kv persistence, indicates the code source of this change
      comment - pass-thru to kv persistence - a comment for this change
      Throws:
      IllegalArgumentException
      SchemaException
    • deleteSchema

      void deleteSchema(@NotNull String namespace, @NotNull String tableName, @NotNull io.deephaven.enterprise.auth.UserContext userContext, @NotNull String code, @NotNull String comment) throws IllegalArgumentException, SchemaException
      Parameters:
      namespace - the namespace of the schema to delete
      tableName - the name of the schema to delete
      userContext - pass-thru to kv persistence, indicates the user making this change
      code - pass-thru to kv persistence, indicates the code source of this change
      comment - pass-thru to kv persistence - a comment for this change
      Throws:
      IllegalArgumentException
      SchemaException