public interface DeviceManager
| Modifier and Type | Method and Description |
|---|---|
Device |
assignDeviceConfig(Device device,
DeviceConfig config)
Assigns a device to an existing device config.
|
Device |
assignDisplay(Device device,
java.lang.String displayPath)
Assigns a display to a device and creates a new DeviceConfig.
|
Device |
createDevice(java.lang.String tenant)
Creates a new device for the given tenant.
|
void |
deleteDevice(java.lang.String deviceId)
Deletes an existing device, and removes any existing assignment to a display.
|
Device |
getDevice(java.lang.String deviceId)
Returns the device with the given id or
null |
java.util.Iterator<Device> |
getDevices()
Returns an iterator over all devices.
|
java.util.Iterator<Device> |
getDevices(org.apache.commons.collections.Predicate predicate)
Returns an iterator over all devices that fulfill the given predicate.
|
DeviceStatus |
getDeviceStatus(java.lang.String deviceId)
Returns the status of the device with the given id.
|
Device |
removeDisplay(Device device,
boolean removeConfig)
Removes the display assignment from the device.
|
Device |
setMetadata(Device device,
JSONObject metadata)
Updates the device metadata.
|
java.lang.String |
updatePassword(Device device)
Generates and sets a new password for the device user.
|
Device getDevice(java.lang.String deviceId)
nulldeviceId - the device idnullDeviceStatus getDeviceStatus(java.lang.String deviceId)
deviceId - the device idnull if the device does not exist.java.util.Iterator<Device> getDevices()
java.util.Iterator<Device> getDevices(org.apache.commons.collections.Predicate predicate)
predicate - the filter predicate or nullDevice createDevice(java.lang.String tenant) throws RepositoryException
tenant - the name of the tenant. eg "geometrixx".RepositoryException - if an error occurrs.void deleteDevice(java.lang.String deviceId)
throws RepositoryException
deviceId - the device idRepositoryException - if an error occurrs.java.lang.String updatePassword(Device device) throws RepositoryException
device - the deviceRepositoryException - if an error occurrs.Device setMetadata(Device device, JSONObject metadata) throws JSONException, RepositoryException
device - the devicemetadata - the metadata.JSONException - if a JSON error occurrsRepositoryException - if an error occurrsDevice assignDisplay(Device device, java.lang.String displayPath) throws RepositoryException
device - the devicedisplayPath - the display pathRepositoryException - if an error occurrs.Device assignDeviceConfig(Device device, DeviceConfig config) throws RepositoryException
device - the deviceconfig - the device configRepositoryException - if an error occurrs.Device removeDisplay(Device device, boolean removeConfig) throws RepositoryException
device - the deviceremoveConfig - true to also remove the device config from the display.4RepositoryException - if an error occurrs."Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"