OSID Logo
OSID Specifications
control package
Version 3.1.0
Interfaceosid.control.DeviceSmartSystemSession
Implementsosid.OsidSession
Used Byosid.control.ControlManager
osid.control.ControlProxyManager
Description

This session manages queries and sequencing to create "smart" dynamic catalogs. A DeviceQuery can be retrieved from this session and systemped to this System to create a virtual collection of Devices. The devices may be sequenced using the DeviceSearchOrder from this session.

This System has a default query that matches any device and a default search order that specifies no sequencing. The queries may be examined using a DeviceQueryInspector. The query may be modified by converting the inspector back to a DeviceQuery .

MethodgetSystemId
Description

Gets the System Id associated with this session.

Returnosid.id.Id the System Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetSystem
Description

Gets the System associated with this session.

Returnosid.control.System the system
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageSmartSystems
Description

Tests if this user can manage smart systems. A return of true does not guarantee successful authorization. A return of false indicates that it is known methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer operations to unauthorized users.

Returnboolean false if smart system management is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetDeviceQuery
Description

Gets a device query.

Returnosid.control.DeviceQuery the device query
Compliancemandatory This method must be implemented.
MethodgetDeviceSearchOrder
Description

Gets a device search order.

Returnosid.control.DeviceSearchOrder the device search order
Compliancemandatory This method must be implemented.
MethodapplyDeviceQuery
Description

Applies a device query to this system.

Parametersosid.control.DeviceQuerydeviceQuery the device query
ErrorsNULL_ARGUMENT deviceQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED deviceQuery not of this service
Compliancemandatory This method must be implemented.
MethodinspectDeviceQuery
Description

Gets a device query inspector for this system.

Returnosid.control.DeviceQueryInspector the device query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyDeviceSequencing
Description

Applies a device search order to this system.

Parametersosid.control.DeviceSearchOrderdeviceSearchOrder the device search order
ErrorsNULL_ARGUMENT deviceSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED deviceSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetDeviceQueryFromInspector
Description

Gets a device query from an inspector.

Parametersosid.control.DeviceQueryInspectordeviceQueryInspector a device query inspector
Returnosid.control.DeviceQuery the device query
ErrorsNULL_ARGUMENT deviceQueryInspector is null
UNSUPPORTED deviceQueryInspector is not of this service
Compliancemandatory This method must be implemented.