mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixing mobile related implementations of DeviceManagerService SPI to be able to support newly added getProviderType method
This commit is contained in:
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 {
|
||||||
|
|
||||||
|
|||||||
@ -25,7 +25,15 @@ 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…
Reference in New Issue
Block a user