OSID Logo
OSID Specifications
subscription rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.subscription.rules.SubscriptionRulesManager
Implementsosid.OsidManager
osid.subscription.rules.SubscriptionRulesProfile
Description

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

  • SubscriptionEnablerLookupSession: a session to retrieve subscription enablers
  • SubscriptionEnablerQuerySession: a session to query for subscription enablers
  • SubscriptionEnablerSearchSession: a session to search for subscription enablers
  • SubscriptionEnablerAdminSession: a session to create and delete subscription enablers
  • SubscriptionEnablerNotificationSession: a session to receive notifications pertaining to subscription enabler changes
  • SubscriptionEnablerPublisherSession: a session to look up subscription enabler publisher mappings
  • SubscriptionEnablerPublisherAssignmentSession: a session to manage subscription enabler to publisher mappings
  • SubscriptionEnablerSmartPublisherSession: a session to manage dynamic publishers of subscription enablers
  • SubscriptionEnablerRuleLookupSession: a session to look up subscription enabler to subscription mappings
  • SubscriptionEnablerRuleApplicationSession: a session to apply subscription enablers to subscriptions
MethodgetSubscriptionEnablerLookupSession
Description

Gets the OsidSession associated with the subscription enabler lookup service.

Returnosid.subscription.rules.SubscriptionEnablerLookupSessiona SubscriptionEnablerLookupSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsSubscriptionEnablerLookup() is false
ComplianceoptionalThis method must be implemented if supportsSubscriptionEnablerLookup() is true.
MethodgetSubscriptionEnablerLookupSessionForPublisher
Description

Gets the OsidSession associated with the subscription enabler lookup service for the given publisher.

Parametersosid.id.IdpublisherIdthe Id of the Publisher
Returnosid.subscription.rules.SubscriptionEnablerLookupSessiona SubscriptionEnablerLookupSession
ErrorsNOT_FOUNDno Publisher found by the given Id
NULL_ARGUMENT publisherId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsSubscriptionEnablerLookup() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsSubscriptionEnablerLookup() and supportsVisibleFederation() are true.
MethodgetSubscriptionEnablerQuerySession
Description

Gets the OsidSession associated with the subscription enabler query service.

Returnosid.subscription.rules.SubscriptionEnablerQuerySessiona SubscriptionEnablerQuerySession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsSubscriptionEnablerQuery() is false
ComplianceoptionalThis method must be implemented if supportsSubscriptionEnablerQuery() is true.
MethodgetSubscriptionEnablerQuerySessionForPublisher
Description

Gets the OsidSession associated with the subscription enabler query service for the given publisher.

Parametersosid.id.IdpublisherIdthe Id of the Publisher
Returnosid.subscription.rules.SubscriptionEnablerQuerySessiona SubscriptionEnablerQuerySession
ErrorsNOT_FOUNDno Publisher found by the given Id
NULL_ARGUMENT publisherId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsSubscriptionEnablerQuery() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsSubscriptionEnablerQuery() and supportsVisibleFederation() are true.
MethodgetSubscriptionEnablerSearchSession
Description

Gets the OsidSession associated with the subscription enabler search service.

Returnosid.subscription.rules.SubscriptionEnablerSearchSessiona SubscriptionEnablerSearchSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsSubscriptionEnablerSearch() is false
ComplianceoptionalThis method must be implemented if supportsSubscriptionEnablerSearch() is true.
MethodgetSubscriptionEnablerSearchSessionForPublisher
Description

Gets the OsidSession associated with the subscription enablers earch service for the given publisher.

Parametersosid.id.IdpublisherIdthe Id of the Publisher
Returnosid.subscription.rules.SubscriptionEnablerSearchSessiona SubscriptionEnablerSearchSession
ErrorsNOT_FOUNDno Publisher found by the given Id
NULL_ARGUMENT publisherId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsSubscriptionEnablerSearch() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsSubscriptionEnablerSearch() and supportsVisibleFederation() are true.
MethodgetSubscriptionEnablerAdminSession
Description

Gets the OsidSession associated with the subscription enabler administration service.

Returnosid.subscription.rules.SubscriptionEnablerAdminSessiona SubscriptionEnablerAdminSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsSubscriptionEnablerAdmin() is false
ComplianceoptionalThis method must be implemented if supportsSubscriptionEnablerAdmin() is true.
MethodgetSubscriptionEnablerAdminSessionForPublisher
Description

Gets the OsidSession associated with the subscription enabler administration service for the given publisher.

Parametersosid.id.IdpublisherIdthe Id of the Publisher
Returnosid.subscription.rules.SubscriptionEnablerAdminSessiona SubscriptionEnablerAdminSession
ErrorsNOT_FOUNDno Publisher found by the given Id
NULL_ARGUMENT publisherId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsSubscriptionEnablerAdmin() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsSubscriptionEnablerAdmin() and supportsVisibleFederation() are true.
MethodgetSubscriptionEnablerNotificationSession
Description

Gets the OsidSession associated with the subscription enabler notification service.

Parametersosid.subscription.rules.SubscriptionEnablerReceiversubscriptionEnablerReceiverthe notification callback
Returnosid.subscription.rules.SubscriptionEnablerNotificationSessiona SubscriptionEnablerNotificationSession
ErrorsNULL_ARGUMENT subscriptionEnablerReceiver is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsSubscriptionEnablerNotification() is false
ComplianceoptionalThis method must be implemented if supportsSubscriptionEnablerNotification() is true.
MethodgetSubscriptionEnablerNotificationSessionForPublisher
Description

Gets the OsidSession associated with the subscription enabler notification service for the given publisher.

Parametersosid.subscription.rules.SubscriptionEnablerReceiversubscriptionEnablerReceiverthe notification callback
osid.id.IdpublisherIdthe Id of the Publisher
Returnosid.subscription.rules.SubscriptionEnablerNotificationSessiona SubscriptionEnablerNotificationSession
ErrorsNOT_FOUNDno publisher found by the given Id
NULL_ARGUMENT subscriptionEnablerReceiver or publisherId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsSubscriptionEnablerNotification() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsSubscriptionEnablerNotification() and supportsVisibleFederation() are true.
MethodgetSubscriptionEnablerPublisherSession
Description

Gets the OsidSession to lookup subscription enablerpublisher mappings.

Returnosid.subscription.rules.SubscriptionEnablerPublisherSessiona SubscriptionEnablerPublisherSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsSubscriptionEnablerPublisher() is false
ComplianceoptionalThis method must be implemented if supportsSubscriptionEnablerPublisher() is true.
MethodgetSubscriptionEnablerPublisherAssignmentSession
Description

Gets the OsidSession associated with assigning subscription enablers to publishers.

Returnosid.subscription.rules.SubscriptionEnablerPublisherAssignmentSessiona SubscriptionEnablerPublisherAssignmentSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsSubscriptionEnablerPublisherAssignment() is false
ComplianceoptionalThis method must be implemented if supportsSubscriptionEnablerPublisherAssignment() is true.
MethodgetSubscriptionEnablerSmartPublisherSession
Description

Gets the OsidSession to manage subscription enabler smart publishers.

Parametersosid.id.IdpublisherIdthe Id of the Publisher
Returnosid.subscription.rules.SubscriptionEnablerSmartPublisherSessiona SubscriptionEnablerSmartPublisherSession
ErrorsNOT_FOUNDno Publisher found by the given Id
NULL_ARGUMENT publisherId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsSubscriptionEnablerSmartPublisher() is false
ComplianceoptionalThis method must be implemented if supportsSubscriptionEnablerSmartPublisher() is true.
MethodgetSubscriptionEnablerRuleLookupSession
Description

Gets the OsidSession associated with the subscription enabler mapping lookup service for looking up the rules applied to the subscription.

Returnosid.subscription.rules.SubscriptionEnablerRuleLookupSessiona SubscriptionEnablerRuleSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsSubscriptionEnablerRuleLookup() is false
ComplianceoptionalThis method must be implemented if supportsSubscriptionEnablerRuleLookup() is true.
MethodgetSubscriptionEnablerRuleLookupSessionForPublisher
Description

Gets the OsidSession associated with the subscription enabler mapping lookup service for the given subscription for looking up rules applied to a subscription.

Parametersosid.id.IdpublisherIdthe Id of the Publisher
Returnosid.subscription.rules.SubscriptionEnablerRuleLookupSessiona SubscriptionEnablerRuleLookupSession
ErrorsNOT_FOUNDno Publisher found by the given Id
NULL_ARGUMENT publisherId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsSubscriptionEnablerRuleLookup() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsSubscriptionEnablerRuleLookup() and supportsVisibleFederation() are true.
MethodgetSubscriptionEnablerRuleApplicationSession
Description

Gets the OsidSession associated with the subscription enabler assignment service to apply enablers to subscriptions.

Returnosid.subscription.rules.SubscriptionEnablerRuleApplicationSessiona SubscriptionEnablerRuleApplicationSession
ErrorsOPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsSubscriptionEnablerRuleApplication() is false
ComplianceoptionalThis method must be implemented if supportsSubscriptionEnablerRuleApplication() is true.
MethodgetSubscriptionEnablerRuleApplicationSessionForPublisher
Description

Gets the OsidSession associated with the subscription enabler assignment service for the given subscription to apply enablers to subscriptions.

Parametersosid.id.IdpublisherIdthe Id of the Publisher
Returnosid.subscription.rules.SubscriptionEnablerRuleApplicationSessiona SubscriptionEnablerRuleApplicationSession
ErrorsNOT_FOUNDno Publisher found by the given Id
NULL_ARGUMENT publisherId is null
OPERATION_FAILEDunable to complete request
UNIMPLEMENTED supportsSubscriptionEnablerRuleApplication() or supportsVisibleFederation() is false
ComplianceoptionalThis method must be implemented if supportsSubscriptionEnablerRuleApplication() and supportsVisibleFederation() are true.