|
|
|
@ -46,11 +46,10 @@ public class DeviceStatusFilterServiceImpl implements DeviceStatusFilterService
|
|
|
|
|
try {
|
|
|
|
|
DeviceStatusManagementService deviceManagementProviderService = DeviceMgtAPIUtils.getDeviceStatusManagmentService();
|
|
|
|
|
result = deviceManagementProviderService.getDeviceStatusFilters(deviceType, tenantId);
|
|
|
|
|
if (result != null && !result.isEmpty()) {
|
|
|
|
|
if (result != null) {
|
|
|
|
|
return Response.status(Response.Status.OK).entity(result).build();
|
|
|
|
|
} else {
|
|
|
|
|
return Response.status(Response.Status.NO_CONTENT).build();
|
|
|
|
|
}
|
|
|
|
|
return Response.status(Response.Status.NO_CONTENT).entity(false).build();
|
|
|
|
|
} catch (MetadataManagementException e) {
|
|
|
|
|
String msg = "Error occurred while getting device status filter of the tenant.";
|
|
|
|
|
log.error(msg, e);
|
|
|
|
|