| Constructor and Description |
|---|
DeviceImpl() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
disenrollDevice(String deviceType,
String deviceId)
disenroll device.
|
javax.ws.rs.core.Response |
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.
|
javax.ws.rs.core.Response |
getDeviceCount()
Get current device count
|
javax.ws.rs.core.Response |
getDeviceCountOfUser(String user)
Fetch device count of a given user.
|
javax.ws.rs.core.Response |
getDeviceOfUser(String user)
Fetch device details of a given user.
|
javax.ws.rs.core.Response |
getDevicesByName(String deviceName,
String tenantDomain)
Get the list of devices that matches with the given name.
|
javax.ws.rs.core.Response |
getDeviceTypes()
Get the list of available device types.
|
javax.ws.rs.core.Response |
updateDevice(String deviceType,
String deviceId,
org.wso2.carbon.device.mgt.common.Device updatedDevice)
Update device.
|
public javax.ws.rs.core.Response 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)
getAllDevices in interface Devicepublic javax.ws.rs.core.Response getDevice(String type, String id)
public javax.ws.rs.core.Response getDeviceOfUser(String user)
getDeviceOfUser in interface Deviceuser - User Namepublic javax.ws.rs.core.Response getDeviceCountOfUser(String user)
getDeviceCountOfUser in interface Deviceuser - User Namepublic javax.ws.rs.core.Response getDeviceCount()
getDeviceCount in interface Devicepublic javax.ws.rs.core.Response getDevicesByName(String deviceName, String tenantDomain)
getDevicesByName in interface DevicedeviceName - Device nametenantDomain - Callee tenant domainpublic javax.ws.rs.core.Response getDeviceTypes()
getDeviceTypes in interface Devicepublic javax.ws.rs.core.Response updateDevice(String deviceType, String deviceId, org.wso2.carbon.device.mgt.common.Device updatedDevice)
updateDevice in interface Devicepublic javax.ws.rs.core.Response disenrollDevice(String deviceType, String deviceId)
disenrollDevice in interface DeviceCopyright © 2016 WSO2. All rights reserved.