Class AclResource

java.lang.Object
com.illumon.iris.db.v2.permissions.rs.AclResource

@Path("/tableAcl") @Consumes("application/json") @Produces("application/json") public class AclResource extends Object
This is the main Acl resource, manages the table acls. Defines all REST operations supported for /acl/ uri. Produces and consumes MediaType.APPLICATION_JSON
  • Constructor Details

    • AclResource

      public AclResource()
  • Method Details

    • addTableAcl

      @POST public io.deephaven.shadow.resteasy.javax.ws.rs.core.Response addTableAcl(@NotNull TableAcl tableAcl) throws DbAclCheckedException
      Adds provided table acl entry.

      The group and table listed in the TableAcl entity object should not currently exist

      Parameters:
      tableAcl - The acl entity object encompassing group, namespace, table, acl
      Returns:
      Response with status code of Response.Status.CREATED
      Throws:
      DbAclCheckedException - upon failure to add acl
    • updateTableAcl

      @PUT public io.deephaven.shadow.resteasy.javax.ws.rs.core.Response updateTableAcl(@NotNull TableAcl tableAcl) throws DbAclCheckedException
      Updates provided acl entry.

      The group and table(namespace.tablename) listed in the TableAcl entity object should currently exist

      Parameters:
      tableAcl - The acl entity object encompassing group, namespace, table, acl
      Returns:
      Response with status code of Response.Status.NO_CONTENT
      Throws:
      DbAclCheckedException - upon failure to update acl
    • deleteTableAcl

      @DELETE @Path("/{group}") public io.deephaven.shadow.resteasy.javax.ws.rs.core.Response deleteTableAcl(@PathParam("group") String group, @QueryParam("ns") String ns, @QueryParam("table") String table) throws DbAclCheckedException
      Deletes acl entry mapped to the given group, namespace and table.
      Parameters:
      group - the group to remove the entry for
      ns - the namespace to remove the entry for ("*" for all namespaces)
      table - the namespace to remove the entry for ("*" for tables within a namespace, if ns is "*" table must also be "*")
      Returns:
      Response with status code of Response.Status.NO_CONTENT
      Throws:
      DbAclCheckedException - upon failure to delete acl