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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.deephaven.shadow.resteasy.javax.ws.rs.core.Response
addGroupStrategy
(GroupStrategy groupStrategy) Adds the group to strategy mapping.io.deephaven.shadow.resteasy.javax.ws.rs.core.Response
deleteGroupStrategy
(String groupId, String strategyId) Deletes the group to strategy mapping.This directs all invocations of /strategy/accounts toAccountResource
which defines the appropriate actions
-
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 ofResponse.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 parametersgroupId
- identifier of the group in the mapping retrieved from path parameters- Returns:
Response
with status code ofResponse.Status.NO_CONTENT
- Throws:
DbAclCheckedException
- upon failure to delete group to strategy mapping
-
getAccountResource
This directs all invocations of /strategy/accounts toAccountResource
which defines the appropriate actions- Returns:
- new instance of
AccountResource
-