From d5d332e91c76c6a78906007567f4805369acf6c5 Mon Sep 17 00:00:00 2001 From: harshanL Date: Fri, 5 Dec 2014 11:39:19 +0530 Subject: [PATCH] Added updateDeviceInfo method to DeviceManagerService. --- .../carbon/device/mgt/common/spi/DeviceManagerService.java | 7 +++++++ .../mobile/impl/android/AndroidDeviceManagerService.java | 5 +++++ .../mgt/mobile/impl/ios/IOSDeviceManagerService.java | 5 +++++ .../mobile/impl/windows/WindowsDeviceManagerService.java | 5 +++++ 4 files changed, 22 insertions(+) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/spi/DeviceManagerService.java b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/spi/DeviceManagerService.java index 45b674228..97beb26c6 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/spi/DeviceManagerService.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/spi/DeviceManagerService.java @@ -91,6 +91,13 @@ public interface DeviceManagerService { */ Device getDeviceInfo(String type, String deviceId) throws DeviceManagementException; + /** + * Method to update device information. + * @param device Updated device information related data + * @throws DeviceManagementException If some unusual behaviour is observed while enrolling a device + */ + void updateDeviceInfo(Device device) throws DeviceManagementException; + /** * Method to set the ownership type of a particular device. i.e. BYOD, COPE * @param ownershipType Type of ownership diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/android/AndroidDeviceManagerService.java b/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/android/AndroidDeviceManagerService.java index 74a046cba..8fc7947bf 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/android/AndroidDeviceManagerService.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/android/AndroidDeviceManagerService.java @@ -71,6 +71,11 @@ public class AndroidDeviceManagerService implements DeviceManagerService { return null; } + @Override + public void updateDeviceInfo(Device device) throws DeviceManagementException{ + + } + @Override public void setOwnership(String ownershipType) throws DeviceManagementException { diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/ios/IOSDeviceManagerService.java b/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/ios/IOSDeviceManagerService.java index 1907f2636..9bb604646 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/ios/IOSDeviceManagerService.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/ios/IOSDeviceManagerService.java @@ -70,6 +70,11 @@ public class IOSDeviceManagerService implements DeviceManagerService { return null; } + @Override + public void updateDeviceInfo(Device device) throws DeviceManagementException{ + + } + @Override public void setOwnership(String ownershipType) throws DeviceManagementException { diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/windows/WindowsDeviceManagerService.java b/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/windows/WindowsDeviceManagerService.java index 98a339448..d0447d2dd 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/windows/WindowsDeviceManagerService.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/windows/WindowsDeviceManagerService.java @@ -70,6 +70,11 @@ public class WindowsDeviceManagerService implements DeviceManagerService{ return null; } + @Override + public void updateDeviceInfo(Device device) throws DeviceManagementException{ + + } + @Override public void setOwnership(String ownershipType) throws DeviceManagementException {