OSID Logo
OSID Specifications
subscription package
Version 3.1.0
Interfaceosid.subscription.Subscription
Implementsosid.OsidRelationship
Used Byosid.subscription.MySubscriptionAdminSession
osid.subscription.SubscriptionAdminSession
osid.subscription.SubscriptionList
osid.subscription.SubscriptionLookupSession
Description

A Subscription relates a subscriber to a Dispatch and also contains the subscriber's Address to use as the means of contact in this context.

MethodgetDispatchId
Description

Gets the Id of the dispatch.

Returnosid.id.Id the dispatch Id
Compliancemandatory This method must be implemented.
MethodgetDispatch
Description

Gets the dispatch.

Returnosid.subscription.Dispatch the dispatch Id
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetSubscriberId
Description

Gets the Id of the subscriber.

Returnosid.id.Id the subscriber Id
Compliancemandatory This method must be implemented.
MethodgetSubscriber
Description

Gets the subscriber.

Returnosid.resource.Resource the subscriber
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetAddressId
Description

Gets the Id of the subscriber's address.

Returnosid.id.Id the address Id
Compliancemandatory This method must be implemented.
MethodgetAddress
Description

Gets the subscriber's address.

Returnosid.contact.Address the subscriber's address.
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetSubscriptionRecord
Description

Gets the subscription record corresponding to the given Subscription record Type. This method is used to retrieve an object implementing the requested record. The subscriptionRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(subscriptionRecordType) is true.

Parametersosid.type.TypesubscriptionRecordType the type of subscription record to retrieve
Returnosid.subscription.records.SubscriptionRecord the subscription record
ErrorsNULL_ARGUMENT subscriptionRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(subscriptionRecordType) is false
Compliancemandatory This method must be implemented.