| Interface | osid.subscription.rules.SubscriptionEnablerRuleLookupSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | 
                 This session provides methods to retrieve  This lookup session defines several views: 
  | ||
| Method | getPublisherId | ||
| Description | 
                     Gets the   | ||
| Return | osid.id.Id | the  Publisher Id  associated with this session  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getPublisher | ||
| Description | 
                     Gets the   | ||
| Return | osid.subscription.Publisher | the publisher | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canLookupSubscriptionEnablerRules | ||
| Description | 
                     Tests if this user can perform lookups of subscription 
                    enabler/subscription mappings. A return of true does not 
                    guarantee successful authorization. A return of false 
                    indicates that it is known lookup methods in this session 
                    will result in a   | ||
| Return | boolean |  false  if looking up mappings is not authorized,  true 
 otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | useComparativeSubscriptionEnablerRuleView | ||
| 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 | usePlenarySubscriptionEnablerRuleView | ||
| Description | 
                     A complete view of the   | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useFederatedPublisherView | ||
| Description | 
                     Federates the view for methods in this session. A federated view will include subscription enablers in publishers which are children of this publisher in the publisher hierarchy.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useIsolatedPublisherView | ||
| Description | 
                     Isolates the view for methods in this session. An isolated view restricts lookups to this publisher only.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getSubscriptionEnablerIdsForSubscription | ||
| Description | 
                     Gets the   | ||
| Parameters | osid.id.Id |  subscriptionId |  Id  of the  Subscription   | 
| Return | osid.id.IdList | the subscription enabler  Ids   | |
| Errors | NOT_FOUND |  subscriptionId  is not found  |                 |
| NULL_ARGUMENT |  subscriptionId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getSubscriptionEnablersForSubscription | ||
| Description | 
                     Gets the   | ||
| Parameters | osid.id.Id | subscriptionId |  Id  of the  Subscription   | 
| Return | osid.subscription.rules.SubscriptionEnablerList | the subscription enablers | |
| Errors | NOT_FOUND |  subscriptionId  is not found  |                 |
| NULL_ARGUMENT |  subscriptionId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getSubscriptionIdsBySubscriptionEnabler | ||
| Description | 
                     Gets the   | ||
| Parameters | osid.id.Id | subscriptionEnablerId |  Id  of a  SubscriptionEnabler   | 
| Return | osid.id.IdList | list of subscription  Ids   | |
| Errors | NOT_FOUND |  subscriptionEnablerId  is not found  |                 |
| NULL_ARGUMENT |  subscriptionEnablerId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getSubscriptionsBySubscriptionEnabler | ||
| Description | 
                     Gets the   | ||
| Parameters | osid.id.Id | subscriptionEnablerId |  Id  of a  SubscriptionEnabler   | 
| Return | osid.subscription.SubscriptionList | list of subscriptions | |
| Errors | NOT_FOUND |  subscriptionEnablerId  is not found  |                 |
| NULL_ARGUMENT |  subscriptionEnablerId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |