Interface | osid.control.DeviceLookupSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session provides methods for retrieving This session defines views that offer differing behaviors when retrieving multiple objects.
Generally, the comparative view should be used for most
applications as it permits operation even if there is data
that cannot be accessed. The methods | ||
Method | getSystemId | ||
Description |
Gets the | ||
Return | osid.id.Id | the System Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getSystem | ||
Description |
Gets the | ||
Return | osid.control.System | the system | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canLookupDevices | ||
Description |
Tests if this user can perform | ||
Return | boolean | false if lookup methods are not authorized, true
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | useComparativeDeviceView | ||
Description |
The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | usePlenaryDeviceView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useFederatedSystemView | ||
Description |
Federates the view for methods in this session. A federated view will include devices in systems which are children of this system in the system hierarchy. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useIsolatedSystemView | ||
Description |
Isolates the view for methods in this session. An isolated view restricts lookups to this system only. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getDevice | ||
Description |
Gets the | ||
Parameters | osid.id.Id | deviceId | Id of the Device |
Return | osid.control.Device | the device | |
Errors | NOT_FOUND | deviceId not found | |
NULL_ARGUMENT | deviceId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getDevicesByIds | ||
Description |
Gets a | ||
Parameters | osid.id.IdList | deviceIds | the list of Ids to retrieve |
Return | osid.control.DeviceList | the returned Device list | |
Errors | NOT_FOUND | an Id was not found | |
NULL_ARGUMENT | deviceIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getDevicesByGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | deviceGenusType | a device genus type |
Return | osid.control.DeviceList | the returned Device list | |
Errors | NULL_ARGUMENT | deviceGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getDevicesByParentGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | deviceGenusType | a device genus type |
Return | osid.control.DeviceList | the returned Device list | |
Errors | NULL_ARGUMENT | deviceGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getDevicesByRecordType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | deviceRecordType | a device record type |
Return | osid.control.DeviceList | the returned Device list | |
Errors | NULL_ARGUMENT | deviceRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getDevices | ||
Description |
Gets all | ||
Return | osid.control.DeviceList | a list of Devices | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |