public interface DeviceService
Device
instances.Modifier and Type | Method and Description |
---|---|
Long |
countDevices()
Counts the number of all registered devices.
|
long |
countDevices(String deviceType)
Counts the number of devices by device type.
|
int |
countDevicesWithoutUsername()
Returns a count of all devices that does not have a username
|
boolean |
doesDeviceHaveUsername(String deviceid)
Return tue if there is a username for the specifed deviceId
|
List<Device> |
findAllDevices()
Find all devices that are registered.
|
List<Device> |
findAllDevices(String deviceType)
Finds all devices of a specific type.
|
Device |
findDeviceByDeviceId(String deviceid)
Finds a device with the specified device ID
|
Device |
findDeviceById(Long id)
Finds a
Device by the Object ID for the Device |
List<Device> |
findDevicesByDeviceId(String deviceid)
Finds devices with the specified device id.
|
List<Device> |
findDevicesById(String id) |
List<Device> |
findDevicesByRegId(String regid) |
List<Device> |
findDevicesByUsername(String username)
Returns a list of devices registed by a username.
|
Map<String,List<Device>> |
findDevicesMap()
Gets a map of all registerd devices in a mapping between device type
and a list of the devices for that type.
|
List<Device> |
findDevicesWithoutUsername()
Finds all device that does not have a username
|
List<String> |
getSupportedDeviceTypes()
Returns a list of device types that are set up.
|
void |
registerDevice(Device device)
Deprecated.
This method is misleading as it does not register a device
but persists the state of a device. Rather use
saveDevice(Device) .
This method will be removed in version 3.0 |
boolean |
removeDevice(Device device)
Removes a
Device instance from persistence. |
void |
saveDevice(Device device)
Persists a
Device instance |
void saveDevice(Device device)
Device
instancedevice
- The device to persist@Deprecated void registerDevice(Device device)
saveDevice(Device)
.
This method will be removed in version 3.0Device
instancedevice
- The device to persistboolean removeDevice(Device device)
Device
instance from persistence.device
- The device to remove.Long countDevices()
long countDevices(String deviceType)
int countDevicesWithoutUsername()
List<Device> findAllDevices()
List<String> getSupportedDeviceTypes()
SendServiceDelegator
.
Device types returns in this list are expected to have SendService implementations
configured.
This method will call the SendServiceDelegator
to find supported device types.List<Device> findAllDevices(String deviceType)
deviceType
- Map<String,List<Device>> findDevicesMap()
boolean doesDeviceHaveUsername(String deviceid)
deviceid
- List<Device> findDevicesByUsername(String username)
username
- List<Device> findDevicesWithoutUsername()
List<Device> findDevicesByDeviceId(String deviceid)
Device
deviceid
- Device findDeviceByDeviceId(String deviceid)
deviceid
- Device findDeviceById(Long id)
Device
by the Object ID for the Device
id
- If of the Device
to find.List<Device> findDevicesById(String id)
List<Device> findDevicesByRegId(String regid)
Copyright © 2011-2013 The Kuali Foundation. All Rights Reserved.