OSID Logo
OSID Specifications
ordering package
Version 3.1.0
Interfaceosid.ordering.PriceForm
Implementsosid.OsidRuleForm
osid.OsidSubjugateableForm
Used Byosid.ordering.PriceScheduleAdminSession
Description

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

MethodgetMinQuantityMetadata
Description

Gets the metadata for the minimum quantity.

Returnosid.Metadata metadata for the minumim quantity
Compliancemandatory This method must be implemented.
MethodsetMinimumQuantity
Description

Sets the minimum quantity.

ParameterscardinalminQuantity the new minumim quantity
ErrorsINVALID_ARGUMENT minQuantity is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearMinimumQuantity
Description

Clears the minimum quantity.

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

Gets the metadata for the minimum quantity.

Returnosid.Metadata metadata for the maximum quantity
Compliancemandatory This method must be implemented.
MethodsetMaximumQuantity
Description

Sets the maximum quantity.

ParameterscardinalminQuantity the new maximum quantity
ErrorsINVALID_ARGUMENT maxQuantity is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearMaximumQuantity
Description

Clears the maximum quantity.

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

Gets the metadata for the demographic.

Returnosid.Metadata metadata for the demographic
Compliancemandatory This method must be implemented.
MethodsetDemographic
Description

Sets the demographic.

Parametersosid.id.IdresourceId the new demographic
ErrorsINVALID_ARGUMENT resourceId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT resourceId is null
Compliancemandatory This method must be implemented.
MethodclearDemographic
Description

Clears the demographic.

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

Gets the metadata for the amount.

Returnosid.Metadata metadata for the amount
Compliancemandatory This method must be implemented.
MethodsetAmount
Description

Sets the amount.

Parametersosid.search.terms.CurrencyRangeTerm[]amount the new amount
ErrorsINVALID_ARGUMENT amount is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearAmount
Description

Clears the amount.

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

Gets the metadata for the recurring interval.

Returnosid.Metadata metadata for the recurring interval
Compliancemandatory This method must be implemented.
MethodsetRecurringInterval
Description

Sets the recurring interval.

Parametersosid.calendaring.Durationinterval the new recurring interval
ErrorsINVALID_ARGUMENT interval is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearRecurringInterval
Description

Clears the recurring interval.

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

Gets the PriceFormRecord corresponding to the given price record Type.

Parametersosid.type.TypepriceRecordType the price record type
Returnosid.ordering.records.PriceFormRecord the price form record
ErrorsNULL_ARGUMENT priceRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(priceRecordType) is false
Compliancemandatory This method must be implemented.