Class SystemUserResource

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

@Path("/systemuser") @Consumes("application/json") @Produces("application/json") public class SystemUserResource extends Object
This is the Acl SystemUser resource, defines all REST operations supported for /acl/systemuser uri. This is used to manage user run-As mapping in the Acl database Produces and consumes MediaType.APPLICATION_JSON
  • Constructor Details

    • SystemUserResource

      public SystemUserResource()
  • Method Details

    • addOrUpdateSystemUserAcl

      @PUT public io.deephaven.shadow.resteasy.javax.ws.rs.core.Response addOrUpdateSystemUserAcl(@NotNull SystemUser systemUser, @Context javax.servlet.http.HttpServletRequest request) throws DbAclCheckedException
      Inserts or Updates an entry to the ACL database for run-as mapping
      Parameters:
      systemUser - System user entity with run-As mapping details
      request - The HttpServletRequest retrieved from context
      Returns:
      Response with status code of Response.Status.NO_CONTENT
      Throws:
      DbAclCheckedException - upon failure to add or update user run-as mapping
    • deleteSystemUserAcl

      @DELETE @Path("/{userId}") public io.deephaven.shadow.resteasy.javax.ws.rs.core.Response deleteSystemUserAcl(@PathParam("userId") String userId, @Context javax.servlet.http.HttpServletRequest request) throws DbAclCheckedException
      Removes run-as mapping for the user id provided in path
      Parameters:
      userId - the user whose system-user mapping is to be deleted
      request - The HttpServletRequest retrieved from context
      Returns:
      Response with status code of Response.Status.NO_CONTENT
      Throws:
      DbAclCheckedException - upon failure to delete the run-as mapping