@Path(value="/rest/timers") @Produces(value="application/json") @Consumes(value="application/json") @RolesAllowed(value="Admin") public class TimerHandler extends AccessEngine
NO_ACCESS_MESSAGE
Constructor and Description |
---|
TimerHandler() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
add(Timer timer) |
javax.ws.rs.core.Response |
delete(List<Integer> ids) |
javax.ws.rs.core.Response |
disable(List<Integer> ids) |
javax.ws.rs.core.Response |
enable(List<Integer> ids) |
javax.ws.rs.core.Response |
get(int id) |
javax.ws.rs.core.Response |
getAll(List<String> name,
String timerType,
String frequency,
Boolean enabled,
Long pageLimit,
Long page,
String orderBy,
String order) |
javax.ws.rs.core.Response |
update(Timer timer) |
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="timerType") String timerType, @QueryParam(value="frequency") String frequency, @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)
@PUT @Path(value="/") public javax.ws.rs.core.Response update(Timer timer)
@POST @Path(value="/") public javax.ws.rs.core.Response add(Timer timer)
Copyright © 2015–2019. All rights reserved.