|
|
@ -40,7 +40,8 @@ public class DeviceStatusFilterServiceImpl implements DeviceStatusFilterService
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
@GET
|
|
|
|
@GET
|
|
|
|
public Response getDeviceStatusFilters(@QueryParam("deviceType") String deviceType) {
|
|
|
|
@Path("/{deviceType}")
|
|
|
|
|
|
|
|
public Response getDeviceStatusFilters(@PathParam("deviceType") String deviceType) {
|
|
|
|
List<String> result;
|
|
|
|
List<String> result;
|
|
|
|
int tenantId = CarbonContext.getThreadLocalCarbonContext().getTenantId();
|
|
|
|
int tenantId = CarbonContext.getThreadLocalCarbonContext().getTenantId();
|
|
|
|
try {
|
|
|
|
try {
|
|
|
@ -76,7 +77,7 @@ public class DeviceStatusFilterServiceImpl implements DeviceStatusFilterService
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
@PUT
|
|
|
|
@PUT
|
|
|
|
@Path("/is-enabled")
|
|
|
|
@Path("/toggle-device-status")
|
|
|
|
public Response updateDeviceStatusCheck(
|
|
|
|
public Response updateDeviceStatusCheck(
|
|
|
|
@QueryParam("isEnabled")
|
|
|
|
@QueryParam("isEnabled")
|
|
|
|
boolean isEnabled) {
|
|
|
|
boolean isEnabled) {
|
|
|
|