Class AccountResource
java.lang.Object
com.illumon.iris.db.v2.permissions.rs.AccountResource
@Path("/")
@Consumes("application/json")
@Produces("application/json")
public class AccountResource
extends Object
Acl Account resource that is a sub resource of Strategy. Defines all REST operations supported for
/acl/strategy/accounts uri. Produces and consumes
MediaType.APPLICATION_JSON-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.deephaven.shadow.resteasy.javax.ws.rs.core.ResponseaddStrategyAccount(StrategyAccount strategyAccount, javax.servlet.http.HttpServletRequest request) Adds the strategy to account mapping.io.deephaven.shadow.resteasy.javax.ws.rs.core.ResponsedeleteStrategyAccount(String accountId, String strategy, javax.servlet.http.HttpServletRequest request) Deletes the strategy to account mapping.
-
Constructor Details
-
AccountResource
public AccountResource()
-
-
Method Details
-
addStrategyAccount
@POST public io.deephaven.shadow.resteasy.javax.ws.rs.core.Response addStrategyAccount(@NotNull StrategyAccount strategyAccount, @Context javax.servlet.http.HttpServletRequest request) throws DbAclCheckedException Adds the strategy to account mapping.- Parameters:
strategyAccount- instance of account entity that holds the account id and strategy id mapping to addrequest- TheHttpServletRequestretrieved from context- Returns:
Responsewith status code ofResponse.Status.CREATED- Throws:
DbAclCheckedException- upon failure to add strategy to account mapping
-
deleteStrategyAccount
@DELETE @Path("{accountId}") public io.deephaven.shadow.resteasy.javax.ws.rs.core.Response deleteStrategyAccount(@PathParam("accountId") String accountId, @QueryParam("strategy") String strategy, @Context javax.servlet.http.HttpServletRequest request) throws DbAclCheckedException Deletes the strategy to account mapping.- Parameters:
accountId- identifier of the account to be mapped included as a path parameterstrategy- identifier of strategy to be mapped included as a query parameterrequest- TheHttpServletRequestretrieved from context- Returns:
Responsewith status code ofResponse.Status.NO_CONTENT- Throws:
DbAclCheckedException- upon failure to delete strategy to account mapping
-