Remove app list from device info update service

revert-70aa11f8
manoj 10 years ago
parent 2d5d0bb4f8
commit 6c80688af2

@ -121,7 +121,7 @@ public interface DeviceManager {
* @param device Updated device information related data * @param device Updated device information related data
* @throws DeviceManagementException If some unusual behaviour is observed while updating the device info * @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. * Method to set the ownership type of a particular device. i.e. BYOD, COPE.

@ -378,10 +378,9 @@ public class DeviceManagementServiceProviderImpl implements DeviceManagementServ
} }
@Override @Override
public boolean updateDeviceInfo(Device device, List<Application> applicationList) throws DeviceManagementException { public boolean updateDeviceInfo(Device device) throws DeviceManagementException {
DeviceManager dms = DeviceManager dms = this.getPluginRepository().getDeviceManagementProvider(device.getType());
this.getPluginRepository().getDeviceManagementProvider(device.getType()); return dms.updateDeviceInfo(device);
return dms.updateDeviceInfo(device,applicationList);
} }
@Override @Override

@ -98,9 +98,8 @@ public class DeviceManagementServiceImpl implements DeviceManagementService {
} }
@Override @Override
public boolean updateDeviceInfo(Device device, List<Application> applicationList) throws DeviceManagementException { public boolean updateDeviceInfo(Device device) throws DeviceManagementException {
return DeviceManagementDataHolder.getInstance().getDeviceManagementProvider(). return DeviceManagementDataHolder.getInstance().getDeviceManagementProvider().updateDeviceInfo(device);
updateDeviceInfo(device, applicationList);
} }
@Override @Override

@ -79,7 +79,7 @@ public class TestDeviceManager implements DeviceMgtService {
} }
@Override @Override
public boolean updateDeviceInfo(Device device, List<Application> applicationList) throws DeviceManagementException { public boolean updateDeviceInfo(Device device) throws DeviceManagementException {
return false; return false;
} }

Loading…
Cancel
Save