|
|
|
@ -511,12 +511,13 @@ public class DeviceManagementServiceImpl implements DeviceManagementService {
|
|
|
|
|
Device persistedDevice = deviceManagementProviderService.getDevice(new DeviceIdentifier
|
|
|
|
|
(deviceId, deviceType), true);
|
|
|
|
|
persistedDevice.setName(device.getName());
|
|
|
|
|
System.out.println("This is renamed device");
|
|
|
|
|
System.out.println("This is rename device");
|
|
|
|
|
boolean responseOfmodifyEnrollment = deviceManagementProviderService.modifyEnrollment(persistedDevice);
|
|
|
|
|
boolean responseOfDeviceNameChanged = deviceManagementProviderService.sendDeviceNameChangedNotification(
|
|
|
|
|
persistedDevice);
|
|
|
|
|
boolean response = responseOfmodifyEnrollment && responseOfDeviceNameChanged;
|
|
|
|
|
System.out.println("Rename Device " + message);
|
|
|
|
|
|
|
|
|
|
String message = "Rename Device";
|
|
|
|
|
|
|
|
|
|
// End measuring API call response time
|
|
|
|
|
long endTime = System.currentTimeMillis();
|
|
|
|
|