OSID Logo
OSID Specifications
rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.rules.RuleQuerySession
Implementsosid.OsidSession
Description

This session provides methods for searching Rule objects. The search query is constructed using the RuleQuery. The rule record Type also specifies the record for the rule query.

Rules may have a rule query record indicated by their respective record types. The rule query record is accessed via the RuleQuery. The returns in this session may not be cast directly to these interfaces.

MethodgetEngineId
Description

Gets the Engine Id associated with this session.

Returnosid.id.Idthe Engine Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetEngine
Description

Gets the Engine associated with this session.

Returnosid.rules.Enginethe engine
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethoduseFederatedEngineView
Description

Federates the view for methods in this session. A federated view will include rules in engines which are children of this engine in the engine hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedEngineView
Description

Isolates the view for methods in this session. An isolated view restricts retrievals to this engine only.

CompliancemandatoryThis method is must be implemented.
MethodcanSearchRules
Description

Tests if this user can perform Rule searches. A return of true does not guarantee successful authorization. A return of false indicates that it is known all 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 search operations to unauthorized users.

Returnboolean false if search methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRuleQuery
Description

Gets a rule query.

Returnosid.rules.RuleQuerythe rule query
CompliancemandatoryThis method must be implemented.
MethodgetRulesByQuery
Description

Gets a list of Rules matching the given rule query.

Parametersosid.rules.RuleQueryruleQuerythe rule query
Returnosid.rules.RuleListthe returned RuleList
ErrorsNULL_ARGUMENT ruleQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED ruleQuery is not of this service
CompliancemandatoryThis method must be implemented.