Interface RulesManager
- All Superinterfaces:
AutoCloseable, Closeable, OsidManager, OsidManager, OsidProfile, RulesProfile, Sourceable
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 -
RuleEngineSessiona session to retrieve rule engine mappings -
RuleEngineAssignmentSessiona session to manage rule engine mappings -
RuleSmartEngineSessiona 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.
-
Method Summary
Modifier and TypeMethodDescriptionGets theOsidSessionassociated with the engine administrative service.Gets theOsidSessionassociated with the engine hierarchy design service.Gets theOsidSessionassociated with the engine hierarchy service.Gets theOsidSessionassociated with the engine lookup service.getEngineNotificationSession(EngineReceiver engineReceiver) Gets theOsidSessionassociated with the engine notification service.Gets theOsidSessionassociated with the engine query service.Gets theOsidSessionassociated with the engine search service.Gets theOsidSessionassociated with the rule administrative service.getRuleAdminSessionForEngine(Id engineId) Gets theOsidSessionassociated with the rule administrative service for the given engine.Gets theOsidSessionassociated with assigning rules to engines.Gets theOsidSessionto lookup rule/engine mappings.Gets theOsidSessionassociated with the rule evaluation service.getRuleEvaluationSessionForEngine(Id engineId) Gets theOsidSessionassociated with the rule evaluation service for the given engine.Gets theOsidSessionassociated with the rule lookup service.getRuleLookupSessionForEngine(Id engineId) Gets theOsidSessionassociated with the rule lookup service for the given engine.getRuleNotificationSession(RuleReceiver ruleReceiver) Gets theOsidSessionassociated with the rule notification service.getRuleNotificationSessionForEngine(RuleReceiver ruleReceiver, Id engineId) Gets theOsidSessionassociated with the rule notification service for the given engine.Gets theOsidSessionassociated with the rule query service.getRuleQuerySessionForEngine(Id engineId) Gets theOsidSessionassociated with the rule query service for the given engine.Gets theRulesCheckManager.Gets theOsidSessionassociated with the rule search service.getRuleSearchSessionForEngine(Id engineId) Gets theOsidSessionassociated with the rule search service for the given engine.getRuleSmartEngineSession(Id engineId) Gets theOsidSessionassociated with the rule smart engine service for the given engine.Methods inherited from interface OsidManager
closeMethods inherited from interface OsidManager
changeBranch, initialize, rollbackServiceModifier and TypeMethodDescriptionvoidchangeBranch(Id branchId) Changes the service branch.voidinitialize(OsidRuntimeManager runtime) Initializes this manager.rollbackService(Date rollbackTime) Rolls back this service to a point in time.Methods inherited from interface OsidProfile
getBranch, getBranchId, getDescription, getDisplayName, getId, getLocales, getProxyRecordTypes, getReleaseDate, getVersion, supportsJournalBranching, supportsJournalRollback, supportsOSIDVersion, supportsProxyRecordTypeModifier and TypeMethodDescriptionGets this service branch.Gets theBranch Idrepresenting this service branch.Gets a description of this service implementation.Gets a display name for this service implementation.getId()Gets an identifier for this service implementation.Gets the locales supported in this service.Gets the proxy recordTypessupported in this service.Gets the date this service implementation was released.Gets the version of this service implementation.booleanTest for support of a journal branching service.booleanTest for support of a journaling rollback service.booleansupportsOSIDVersion(Version version) Test for support of an OSID specification version.booleansupportsProxyRecordType(Type proxyRecordType) Test for support of a proxy type.Methods inherited from interface RulesProfile
getEngineRecordTypes, getEngineSearchRecordTypes, getRuleRecordTypes, getRuleSearchRecordTypes, supportsEngineAdmin, supportsEngineHierarchy, supportsEngineHierarchyDesign, supportsEngineLookup, supportsEngineNotification, supportsEngineQuery, supportsEngineRecordType, supportsEngineSearch, supportsEngineSearchRecordType, supportsRuleAdmin, supportsRuleEngine, supportsRuleEngineAssignment, supportsRuleEvaluation, supportsRuleLookup, supportsRuleNotification, supportsRuleQuery, supportsRuleRecordType, supportsRulesCheck, supportsRuleSearch, supportsRuleSearchRecordType, supportsRuleSmartEngine, supportsVisibleFederationModifier and TypeMethodDescriptionGets the supportedEnginerecord types.Gets the supported engine search record types.Gets the supportedRulerecord types.Gets the supported rule search record types.booleanTests for the availability of an engine administrative service for creating and deleting engines.booleanTests for the availability of an engine hierarchy traversal service.booleanTests for the availability of an engine hierarchy design service.booleanTests for the availability of an engine lookup service.booleanTests for the availability of an engine notification service.booleanTests for the availability of an engine query service.booleansupportsEngineRecordType(Type engineRecordType) Tests if the givenEnginerecord type is supported.booleanTests if searching for engines is available.booleansupportsEngineSearchRecordType(Type engineSearchRecordType) Tests if the given engine search record type is supported.booleanTests if managing rules is available.booleanTests if rule cataloging is available.booleanTests if a rule cataloging assignment service is supported.booleanTests if rule evaluation is supported.booleanTests for the availability of a rule lookup service.booleanTests if rule notification is available.booleanTests if querying rules is available.booleansupportsRuleRecordType(Type ruleRecordType) Tests if the givenRulerecord type is supported.booleanTests for the availability of a rules check service.booleanTests if searching for rules is available.booleansupportsRuleSearchRecordType(Type ruleSearchRecordType) Tests if the given rule search record type is supported.booleanTests if rule smart engines is available.booleanTests if any engine federation is exposed.Methods inherited from interface Sourceable
getBranding, getBrandingIds, getLicense, getProvider, getProviderIdModifier and TypeMethodDescriptionGets a branding, such as an image or logo, expressed using theAssetinterface.Gets the branding assetIds.Gets the terms of usage.Gets theResourcerepresenting the provider.Gets theIdof the provider.
-
Method Details
-
getRuleEvaluationSession
Gets theOsidSessionassociated with the rule evaluation service.- Returns:
- a
RuleEvaluationSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsRuleEvaluation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRuleEvaluation()} is {@code true} .
-
getRuleEvaluationSessionForEngine
RuleEvaluationSession getRuleEvaluationSessionForEngine(Id engineId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the rule evaluation service for the given engine.- Parameters:
engineId- theIdof anEngine- Returns:
- a
RuleEvaluationSession - Throws:
NotFoundException- noEnginefound by the givenIdNullArgumentException-engineIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsRuleEvaluation()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRuleEvaluation()} and {@code supportsVisibleFederation()} are {@code true}
-
getRuleLookupSession
Gets theOsidSessionassociated with the rule lookup service.- Returns:
- a
RuleLookupSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsRuleLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRuleLookup()} is {@code true} .
-
getRuleLookupSessionForEngine
RuleLookupSession getRuleLookupSessionForEngine(Id engineId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the rule lookup service for the given engine.- Parameters:
engineId- theIdof anEngine- Returns:
- a
RuleLookupSession - Throws:
NotFoundException- noEnginefound by the givenIdNullArgumentException-engineIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsRuleLookup()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRuleLookup()} and {@code supportsVisibleFederation()} are {@code true}
-
getRuleQuerySession
Gets theOsidSessionassociated with the rule query service.- Returns:
- a
RuleQuerySession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsRuleQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRuleQuery()} is {@code true} .
-
getRuleQuerySessionForEngine
RuleQuerySession getRuleQuerySessionForEngine(Id engineId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the rule query service for the given engine.- Parameters:
engineId- theIdof anEngine- Returns:
- a
RuleQuerySession - Throws:
NotFoundException- noEnginefound by the givenIdNullArgumentException-engineIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsRuleQuery()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRuleQuery()} and {@code supportsVisibleFederation()} are {@code true}
-
getRuleSearchSession
Gets theOsidSessionassociated with the rule search service.- Returns:
- a
RuleSearchSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsRuleSearch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRuleSearch()} is {@code true} .
-
getRuleSearchSessionForEngine
RuleSearchSession getRuleSearchSessionForEngine(Id engineId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the rule search service for the given engine.- Parameters:
engineId- theIdof anEngine- Returns:
- a
RuleSearchSession - Throws:
NotFoundException- noEnginefound by the givenIdNullArgumentException-engineIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsRuleSearch()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRuleSearch()} and {@code supportsVisibleFederation()} are {@code true}
-
getRuleAdminSession
Gets theOsidSessionassociated with the rule administrative service.- Returns:
- a
RuleAdminSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsRuleAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRuleAdmin()} is {@code true} .
-
getRuleAdminSessionForEngine
RuleAdminSession getRuleAdminSessionForEngine(Id engineId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the rule administrative service for the given engine.- Parameters:
engineId- theIdof anEngine- Returns:
- a
RuleAdminSession - Throws:
NotFoundException- noEnginefound by the givenIdNullArgumentException-engineIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsRuleAdmin()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRuleAdmin()} and {@code supportsVisibleFederation()} are {@code true}
-
getRuleNotificationSession
RuleNotificationSession getRuleNotificationSession(RuleReceiver ruleReceiver) throws OperationFailedException Gets theOsidSessionassociated with the rule notification service.- Parameters:
ruleReceiver- the receiver- Returns:
- a
RuleNotificationSession - Throws:
NullArgumentException-ruleReceiverisnullOperationFailedException- unable to complete requestUnimplementedException-supportsRuleNotification()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRuleNotification()} is {@code true} .
-
getRuleNotificationSessionForEngine
RuleNotificationSession getRuleNotificationSessionForEngine(RuleReceiver ruleReceiver, Id engineId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the rule notification service for the given engine.- Parameters:
ruleReceiver- the receiverengineId- theIdof anEngine- Returns:
- a
RuleNotificationSession - Throws:
NotFoundException- noRulefound by the givenIdNullArgumentException-ruleReceiverorengineIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsRuleNotification()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRuleNotification()} and {@code supportsVisibleFederation()} are {@code true}
-
getRuleEngineSession
Gets theOsidSessionto lookup rule/engine mappings.- Returns:
- a
RuleEngineSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsRuleEngine()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRuleEngine()} is {@code true} .
-
getRuleEngineAssignmentSession
Gets theOsidSessionassociated with assigning rules to engines.- Returns:
- a
RuleEngineAssignmentSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsRuleEngineAssignment()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRuleEngineAssignment()} is {@code true} .
-
getRuleSmartEngineSession
RuleSmartEngineSession getRuleSmartEngineSession(Id engineId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the rule smart engine service for the given engine.- Parameters:
engineId- theIdof anEngine- Returns:
- a
RuleSmartEngineSession - Throws:
NotFoundException- noEnginefound by the givenIdNullArgumentException-engineIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsRuleSmartEngine()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRuleSmartEngine()} and {@code supportsVisibleFederation()} are {@code true}
-
getEngineLookupSession
Gets theOsidSessionassociated with the engine lookup service.- Returns:
- an
EngineLookupSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsEngineLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsEngineLookup()} is {@code true} .
-
getEngineQuerySession
Gets theOsidSessionassociated with the engine query service.- Returns:
- an
EngineQuerySession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsEngineQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsEngineQuery()} is {@code true} .
-
getEngineSearchSession
Gets theOsidSessionassociated with the engine search service.- Returns:
- an
EngineSearchSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsEngineSearch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsEngineSearch()} is {@code true} .
-
getEngineAdminSession
Gets theOsidSessionassociated with the engine administrative service.- Returns:
- an
EngineAdminSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsEngineAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsEngineAdmin()} is {@code true} .
-
getEngineNotificationSession
EngineNotificationSession getEngineNotificationSession(EngineReceiver engineReceiver) throws OperationFailedException Gets theOsidSessionassociated with the engine notification service.- Parameters:
engineReceiver- the receiver- Returns:
- an
EngineNotificationSession - Throws:
NullArgumentException-engineReceiverisnullOperationFailedException- unable to complete requestUnimplementedException-supportsEngineNotification()isfalse- Compliance:
optional- This method must be implemented if {@code supportsEngineNotification()} is {@code true} .
-
getEngineHierarchySession
Gets theOsidSessionassociated with the engine hierarchy service.- Returns:
- an
EngineHierarchySession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsEngineHierarchy()isfalse- Compliance:
optional- This method must be implemented if {@code supportsEngineHierarchy()} is {@code true} .
-
getEngineHierarchyDesignSession
Gets theOsidSessionassociated with the engine hierarchy design service.- Returns:
- an
EngineierarchyDesignSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsEngineHierarchyDesign()isfalse- Compliance:
optional- This method must be implemented if {@code supportsEngineHierarchyDesign()} is {@code true} .
-
getRulesCheckManager
Gets theRulesCheckManager.- Returns:
- a
RulesCheckManager - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsRulesCheckManager()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRulesCheckManager()} is {@code true} .
-