OSID Logo
OSID Specifications
subscription package
Version 3.0.0
Interfaceosid.subscription.SubscriptionForm
Implementsosid.OsidRelationshipForm
Implemented Byosid.subscription.batch.SubscriptionBatchForm
Used Byosid.subscription.MySubscriptionAdminSession
osid.subscription.SubscriptionAdminSession
Description

This is the form for creating and updating Subscriptions . Like all OsidForms , various data elements may be set here for use in the create and update methods in the SubscriptionAdminSession . For each data element that may be set, metadata may be examined to provide display hints or data constraints.

MethodgetAddressMetadata
Description

Gets the metadata for an address.

Returnosid.Metadatametadata for the address
CompliancemandatoryThis method must be implemented.
MethodsetAddress
Description

Sets the address.

Parametersosid.id.IdaddressIdthe new address
ErrorsINVALID_ARGUMENTaddressId is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTaddressId is null
CompliancemandatoryThis method must be implemented.
MethodclearAddress
Description

Clears the address.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetSubscriptionFormRecord
Description

Gets the SubscriptionFormRecord corresponding to the given subscription record Type .

Parametersosid.type.TypesubscriptionRecordTypethe subscription record type
Returnosid.subscription.records.SubscriptionFormRecordthe subscription form record
ErrorsNULL_ARGUMENTsubscriptionRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(subscriptionRecordType) is false
CompliancemandatoryThis method must be implemented.