Fixing mobile related implementations of DeviceManagerService SPI to be able to support newly added getProviderType method

revert-70aa11f8
prabathabey 10 years ago
parent d2b39b7152
commit 7ebb6fba4d

@ -27,6 +27,13 @@ import java.util.List;
*/ */
public class AndroidDeviceManagerService implements DeviceManagerService { public class AndroidDeviceManagerService implements DeviceManagerService {
private static final String DEVICE_MANAGER_ANDROID = "android";
@Override
public String getProviderType() {
return DEVICE_MANAGER_ANDROID;
}
@Override @Override
public void enrollDevice(Device device) throws DeviceManagementException { public void enrollDevice(Device device) throws DeviceManagementException {

@ -26,6 +26,14 @@ import java.util.List;
* This represents the iOS implementation of DeviceManagerService. * * This represents the iOS implementation of DeviceManagerService. *
*/ */
public class IOSDeviceManagerService implements DeviceManagerService { public class IOSDeviceManagerService implements DeviceManagerService {
private static final String DEVICE_MANAGER_IOS = "ios";
@Override
public String getProviderType() {
return DEVICE_MANAGER_IOS;
}
@Override @Override
public void enrollDevice(Device device) throws DeviceManagementException { public void enrollDevice(Device device) throws DeviceManagementException {

@ -26,6 +26,14 @@ import java.util.List;
* This represents the Windows implementation of DeviceManagerService. * This represents the Windows implementation of DeviceManagerService.
*/ */
public class WindowsDeviceManagerService implements DeviceManagerService { public class WindowsDeviceManagerService implements DeviceManagerService {
private static final String DEVICE_MANAGER_WINDOWS = "windows";
@Override
public String getProviderType() {
return DEVICE_MANAGER_WINDOWS;
}
@Override @Override
public void enrollDevice(Device device) throws DeviceManagementException { public void enrollDevice(Device device) throws DeviceManagementException {

Loading…
Cancel
Save