public class DeviceManagementService extends Object
| Constructor and Description |
|---|
DeviceManagementService() |
| Modifier and Type | Method and Description |
|---|---|
List<org.wso2.carbon.device.mgt.common.Device> |
getAllDevices()
Get all devices.Returns list of Windows devices registered in MDM.
|
org.wso2.carbon.device.mgt.common.Device |
getDevice(String id)
Fetch Windows device details of a given device Id.
|
org.wso2.carbon.device.mgt.common.license.mgt.License |
getLicense()
Fetch the Licence agreement for specific windows platform.
|
Message |
updateDevice(String id,
org.wso2.carbon.device.mgt.common.Device device)
Update Windows device details of given device id.
|
public List<org.wso2.carbon.device.mgt.common.Device> getAllDevices() throws WindowsConfigurationException
WindowsConfigurationException - occurred while retrieving all the devices from DB.public org.wso2.carbon.device.mgt.common.Device getDevice(String id) throws WindowsConfigurationException
id - Device IdWindowsConfigurationException - occurred while getting device from DB.public Message updateDevice(String id, org.wso2.carbon.device.mgt.common.Device device) throws WindowsConfigurationException
id - Device Id.device - Device details to be updated.WindowsConfigurationException - occurred while updating the Device Info.public org.wso2.carbon.device.mgt.common.license.mgt.License getLicense()
throws WindowsConfigurationException
WindowsConfigurationException - occurred while getting licence for specific platform and Language.Copyright © 2016 WSO2. All rights reserved.