Interface RulesProxyManager
- All Superinterfaces:
AutoCloseable, Closeable, OsidProfile, OsidProxyManager, OsidProxyManager, RulesProfile, Sourceable
The rules manager provides access to rules sessions and provides
interoperability tests for various aspects of this service. These methods
accept a Proxy .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 TypeMethodDescriptiongetEngineAdminSession(Proxy proxy) Gets theOsidSessionassociated with the engine administrative service.Gets theOsidSessionassociated with the engine hierarchy design service.getEngineHierarchySession(Proxy proxy) Gets theOsidSessionassociated with the engine hierarchy service.getEngineLookupSession(Proxy proxy) Gets theOsidSessionassociated with the engine lookup service.getEngineNotificationSession(EngineReceiver engineReceiver, Proxy proxy) Gets theOsidSessionassociated with the engine notification service.getEngineQuerySession(Proxy proxy) Gets theOsidSessionassociated with the engine query service.getEngineSearchSession(Proxy proxy) Gets theOsidSessionassociated with the engine search service.getRuleAdminSession(Proxy proxy) Gets theOsidSessionassociated with the rule administration service.getRuleAdminSessionForEngine(Id engineId, Proxy proxy) Gets theOsidSessionassociated with the rule administration service for the given engine.Gets theOsidSessionassociated with assigning rules to engines.getRuleEngineSession(Proxy proxy) Gets theOsidSessionto lookup rule/engine mappings.getRuleEvaluationSession(Proxy proxy) Gets theOsidSessionassociated with the rule evaluation service.getRuleEvaluationSessionForEngine(Id engineId, Proxy proxy) Gets theOsidSessionassociated with the rule evaluation service for the given engine.getRuleLookupSession(Proxy proxy) Gets theOsidSessionassociated with the rule lookup service.getRuleLookupSessionForEngine(Id engineId, Proxy proxy) Gets theOsidSessionassociated with the rule lookup service for the given engine.getRuleNotificationSession(RuleReceiver ruleReceiver, Proxy proxy) Gets theOsidSessionassociated with the rule notification service.getRuleNotificationSessionForEngine(RuleReceiver ruleReceiver, Id engineId, Proxy proxy) Gets theOsidSessionassociated with the rule notification service for the given engine.getRuleQuerySession(Proxy proxy) Gets theOsidSessionassociated with the rule query service.getRuleQuerySessionForEngine(Id engineId, Proxy proxy) Gets theOsidSessionassociated with the rule query service for the given engine.Gets theRulesCheckProxyManager.getRuleSearchSession(Proxy proxy) Gets theOsidSessionassociated with the rule search service.getRuleSearchSessionForEngine(Id engineId, Proxy proxy) Gets theOsidSessionassociated with the rule search service for the given engine.getRuleSmartEngineSession(Id engineId, Proxy proxy) Gets theOsidSessionassociated with the rule smart engine service for the given engine.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 OsidProxyManager
closeMethods inherited from interface OsidProxyManager
changeBranch, initialize, rollbackServiceModifier and TypeMethodDescriptionvoidchangeBranch(Id branchId, Proxy proxy) Changes the service branch.voidinitialize(OsidRuntimeManager runtime) Initializes this manager.rollbackService(Date rollbackTime, Proxy proxy) Rolls back this service to a point in time.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.- Parameters:
proxy- the proxy- Returns:
- a
RuleEvaluationSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsRuleEvaluation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRuleEvaluation()} is {@code true} .
-
getRuleEvaluationSessionForEngine
RuleEvaluationSession getRuleEvaluationSessionForEngine(Id engineId, Proxy proxy) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the rule evaluation service for the given engine.- Parameters:
engineId- theIdof anEngineproxy- the proxy- Returns:
- a
RuleEValuationSession - Throws:
NotFoundException- noEnginefound by the givenIdNullArgumentException-engineIdorproxyisnullOperationFailedException- 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.- Parameters:
proxy- the proxy- Returns:
- a
RuleLookupSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsRuleLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRuleLookup()} is {@code true} .
-
getRuleLookupSessionForEngine
RuleLookupSession getRuleLookupSessionForEngine(Id engineId, Proxy proxy) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the rule lookup service for the given engine.- Parameters:
engineId- theIdof anEngineproxy- the proxy- Returns:
- a
RuleLookupSession - Throws:
NotFoundException- noEnginefound by the givenIdNullArgumentException-engineIdorproxyisnullOperationFailedException- 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.- Parameters:
proxy- the proxy- Returns:
- a
RuleQuerySession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsRuleQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRuleQuery()} is {@code true} .
-
getRuleQuerySessionForEngine
RuleQuerySession getRuleQuerySessionForEngine(Id engineId, Proxy proxy) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the rule query service for the given engine.- Parameters:
engineId- theIdof anEngineproxy- the proxy- Returns:
- a
RuleQuerySession - Throws:
NotFoundException- noEnginefound by the givenIdNullArgumentException-engineIdorproxyisnullOperationFailedException- 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.- Parameters:
proxy- the proxy- Returns:
- a
RuleSearchSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsRuleSearch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRuleSearch()} is {@code true} .
-
getRuleSearchSessionForEngine
RuleSearchSession getRuleSearchSessionForEngine(Id engineId, Proxy proxy) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the rule search service for the given engine.- Parameters:
engineId- theIdof anEngineproxy- the proxy- Returns:
- a
RuleSearchSession - Throws:
NotFoundException- noEnginefound by the givenIdNullArgumentException-engindIdorproxyisnullOperationFailedException- 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 administration service.- Parameters:
proxy- the proxy- Returns:
- a
RuleAdminSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsRuleAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRuleAdmin()} is {@code true} .
-
getRuleAdminSessionForEngine
RuleAdminSession getRuleAdminSessionForEngine(Id engineId, Proxy proxy) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the rule administration service for the given engine.- Parameters:
engineId- theIdof theRuleproxy- the proxy- Returns:
- a
RuleAdminSession - Throws:
NotFoundException- noEnginefound by the givenIdNullArgumentException-engindIdorproxyisnullOperationFailedException- 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, Proxy proxy) throws OperationFailedException Gets theOsidSessionassociated with the rule notification service.- Parameters:
ruleReceiver- the receiverproxy- the proxy- Returns:
- a
RuleNotificationSession - Throws:
NullArgumentException-ruleReceiverorproxyisnullOperationFailedException- 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, Proxy proxy) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the rule notification service for the given engine.- Parameters:
ruleReceiver- the receiverengineId- theIdof anEngineproxy- the proxy- Returns:
- a
RuleNotificationSession - Throws:
NotFoundException- noEnginefound by the givenIdNullArgumentException-ruleReceiver, engineIdorproxyisnullOperationFailedException- 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.- Parameters:
proxy- the proxy- Returns:
- a
RuleEngineSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsRuleEngine()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRuleEngine()} is {@code true} .
-
getRuleEngineAssignmentSession
RuleEngineAssignmentSession getRuleEngineAssignmentSession(Proxy proxy) throws OperationFailedException Gets theOsidSessionassociated with assigning rules to engines.- Parameters:
proxy- the proxy- Returns:
- a
RuleEngineAssignmentSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsRuleEngineAssignment()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRuleEngineAssignment()} is {@code true} .
-
getRuleSmartEngineSession
RuleSmartEngineSession getRuleSmartEngineSession(Id engineId, Proxy proxy) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the rule smart engine service for the given engine.- Parameters:
engineId- theIdof theRuleproxy- the proxy- Returns:
- a
RuleSmartEngineSession - Throws:
NotFoundException- noEnginefound by the givenIdNullArgumentException-engindIdorproxyisnullOperationFailedException- 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.- Parameters:
proxy- the proxy- Returns:
- an
EngineLookupSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- 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.- Parameters:
proxy- the proxy- Returns:
- an
EngineQuerySession - Throws:
NullArgumentException-proxyisnullOperationFailedException- 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.- Parameters:
proxy- the proxy- Returns:
- an
EngineSearchSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- 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.- Parameters:
proxy- the proxy- Returns:
- an
EngineAdminSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsEngineAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsEngineAdmin()} is {@code true} .
-
getEngineNotificationSession
EngineNotificationSession getEngineNotificationSession(EngineReceiver engineReceiver, Proxy proxy) throws OperationFailedException Gets theOsidSessionassociated with the engine notification service.- Parameters:
engineReceiver- the receiverproxy- the proxy- Returns:
- an
EngineNotificationSession - Throws:
NullArgumentException-engineReceiverorproxyisnullOperationFailedException- 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.- Parameters:
proxy- the proxy- Returns:
- an
EngineHierarchySession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsEngineHierarchy()isfalse- Compliance:
optional- This method must be implemented if {@code supportsEngineHierarchy()} is {@code true} .
-
getEngineHierarchyDesignSession
EngineHierarchyDesignSession getEngineHierarchyDesignSession(Proxy proxy) throws OperationFailedException Gets theOsidSessionassociated with the engine hierarchy design service.- Parameters:
proxy- the proxy- Returns:
- an
EngineHierarchyDesignSession - Throws:
NullArgumentException-proxyisnullOperationFailedException- unable to complete requestUnimplementedException-supportsEngineHierarchyDesign()isfalse- Compliance:
optional- This method must be implemented if {@code supportsEngineHierarchyDesign()} is {@code true} .
-
getRulesCheckProxyManager
Gets theRulesCheckProxyManager.- Returns:
- a
RulesCheckProxyManager - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsRulesCheckManager()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRulesCheckManager()} is {@code true} .
-