mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Refactored updateDeviceInfo function
This commit is contained in:
parent
0f3a981367
commit
6b84d65e29
@ -121,7 +121,7 @@ public interface DeviceManager {
|
||||
* @param device Updated device information related data
|
||||
* @throws DeviceManagementException If some unusual behaviour is observed while updating the device info
|
||||
*/
|
||||
boolean updateDeviceInfo(Device device, List<Application> applicationList) throws DeviceManagementException;
|
||||
boolean updateDeviceInfo(Device device) throws DeviceManagementException;
|
||||
|
||||
/**
|
||||
* Method to set the ownership type of a particular device. i.e. BYOD, COPE.
|
||||
|
||||
@ -19,6 +19,6 @@
|
||||
|
||||
package org.wso2.carbon.device.mgt.common.spi;
|
||||
|
||||
public interface DeviceMgtService extends DeviceManager,AppManager {
|
||||
public interface DeviceMgtService extends DeviceManager, AppManager {
|
||||
|
||||
}
|
||||
|
||||
@ -378,10 +378,10 @@ public class DeviceManagementServiceProviderImpl implements DeviceManagementServ
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean updateDeviceInfo(Device device, List<Application> applicationList) throws DeviceManagementException {
|
||||
public boolean updateDeviceInfo(Device device) throws DeviceManagementException {
|
||||
DeviceManager dms =
|
||||
this.getPluginRepository().getDeviceManagementProvider(device.getType());
|
||||
return dms.updateDeviceInfo(device,applicationList);
|
||||
return dms.updateDeviceInfo(device);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -98,9 +98,9 @@ public class DeviceManagementServiceImpl implements DeviceManagementService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean updateDeviceInfo(Device device, List<Application> applicationList) throws DeviceManagementException {
|
||||
public boolean updateDeviceInfo(Device device) throws DeviceManagementException {
|
||||
return DeviceManagementDataHolder.getInstance().getDeviceManagementProvider().
|
||||
updateDeviceInfo(device, applicationList);
|
||||
updateDeviceInfo(device);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -79,7 +79,7 @@ public class TestDeviceManager implements DeviceMgtService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean updateDeviceInfo(Device device, List<Application> applicationList) throws DeviceManagementException {
|
||||
public boolean updateDeviceInfo(Device device) throws DeviceManagementException {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user