|
|
|
@ -493,7 +493,8 @@ public class DeviceManagementServiceImpl implements DeviceManagementService {
|
|
|
|
|
|
|
|
|
|
if (HttpReportingUtil.isTrackerEnabled()) {
|
|
|
|
|
String currentUser = CarbonContext.getThreadLocalCarbonContext().getUsername();
|
|
|
|
|
JSONObject obj = new JSONObject(DeviceAPIClientServiceImpl.returnUser(currentUser));
|
|
|
|
|
DeviceAPIClientService deviceAPIClientService = DeviceMgtAPIUtils.getDeviceAPIClientService();
|
|
|
|
|
JSONObject obj = new JSONObject(deviceAPIClientService.returnUser(currentUser));
|
|
|
|
|
|
|
|
|
|
if (obj.has("error")) {
|
|
|
|
|
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(obj.getString("error")).build();
|
|
|
|
@ -503,7 +504,6 @@ public class DeviceManagementServiceImpl implements DeviceManagementService {
|
|
|
|
|
/*Get Device Id List*/
|
|
|
|
|
try {
|
|
|
|
|
DeviceManagementProviderService dms = DeviceMgtAPIUtils.getDeviceManagementService();
|
|
|
|
|
DeviceAPIClientService deviceAPIClientService = DeviceMgtAPIUtils.getDeviceAPIClientService();
|
|
|
|
|
DeviceAccessAuthorizationService deviceAccessAuthorizationService =
|
|
|
|
|
DeviceMgtAPIUtils.getDeviceAccessAuthorizationService();
|
|
|
|
|
PaginationRequest request = new PaginationRequest(0, 0);
|
|
|
|
|