Class StrategyResource

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

@Path("/strategy") @Consumes("application/json") @Produces("application/json") public class StrategyResource extends Object
This is the Acl Strategy resource, defines all REST operations supported for /acl/strategy uri. Produces and consumes MediaType.APPLICATION_JSON
  • Constructor Details

    • StrategyResource

      public StrategyResource()
  • Method Details

    • addGroupStrategy

      @POST public io.deephaven.shadow.resteasy.javax.ws.rs.core.Response addGroupStrategy(@NotNull GroupStrategy groupStrategy) throws DbAclCheckedException
      Adds the group to strategy mapping.
      Parameters:
      groupStrategy - entity object that contains the groupId and strategy id mapping to add
      Returns:
      Response with status code of Response.Status.CREATED
      Throws:
      DbAclCheckedException - upon failure to add group to strategy mapping
    • deleteGroupStrategy

      @DELETE @Path("/{groupId}") public io.deephaven.shadow.resteasy.javax.ws.rs.core.Response deleteGroupStrategy(@PathParam("groupId") String groupId, @QueryParam("strategyId") String strategyId) throws DbAclCheckedException
      Deletes the group to strategy mapping.
      Parameters:
      strategyId - identifier of strategy in the mapping retrieved from query parameters
      groupId - identifier of the group in the mapping retrieved from path parameters
      Returns:
      Response with status code of Response.Status.NO_CONTENT
      Throws:
      DbAclCheckedException - upon failure to delete group to strategy mapping
    • getAccountResource

      @Path("/accounts") public AccountResource getAccountResource()
      This directs all invocations of /strategy/accounts to AccountResource which defines the appropriate actions
      Returns:
      new instance of AccountResource