OSID Logo
OSID Specifications
subscription package
Version 3.1.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.Metadata metadata for the address
Compliancemandatory This method must be implemented.
MethodsetAddress
Description

Sets the address.

Parametersosid.id.IdaddressId the new address
ErrorsINVALID_ARGUMENT addressId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT addressId is null
Compliancemandatory This method must be implemented.
MethodclearAddress
Description

Clears the address.

ErrorsNO_ACCESS Metadata.isRequired() or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetSubscriptionFormRecord
Description

Gets the SubscriptionFormRecord corresponding to the given subscription record Type.

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