OSID Logo
OSID Specifications
rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.rules.RuleSearchSession
Implementsosid.rules.RuleQuerySession
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.

getRulesByQuery() is the basic search method and returns a list of Rule elements. A more advanced search may be performed with getRulesBySearch(). It accepts a RuleSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getRulesBySearch() returns a RuleSearchResults that can be used to access the resulting RuleList or be used to perform a search within the result set through RuleSearch.

Rules may have a 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.

MethodgetRuleSearch
Description

Gets a rule search.

Returnosid.rules.RuleSearchthe rule search
CompliancemandatoryThis method must be implemented.
MethodgetRuleSearchOrder
Description

Gets a rule search order. The RuleSearchOrder is supplied to a RuleSearch to specify the ordering of results.

Returnosid.rules.RuleSearchOrderthe rule search order
CompliancemandatoryThis method must be implemented.
MethodgetRulesBySearch
Description

Gets the search results matching the given search.

Parametersosid.rules.RuleQueryruleQuerythe rule query
osid.rules.RuleSearchruleSearchthe rule search
Returnosid.rules.RuleSearchResultsthe search results
ErrorsNULL_ARGUMENT ruleQuery or ruleSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED ruleQuery or ruleSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetRuleQueryFromInspector
Description

Gets a rule query from an inspector. The inspector is available from a RuleSearchResults.

Parametersosid.rules.RuleQueryInspectorruleQueryInspectora rule query inspector
Returnosid.rules.RuleQuerythe rule query
ErrorsNULL_ARGUMENT ruleQueryInspector is null
UNSUPPORTED ruleQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.