Interface | osid.rules.RuleLookupSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session provides methods for retrieving This session defines views that offer differing behaviors when retrieving multiple objects.
Generally, the comparative view should be used for most
applications as it permits operation even if there is data
that cannot be accessed. For example, a browsing application
may only need to examine the | ||
Method | getEngineId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Engine Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getEngine | ||
Description |
Gets the | ||
Return | osid.rules.Engine | the engine | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canLookupRules | ||
Description |
Tests if this user can perform | ||
Return | boolean | false if lookup methods are not authorized, true
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | useComparativeRuleView | ||
Description |
The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | usePlenaryRuleView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useFederatedEngineView | ||
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. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useIsolatedEngineView | ||
Description |
Isolates the view for methods in this session. An isolated view restricts retrievals to this engine only. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useActiveRuleView | ||
Description |
Only active rules are returned by methods in this session. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useAnyStatusRuleView | ||
Description |
All active and inactive rules are returned by methods in this session. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getRule | ||
Description |
Gets the In active mode, rules are returned that are currently active. In any status mode, active and inactive rules are returned. | ||
Parameters | osid.id.Id | ruleId | Id of the Rule |
Return | osid.rules.Rule | the rule | |
Errors | NOT_FOUND | ruleId not found | |
NULL_ARGUMENT | ruleId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getRulesByIds | ||
Description |
Gets a In active mode, rules are returned that are currently active. In any status mode, active and inactive rules are returned. | ||
Parameters | osid.id.IdList | ruleIds | the list of Ids to retrieve |
Return | osid.rules.RuleList | the returned Rule list | |
Errors | NOT_FOUND | an Id was not found | |
NULL_ARGUMENT | ruleIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRulesByGenusType | ||
Description |
Gets a In active mode, rules are returned that are currently active. In any status mode, active and inactive rules are returned. | ||
Parameters | osid.type.Type | ruleGenusType | a rule genus type |
Return | osid.rules.RuleList | the returned Rule list | |
Errors | NULL_ARGUMENT | ruleGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRulesByParentGenusType | ||
Description |
Gets a In active mode, rules are returned that are currently active. In any status mode, active and inactive rules are returned. | ||
Parameters | osid.type.Type | ruleGenusType | a rule genus type |
Return | osid.rules.RuleList | the returned Rule list | |
Errors | NULL_ARGUMENT | ruleGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRulesByRecordType | ||
Description |
Gets a In active mode, rules are returned that are currently active. In any status mode, active and inactive rules are returned. | ||
Parameters | osid.type.Type | ruleRecordType | a rule record type |
Return | osid.rules.RuleList | the returned Rule list | |
Errors | NULL_ARGUMENT | ruleRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRules | ||
Description |
Gets all In plenary mode, the returned list contains all known rules or an error results. Otherwise, the returned list may contain only those rules that are accessible through this session. In active mode, rules are returned that are currently active. In any status mode, active and inactive rules are returned. | ||
Return | osid.rules.RuleList | a list of Rules | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |