public interface DeviceManager
| Modifier and Type | Method and Description |
|---|---|
void |
addLicense(License license) |
boolean |
disenrollDevice(DeviceIdentifier deviceId)
Method to disenroll a particular device from CDM.
|
boolean |
enrollDevice(Device device)
Method to enrolling a particular device of type mobile, IoT, etc within CDM.
|
List<Device> |
getAllDevices()
Method to retrieve metadata of all devices registered within CDM corresponding to a particular device type.
|
PlatformConfiguration |
getConfiguration()
Method to get platform specific Configuration.
|
Device |
getDevice(DeviceIdentifier deviceId)
Method to retrieve metadata of a device corresponding to a particular type that carries a specific identifier.
|
FeatureManager |
getFeatureManager()
Method to return feature manager implementation associated with a particular platform-specific plugin.
|
License |
getLicense(String languageCode) |
boolean |
isActive(DeviceIdentifier deviceId)
Method to retrieve the status of a particular device.
|
boolean |
isClaimable(DeviceIdentifier deviceId) |
boolean |
isEnrolled(DeviceIdentifier deviceId)
Method to retrieve the status of the registration process of a particular device.
|
boolean |
modifyEnrollment(Device device)
Method to modify the metadata corresponding to device enrollment.
|
boolean |
requireDeviceAuthorization()
Method to enable to device-authentication for the device-platform.
|
boolean |
saveConfiguration(PlatformConfiguration configuration)
Method to save platform specific Configuration.
|
boolean |
setActive(DeviceIdentifier deviceId,
boolean status)
Method to set the status indicating whether a particular device registered within CDM is enabled at a given
moment.
|
boolean |
setOwnership(DeviceIdentifier deviceId,
String ownershipType)
Method to set the ownership type of a particular device.
|
boolean |
setStatus(DeviceIdentifier deviceId,
String currentOwner,
EnrolmentInfo.Status status) |
boolean |
updateDeviceInfo(DeviceIdentifier deviceIdentifier,
Device device)
Method to update device information.
|
FeatureManager getFeatureManager()
boolean saveConfiguration(PlatformConfiguration configuration) throws DeviceManagementException
DeviceManagementExceptionPlatformConfiguration getConfiguration() throws DeviceManagementException
DeviceManagementExceptionboolean enrollDevice(Device device) throws DeviceManagementException
device - Metadata corresponding to the device being enrolledDeviceManagementException - If some unusual behaviour is observed while enrolling a deviceboolean modifyEnrollment(Device device) throws DeviceManagementException
device - Modified device enrollment related metadataDeviceManagementException - If some unusual behaviour is observed while modify the enrollment of a
deviceboolean disenrollDevice(DeviceIdentifier deviceId) throws DeviceManagementException
deviceId - Fully qualified device identifierDeviceManagementException - If some unusual behaviour is observed while disenrolling a deviceboolean isEnrolled(DeviceIdentifier deviceId) throws DeviceManagementException
deviceId - Fully qualified device identifierDeviceManagementException - If some unusual behaviour is observed while checking the enrollment
status of the deviceboolean isActive(DeviceIdentifier deviceId) throws DeviceManagementException
deviceId - Fully qualified device identifierDeviceManagementException - If some unusual behaviour is observed while checking the status
of the deviceboolean setActive(DeviceIdentifier deviceId, boolean status) throws DeviceManagementException
deviceId - Fully qualified device identifierstatus - Indicates whether the device is activeDeviceManagementException - If some unusual behaviour is observed while updating the active status
of the deviceList<Device> getAllDevices() throws DeviceManagementException
DeviceManagementException - If some unusual behaviour is observed while obtaining the enrolled device listDevice getDevice(DeviceIdentifier deviceId) throws DeviceManagementException
deviceId - Fully qualified device identifierDeviceManagementException - If some unusual behaviour is observed obtaining the device objectboolean updateDeviceInfo(DeviceIdentifier deviceIdentifier, Device device) throws DeviceManagementException
deviceIdentifier - identifier to identify the devicedevice - Updated device information related dataDeviceManagementException - If some unusual behaviour is observed while updating the device infoboolean setOwnership(DeviceIdentifier deviceId, String ownershipType) throws DeviceManagementException
deviceId - Fully qualified device identifierownershipType - Type of ownershipDeviceManagementException - If some unusual behaviour is observed while setting the ownership
of the deviceboolean isClaimable(DeviceIdentifier deviceId) throws DeviceManagementException
DeviceManagementExceptionboolean setStatus(DeviceIdentifier deviceId, String currentOwner, EnrolmentInfo.Status status) throws DeviceManagementException
DeviceManagementExceptionLicense getLicense(String languageCode) throws LicenseManagementException
LicenseManagementExceptionvoid addLicense(License license) throws LicenseManagementException
LicenseManagementExceptionboolean requireDeviceAuthorization()
Copyright © 2017 WSO2. All rights reserved.