OSID Logo
OSID Specifications
control rules package
Version 3.1.0
Interfaceosid.control.rules.DeviceEnablerQuery
Implementsosid.OsidEnablerQuery
Used Byosid.control.rules.DeviceEnablerQuerySession
osid.control.rules.DeviceEnablerSearchSession
osid.control.rules.DeviceEnablerSmartSystemSession
Description

This is the query for searching device enablers. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchRuledDeviceId
Description

Matches enablers mapped to the device.

Parametersosid.id.IddeviceId the device Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT deviceId is null
Compliancemandatory This method must be implemented.
MethodclearRuledDeviceIdTerms
Description

Clears the device Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsRuledDeviceQuery
Description

Tests if a DeviceQuery is available.

Returnboolean true if a device query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetRuledDeviceQuery
Description

Gets the query for a device. Multiple retrievals produce a nested OR term.

Returnosid.control.DeviceQuery the device query
ErrorsUNIMPLEMENTED supportsRuledDeviceQuery() is false
Complianceoptional This method must be implemented if supportsRuledDeviceQuery() is true.
MethodmatchAnyRuledDevice
Description

Matches enablers mapped to any device.

Parametersbooleanmatch true for enablers mapped to any device, false to match enablers mapped to no devices
Compliancemandatory This method must be implemented.
MethodclearRuledDeviceTerms
Description

Clears the device query terms.

Compliancemandatory This method must be implemented.
MethodmatchSystemId
Description

Matches enablers mapped to the system.

Parametersosid.id.IdsystemId the system Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT systemId is null
Compliancemandatory This method must be implemented.
MethodclearSystemIdTerms
Description

Clears the system Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsSystemQuery
Description

Tests if a SystemQuery is available.

Returnboolean true if a system query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetSystemQuery
Description

Gets the query for a system. Multiple retrievals produce a nested OR term.

Returnosid.control.SystemQuery the system query
ErrorsUNIMPLEMENTED supportsSystemQuery() is false
Complianceoptional This method must be implemented if supportsSystemQuery() is true.
MethodclearSystemTerms
Description

Clears the system query terms.

Compliancemandatory This method must be implemented.
MethodgetDeviceEnablerQueryRecord
Description

Gets the device enabler query record corresponding to the given DeviceEnabler record Type. Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypedeviceEnablerRecordType a device enabler record type
Returnosid.control.rules.records.DeviceEnablerQueryRecord the device enabler query record
ErrorsNULL_ARGUMENT deviceEnablerRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(deviceEnablerRecordType) is false
Compliancemandatory This method must be implemented.