OSID Logo
OSID Specifications
rules package
Version 3.0.0
Interfaceosid.rules.RulesManager
Implementsosid.OsidManager
osid.rules.RulesProfile
Used Byosid.orchestration.OrchestrationManager
Description

The rules manager provides access to rules sessions and provides interoperability tests for various aspects of this service. The sessions included in this manager are:

  • RuleEvaluationSession : a session for evaluating and executing rules
  • RuleLookupSession : a session to lookup rules
  • RuleSearchSession : a session to query rules
  • RuleSearchSession : a session to search rules
  • RuleAdminSession : a session to manage rules
  • RuleNotificationSession : a session to subscribe to notifications of new rules
  • RuleEngineSession a session to retrieve rule engine mappings
  • RuleEngineAssignmentSession a session to manage rule engine mappings
  • RuleSmartEngineSession a session to manage dynamic engines
  • EngineLookupSession : a session to retrieve engine objects
  • EngineSearchSession : a session to query engines
  • EngineSearchSession : a session to search for engines
  • EngineAdminSession : a session to create, update and delete engines
  • EngineNotificationSession : a session to receive notifications for changes in engines
  • EngineHierarchyTraversalSession : a session to traverse hierarchies of engines
  • EngineHierarchyDesignSession : a session to manage hierarchies of engines

The rules manager also provides a profile for determing the supported search types supported by this service.

MethodgetRuleEvaluationSession
Description

Gets the OsidSession associated with the rule evaluation service.

Returnosid.rules.RuleEvaluationSessiona RuleEvaluationSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTEDsupportsRuleEvaluation() is false
ComplianceoptionalThis method must be implemented if supportsRuleEvaluation() is true .
MethodgetRuleEvaluationSessionForEngine
Description

Gets the OsidSession associated with the rule evaluation service for the given engine.

Parametersosid.id.IdengineIdthe Id of an Engine
Returnosid.rules.RuleEvaluationSessiona RuleEvaluationSession
ErrorsNOT_FOUNDno Engine found by the given Id
NULL_ARGUMENTengineId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTEDsupportsRuleEvaluation() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsRuleEvaluation() and supportsVisibleFederation() are true
MethodgetRuleLookupSession
Description

Gets the OsidSession associated with the rule lookup service.

Returnosid.rules.RuleLookupSessiona RuleLookupSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTEDsupportsRuleLookup() is false
ComplianceoptionalThis method must be implemented if supportsRuleLookup() is true .
MethodgetRuleLookupSessionForEngine
Description

Gets the OsidSession associated with the rule lookup service for the given engine.

Parametersosid.id.IdengineIdthe Id of an Engine
Returnosid.rules.RuleLookupSessiona RuleLookupSession
ErrorsNOT_FOUNDno Engine found by the given Id
NULL_ARGUMENTengineId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTEDsupportsRuleLookup() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsRuleLookup() and supportsVisibleFederation() are true
MethodgetRuleQuerySession
Description

Gets the OsidSession associated with the rule query service.

Returnosid.rules.RuleQuerySessiona RuleQuerySession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTEDsupportsRuleQuery() is false
ComplianceoptionalThis method must be implemented if supportsRuleQuery() is true .
MethodgetRuleQuerySessionForEngine
Description

Gets the OsidSession associated with the rule query service for the given engine.

Parametersosid.id.IdengineIdthe Id of an Engine
Returnosid.rules.RuleQuerySessiona RuleQuerySession
ErrorsNOT_FOUNDno Engine found by the given Id
NULL_ARGUMENTengineId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTEDsupportsRuleQuery() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsRuleQuery() and supportsVisibleFederation() are true
MethodgetRuleSearchSession
Description

Gets the OsidSession associated with the rule search service.

Returnosid.rules.RuleSearchSessiona RuleSearchSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTEDsupportsRuleSearch() is false
ComplianceoptionalThis method must be implemented if supportsRuleSearch() is true .
MethodgetRuleSearchSessionForEngine
Description

Gets the OsidSession associated with the rule search service for the given engine.

Parametersosid.id.IdengineIdthe Id of an Engine
Returnosid.rules.RuleSearchSessiona RuleSearchSession
ErrorsNOT_FOUNDno Engine found by the given Id
NULL_ARGUMENTengineId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTEDsupportsRuleSearch() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsRuleSearch() and supportsVisibleFederation() are true
MethodgetRuleAdminSession
Description

Gets the OsidSession associated with the rule administrative service.

Returnosid.rules.RuleAdminSessiona RuleAdminSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTEDsupportsRuleAdmin() is false
ComplianceoptionalThis method must be implemented if supportsRuleAdmin() is true .
MethodgetRuleAdminSessionForEngine
Description

Gets the OsidSession associated with the rule administrative service for the given engine.

Parametersosid.id.IdengineIdthe Id of an Engine
Returnosid.rules.RuleAdminSessiona RuleAdminSession
ErrorsNOT_FOUNDno Engine found by the given Id
NULL_ARGUMENTengineId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTEDsupportsRuleAdmin() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsRuleAdmin() and supportsVisibleFederation() are true
MethodgetRuleNotificationSession
Description

Gets the OsidSession associated with the rule notification service.

Parametersosid.rules.RuleReceiverruleReceiverthe receiver
Returnosid.rules.RuleNotificationSessiona RuleNotificationSession
ErrorsNULL_ARGUMENTruleReceiver is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTEDsupportsRuleNotification() is false
ComplianceoptionalThis method must be implemented if supportsRuleNotification() is true .
MethodgetRuleNotificationSessionForEngine
Description

Gets the OsidSession associated with the rule notification service for the given engine.

Parametersosid.rules.RuleReceiverruleReceiverthe receiver
osid.id.IdengineIdthe Id of an Engine
Returnosid.rules.RuleNotificationSessiona RuleNotificationSession
ErrorsNOT_FOUNDno Rule found by the given Id
NULL_ARGUMENTruleReceiver or engineId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTEDsupportsRuleNotification() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsRuleNotification() and supportsVisibleFederation() are true
MethodgetRuleEngineSession
Description

Gets the OsidSession to lookup rule/engine mappings.

Returnosid.rules.RuleEngineSessiona RuleEngineSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTEDsupportsRuleEngine() is false
ComplianceoptionalThis method must be implemented if supportsRuleEngine() is true .
MethodgetRuleEngineAssignmentSession
Description

Gets the OsidSession associated with assigning rules to engines.

Returnosid.rules.RuleEngineAssignmentSessiona RuleEngineAssignmentSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTEDsupportsRuleEngineAssignment() is false
ComplianceoptionalThis method must be implemented if supportsRuleEngineAssignment() is true .
MethodgetRuleSmartEngineSession
Description

Gets the OsidSession associated with the rule smart engine service for the given engine.

Parametersosid.id.IdengineIdthe Id of an Engine
Returnosid.rules.RuleSmartEngineSessiona RuleSmartEngineSession
ErrorsNOT_FOUNDno Engine found by the given Id
NULL_ARGUMENTengineId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTEDsupportsRuleSmartEngine() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsRuleSmartEngine() and supportsVisibleFederation() are true
MethodgetEngineLookupSession
Description

Gets the OsidSession associated with the engine lookup service.

Returnosid.rules.EngineLookupSessionan EngineLookupSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTEDsupportsEngineLookup() is false
ComplianceoptionalThis method must be implemented if supportsEngineLookup() is true .
MethodgetEngineQuerySession
Description

Gets the OsidSession associated with the engine query service.

Returnosid.rules.EngineQuerySessionan EngineQuerySession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTEDsupportsEngineQuery() is false
ComplianceoptionalThis method must be implemented if supportsEngineQuery() is true .
MethodgetEngineSearchSession
Description

Gets the OsidSession associated with the engine search service.

Returnosid.rules.EngineSearchSessionan EngineSearchSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTEDsupportsEngineSearch() is false
ComplianceoptionalThis method must be implemented if supportsEngineSearch() is true .
MethodgetEngineAdminSession
Description

Gets the OsidSession associated with the engine administrative service.

Returnosid.rules.EngineAdminSessionan EngineAdminSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTEDsupportsEngineAdmin() is false
ComplianceoptionalThis method must be implemented if supportsEngineAdmin() is true .
MethodgetEngineNotificationSession
Description

Gets the OsidSession associated with the engine notification service.

Parametersosid.rules.EngineReceiverengineReceiverthe receiver
Returnosid.rules.EngineNotificationSessionan EngineNotificationSession
ErrorsNULL_ARGUMENTengineReceiver is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTEDsupportsEngineNotification() is false
ComplianceoptionalThis method must be implemented if supportsEngineNotification() is true .
MethodgetEngineHierarchySession
Description

Gets the OsidSession associated with the engine hierarchy service.

Returnosid.rules.EngineHierarchySessionan EngineHierarchySession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTEDsupportsEngineHierarchy() is false
ComplianceoptionalThis method must be implemented if supportsEngineHierarchy() is true .
MethodgetEngineHierarchyDesignSession
Description

Gets the OsidSession associated with the engine hierarchy design service.

Returnosid.rules.EngineHierarchyDesignSessionan EngineierarchyDesignSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTEDsupportsEngineHierarchyDesign() is false
ComplianceoptionalThis method must be implemented if supportsEngineHierarchyDesign() is true .
MethodgetRulesCheckManager
Description

Gets the RulesCheckManager .

Returnosid.rules.check.RulesCheckManagera RulesCheckManager
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTEDsupportsRulesCheckManager() is false
ComplianceoptionalThis method must be implemented if supportsRulesCheckManager() is true .