|
|
|
@ -109,9 +109,9 @@ public class DeviceStatusFilterServiceImpl implements DeviceStatusFilterService
|
|
|
|
|
try {
|
|
|
|
|
DeviceStatusManagementService deviceManagementProviderService = DeviceMgtAPIUtils.getDeviceStatusManagmentService();
|
|
|
|
|
deviceManagementProviderService.updateDefaultDeviceStatusFilters(tenantId, deviceType, deviceStatus);
|
|
|
|
|
return Response.status(Response.Status.OK).entity("Successfully updated device status filters for" + deviceType).build();
|
|
|
|
|
return Response.status(Response.Status.OK).entity("Successfully updated device status filters for " + deviceType).build();
|
|
|
|
|
} catch (MetadataManagementException e) {
|
|
|
|
|
String msg = "Error occurred while updating device status for" + deviceType;
|
|
|
|
|
String msg = "Error occurred while updating device status for " + deviceType;
|
|
|
|
|
log.error(msg, e);
|
|
|
|
|
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(msg).build();
|
|
|
|
|
}
|
|
|
|
|