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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.deephaven.shadow.resteasy.javax.ws.rs.core.Response
addOrUpdateSystemUserAcl
(SystemUser systemUser, javax.servlet.http.HttpServletRequest request) Inserts or Updates an entry to the ACL database for run-as mappingio.deephaven.shadow.resteasy.javax.ws.rs.core.Response
deleteSystemUserAcl
(String userId, javax.servlet.http.HttpServletRequest request) Removes run-as mapping for the user id provided in path
-
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 detailsrequest
- TheHttpServletRequest
retrieved from context- Returns:
Response
with status code ofResponse.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 deletedrequest
- TheHttpServletRequest
retrieved from context- Returns:
Response
with status code ofResponse.Status.NO_CONTENT
- Throws:
DbAclCheckedException
- upon failure to delete the run-as mapping
-