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 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 add
      request - The HttpServletRequest retrieved from context
      Returns:
      Response with status code of Response.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 parameter
      strategy - identifier of strategy to be mapped included as a query parameter
      request - The HttpServletRequest retrieved from context
      Returns:
      Response with status code of Response.Status.NO_CONTENT
      Throws:
      DbAclCheckedException - upon failure to delete strategy to account mapping