OSID Logo
OSID Specifications
control rules package
Version 3.1.0
Interfaceosid.control.rules.ActionEnablerQuery
Implementsosid.OsidEnablerQuery
Used Byosid.control.rules.ActionEnablerQuerySession
osid.control.rules.ActionEnablerSearchSession
osid.control.rules.ActionEnablerSmartSystemSession
Description

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

MethodmatchRuledActionId
Description

Matches enablers mapped to the action.

Parametersosid.id.IdactionId the action Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT actionId is null
Compliancemandatory This method must be implemented.
MethodclearRuledActionIdTerms
Description

Clears the action Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsRuledActionQuery
Description

Tests if an ActionQuery is available.

Returnboolean true if an action query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetRuledActionQuery
Description

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

Returnosid.control.ActionQuery the action query
ErrorsUNIMPLEMENTED supportsRuledActionQuery() is false
Complianceoptional This method must be implemented if supportsRuledActionQuery() is true.
MethodmatchAnyRuledAction
Description

Matches enablers mapped to any action.

Parametersbooleanmatch true for enablers mapped to any action, false to match enablers mapped to no actions
Compliancemandatory This method must be implemented.
MethodclearRuledActionTerms
Description

Clears the action 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.
MethodgetActionEnablerQueryRecord
Description

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

Parametersosid.type.TypeactionEnablerRecordType an action enabler record type
Returnosid.control.rules.records.ActionEnablerQueryRecord the action enabler query record
ErrorsNULL_ARGUMENT actionEnablerRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(actionEnablerRecordType) is false
Compliancemandatory This method must be implemented.