@Path(value="/rest/rules") @Produces(value="application/json") @Consumes(value="application/json") @RolesAllowed(value="Admin") public class RuleHandler extends AccessEngine
NO_ACCESS_MESSAGE
Constructor and Description |
---|
RuleHandler() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
add(RuleDefinitionAbstract ruleDefinition) |
javax.ws.rs.core.Response |
deleteIds(List<Integer> ids) |
javax.ws.rs.core.Response |
disableIds(List<Integer> ids) |
javax.ws.rs.core.Response |
enableIds(List<Integer> ids) |
javax.ws.rs.core.Response |
get(int id) |
javax.ws.rs.core.Response |
getAll(List<String> name,
String resourceType,
String conditionType,
String dampeningType,
Boolean triggered,
Boolean enabled,
Long pageLimit,
Long page,
String orderBy,
String order) |
javax.ws.rs.core.Response |
update(RuleDefinitionAbstract ruleDefinition) |
getUser, hasAccessGateway, hasAccessNode, hasAccessSensor, hasAccessSensorVariable, isSuperAdmin, updateGatewayIds, updateNodeIds, updateSensorIds, updateSensorVariableIds
@GET @Path(value="/{id}") public javax.ws.rs.core.Response get(@PathParam(value="id") int id)
@GET @Path(value="/") public javax.ws.rs.core.Response getAll(@QueryParam(value="name") List<String> name, @QueryParam(value="resourceType") String resourceType, @QueryParam(value="conditionType") String conditionType, @QueryParam(value="dampeningType") String dampeningType, @QueryParam(value="triggered") Boolean triggered, @QueryParam(value="enabled") Boolean enabled, @QueryParam(value="pageLimit") Long pageLimit, @QueryParam(value="page") Long page, @QueryParam(value="orderBy") String orderBy, @QueryParam(value="order") String order)
@POST @Path(value="/") public javax.ws.rs.core.Response add(RuleDefinitionAbstract ruleDefinition)
@PUT @Path(value="/") public javax.ws.rs.core.Response update(RuleDefinitionAbstract ruleDefinition)
@POST @Path(value="/delete") public javax.ws.rs.core.Response deleteIds(List<Integer> ids)
@POST @Path(value="/enable") public javax.ws.rs.core.Response enableIds(List<Integer> ids)
Copyright © 2015–2019. All rights reserved.