| Interface | osid.control.DeviceSearchSession | ||
|---|---|---|---|
| Implements | osid.control.DeviceQuerySession | ||
| Used By | osid.control.ControlManager | ||
osid.control.ControlProxyManager | |||
| Description |
This session provides methods for searching among
getDevicesByQuery() is the basic search method
and returns a list of Devices. A more advanced
search may be performed with getDevicesBySearch()
.It accepts a DeviceSearch in addition to the
query for the purpose of specifying additional options
affecting the entire search, such as ordering.
getDevicesBySearch() returns a
DeviceSearchResults that can be used to access
the resulting DeviceList or be used to perform a
search within the result set through DeviceSearch
.
This session defines views that offer differing behaviors for searching.
Devices may have a record indicated by their respective
record types. The query record is accessed via the
| ||
| Method | getDeviceSearch | ||
| Description |
Gets a device search. | ||
| Return | osid.control.DeviceSearch | the device search | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getDeviceSearchOrder | ||
| Description |
Gets a device search order. The
| ||
| Return | osid.control.DeviceSearchOrder | the device search order | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getDevicesBySearch | ||
| Description |
Gets the search results matching the given search query using the given search. | ||
| Parameters | osid.control.DeviceQuery | deviceQuery | the device query |
osid.control.DeviceSearch | deviceSearch | the device search | |
| Return | osid.control.DeviceSearchResults | the device search results | |
| Errors | NULL_ARGUMENT | deviceQuery or deviceSearch is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | deviceQuery or deviceSearch is not of this
service | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getDeviceQueryFromInspector | ||
| Description |
Gets a device query from an inspector. The inspector
is available from a | ||
| Parameters | osid.control.DeviceQueryInspector | deviceQueryInspector | a device query inspector |
| Return | osid.control.DeviceQuery | the device query | |
| Errors | NULL_ARGUMENT | deviceQueryInspector is null | |
| UNSUPPORTED | deviceQueryInspector is not of this service | ||
| Compliance | mandatory | This method must be implemented. | |