@Path(value="/rest/gateways") @Produces(value="application/json") @Consumes(value="application/json") @RolesAllowed(value="User") public class GatewayHandler extends AccessEngine
NO_ACCESS_MESSAGE
Constructor and Description |
---|
GatewayHandler() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addGateway(GatewayConfig gatewayConfig) |
javax.ws.rs.core.Response |
deleteGateways(List<Integer> ids) |
javax.ws.rs.core.Response |
enableGateway(List<Integer> ids) |
javax.ws.rs.core.Response |
enableGateways(List<Integer> ids) |
javax.ws.rs.core.Response |
executeNodeDiscover(List<Integer> ids) |
javax.ws.rs.core.Response |
executeNodeInfoUpdate(List<Integer> ids) |
javax.ws.rs.core.Response |
getAllGateways(List<String> name,
String networkType,
String type,
String state,
Long pageLimit,
Long page,
String orderBy,
String order) |
javax.ws.rs.core.Response |
getGateway(Integer gatewayId) |
javax.ws.rs.core.Response |
getStatistics(Integer gatewayId) |
javax.ws.rs.core.Response |
reloadGateways(List<Integer> ids) |
javax.ws.rs.core.Response |
updateGateway(GatewayConfig gatewayConfig) |
getUser, hasAccessGateway, hasAccessNode, hasAccessSensor, hasAccessSensorVariable, isSuperAdmin, updateGatewayIds, updateNodeIds, updateSensorIds, updateSensorVariableIds
@PUT @Path(value="/") public javax.ws.rs.core.Response updateGateway(GatewayConfig gatewayConfig)
@RolesAllowed(value="admin") @POST @Path(value="/") public javax.ws.rs.core.Response addGateway(GatewayConfig gatewayConfig)
@GET @Path(value="/{id}") public javax.ws.rs.core.Response getGateway(@PathParam(value="id") Integer gatewayId)
@GET @Path(value="/statistics/{id}") public javax.ws.rs.core.Response getStatistics(@PathParam(value="id") Integer gatewayId)
@GET @Path(value="/") public javax.ws.rs.core.Response getAllGateways(@QueryParam(value="name") List<String> name, @QueryParam(value="networkType") String networkType, @QueryParam(value="type") String type, @QueryParam(value="state") String state, @QueryParam(value="pageLimit") Long pageLimit, @QueryParam(value="page") Long page, @QueryParam(value="orderBy") String orderBy, @QueryParam(value="order") String order)
@POST @Path(value="/delete") public javax.ws.rs.core.Response deleteGateways(List<Integer> ids)
@POST @Path(value="/enable") public javax.ws.rs.core.Response enableGateway(List<Integer> ids)
@POST @Path(value="/disable") public javax.ws.rs.core.Response enableGateways(List<Integer> ids)
@POST @Path(value="/reload") public javax.ws.rs.core.Response reloadGateways(List<Integer> ids)
@POST @Path(value="/discover") public javax.ws.rs.core.Response executeNodeDiscover(List<Integer> ids)
Copyright © 2015–2019. All rights reserved.