public class MobileDevice extends Object
Constructor and Description |
---|
MobileDevice() |
Modifier and Type | Method and Description |
---|---|
Object |
getAllDevices(String type,
String user,
String role,
org.wso2.carbon.device.mgt.common.EnrolmentInfo.Status status,
int startIdx,
int length,
String deviceName,
org.wso2.carbon.device.mgt.common.EnrolmentInfo.OwnerShip ownership)
Get all devices.
|
javax.ws.rs.core.Response |
getDevice(String type,
String id)
Fetch device details for a given device type and device Id.
|
List<org.wso2.carbon.device.mgt.common.Device> |
getDeviceByUser(String user,
String tenantDomain)
Fetch Android device details of a given user.
|
int |
getDeviceCount()
Get current device count
|
List<org.wso2.carbon.device.mgt.common.Device> |
getDevicesByName(String deviceName,
String tenantDomain)
Get the list of devices that matches with the given name.
|
List<org.wso2.carbon.device.mgt.core.dto.DeviceType> |
getDeviceTypes()
Get the list of available device types.
|
public Object getAllDevices(String type, String user, String role, org.wso2.carbon.device.mgt.common.EnrolmentInfo.Status status, int startIdx, int length, String deviceName, org.wso2.carbon.device.mgt.common.EnrolmentInfo.OwnerShip ownership) throws MDMAPIException
MDMAPIException
public javax.ws.rs.core.Response getDevice(String type, String id) throws MDMAPIException
MDMAPIException
public List<org.wso2.carbon.device.mgt.common.Device> getDeviceByUser(String user, String tenantDomain) throws MDMAPIException
user
- User NametenantDomain
- tenant domainMDMAPIException
public int getDeviceCount() throws MDMAPIException
MDMAPIException
public List<org.wso2.carbon.device.mgt.common.Device> getDevicesByName(String deviceName, String tenantDomain) throws MDMAPIException
deviceName
- Device nametenantDomain
- Callee tenant domainMDMAPIException
- If some unusual behaviour is observed while fetching the device listpublic List<org.wso2.carbon.device.mgt.core.dto.DeviceType> getDeviceTypes() throws MDMAPIException
MDMAPIException
- If some unusual behaviour is observed while fetching the device listCopyright © 2016 WSO2. All rights reserved.