OSID Logo
OSID Specifications
bidding package
Version 3.0.0
Release Candidate Preview
Interfaceosid.bidding.BidForm
Implementsosid.OsidRelationshipForm
Description

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

MethodgetQuantityMetadata
Description

Gets the metadata for the quantity.

Returnosid.Metadatametadata for the quantity
CompliancemandatoryThis method must be implemented.
MethodsetQuantity
Description

Sets the quantity.

Parameterscardinalquantitythe new quantity
ErrorsINVALID_ARGUMENT quantity is invalid
NO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearQuantity
Description

Removes the quantity.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetMaximumBidMetadata
Description

Gets the metadata for the maximum bid.

Returnosid.Metadatametadata for the maximum bid
CompliancemandatoryThis method must be implemented.
MethodsetMaximumBid
Description

Sets the maximum bid.

Parametersosid.financials.Currencybidthe new maximum bid
ErrorsINVALID_ARGUMENT bid is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT bid is null
CompliancemandatoryThis method must be implemented.
MethodclearMaximumBid
Description

Removes the maximum bid.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetBidFormRecord
Description

Gets the BidFormRecord corresponding to the given bid record Type.

Parametersosid.type.TypebidRecordTypea bid record type
Returnosid.bidding.records.BidFormRecordthe bid form record
ErrorsNULL_ARGUMENT bidRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(bidRecordType) is false
CompliancemandatoryThis method must be implemented.