Class AclTableEditorResource
java.lang.Object
com.illumon.iris.db.v2.permissions.rs.AclTableEditorResource
@Path("/tableEditor")
@Consumes("application/json")
@Produces("application/json")
public class AclTableEditorResource
extends Object
This manages editing of input tables, by updating the acl database Defines all REST operations supported for
/acl/tableEditor/ uri. Produces and consumes
MediaType.APPLICATION_JSON-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.deephaven.shadow.resteasy.javax.ws.rs.core.ResponseaddInputTableEditor(TableEditorAcl tableEditorAcl) Adds an entry to the ACL database for editing an input table.io.deephaven.shadow.resteasy.javax.ws.rs.core.ResponsedeleteInputTableEditor(String group, String ns, String table) Deletes an entry to the ACL database for editing an input tableio.deephaven.shadow.resteasy.javax.ws.rs.core.ResponseupdateInputTableEditor(TableEditorAcl tableEditorAcl) Updates an entry to the ACL database for editing an input table.
-
Constructor Details
-
AclTableEditorResource
public AclTableEditorResource()
-
-
Method Details
-
addInputTableEditor
@POST public io.deephaven.shadow.resteasy.javax.ws.rs.core.Response addInputTableEditor(@NotNull TableEditorAcl tableEditorAcl) throws DbAclCheckedException Adds an entry to the ACL database for editing an input table.- Parameters:
tableEditorAcl- The acl entity object encompassing group, namespace, table, canEdit properties- Returns:
Responsewith status code ofResponse.Status.CREATED- Throws:
DbAclCheckedException- upon failure to add acl
-
updateInputTableEditor
@PUT public io.deephaven.shadow.resteasy.javax.ws.rs.core.Response updateInputTableEditor(@NotNull TableEditorAcl tableEditorAcl) throws DbAclCheckedException Updates an entry to the ACL database for editing an input table.- Parameters:
tableEditorAcl- The acl entity object encompassing group, namespace, table, canEdit properties- Returns:
Responsewith status code ofResponse.Status.NO_CONTENT- Throws:
DbAclCheckedException- upon failure to update acl
-
deleteInputTableEditor
@DELETE @Path("/{group}") public io.deephaven.shadow.resteasy.javax.ws.rs.core.Response deleteInputTableEditor(@PathParam("group") String group, @QueryParam("ns") String ns, @QueryParam("table") String table) throws DbAclCheckedException Deletes an entry to the ACL database for editing an input table- Parameters:
group- the group to remove the entry forns- the namespace to remove the entry for ("*" for all namespaces)table- the table name to remove the entry for ("*" for tables within a namespace, if ns is "*" table must also be "*")- Returns:
Responsewith status code ofResponse.Status.NO_CONTENT- Throws:
DbAclCheckedException- upon failure to delete acl
-