mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Update sendDeviceNameChangedNotification
This commit is contained in:
parent
071b9486bb
commit
5cf7377a85
@ -618,7 +618,7 @@ public class DeviceManagementServiceImpl implements DeviceManagementService {
|
|||||||
persistedDevice.setName(device.getName());
|
persistedDevice.setName(device.getName());
|
||||||
System.out.println("This is rename device");
|
System.out.println("This is rename device");
|
||||||
boolean responseOfmodifyEnrollment = deviceManagementProviderService.modifyEnrollment(persistedDevice);
|
boolean responseOfmodifyEnrollment = deviceManagementProviderService.modifyEnrollment(persistedDevice);
|
||||||
boolean responseOfDeviceNameChanged = deviceManagementProviderService.SendDeviceNameChangedNotification(
|
boolean responseOfDeviceNameChanged = deviceManagementProviderService.sendDeviceNameChangedNotification(
|
||||||
persistedDevice);
|
persistedDevice);
|
||||||
boolean response = responseOfmodifyEnrollment && responseOfDeviceNameChanged;
|
boolean response = responseOfmodifyEnrollment && responseOfDeviceNameChanged;
|
||||||
|
|
||||||
|
|||||||
@ -1031,5 +1031,5 @@ public interface DeviceManagementProviderService {
|
|||||||
PaginationResult getDevicesDetails(PaginationRequest request, List<Integer> devicesIds, String groupName)
|
PaginationResult getDevicesDetails(PaginationRequest request, List<Integer> devicesIds, String groupName)
|
||||||
throws DeviceManagementException;
|
throws DeviceManagementException;
|
||||||
|
|
||||||
Boolean SendDeviceNameChangedNotification(Device device) throws DeviceManagementException;
|
Boolean sendDeviceNameChangedNotification(Device device) throws DeviceManagementException;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4878,7 +4878,7 @@ public class DeviceManagementProviderServiceImpl implements DeviceManagementProv
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Boolean SendDeviceNameChangedNotification(Device device) throws DeviceManagementException {
|
public Boolean sendDeviceNameChangedNotification(Device device) throws DeviceManagementException {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ProfileOperation operation = new ProfileOperation();
|
ProfileOperation operation = new ProfileOperation();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user