Interface BidForm
- All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidRelationshipForm, OsidTemporalForm, Suppliable
- All Known Subinterfaces:
BidBatchForm
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.
Like all OsidForms, BidForm is stateful and must not
be accessed by multiple processing threads.
-
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves the maximum bid.voidRemoves the quantity.getBidFormRecord(Type bidRecordType) Gets theBidFormRecordcorresponding to the given bid recordType.Gets the metadata for the maximum bid.Gets the metadata for the quantity.voidsetMaximumBid(Currency bid) Sets the maximum bid.voidsetQuantity(long quantity) Sets the quantity.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeMethods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidExtensibleForm
getRequiredRecordTypesMethods inherited from interface OsidForm
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocaleMethods inherited from interface OsidObjectForm
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypeMethods inherited from interface OsidRelationshipForm
clearEndReason, getEndReasonMetadata, setEndReasonMethods inherited from interface OsidTemporalForm
clearEndDate, clearStartDate, getEndDateMetadata, getStartDateMetadata, setEndDate, setStartDate
-
Method Details
-
getQuantityMetadata
Metadata getQuantityMetadata()Gets the metadata for the quantity.- Returns:
- metadata for the quantity
- Compliance:
mandatory- This method must be implemented.
-
setQuantity
void setQuantity(long quantity) Sets the quantity.- Parameters:
quantity- the new quantity- Throws:
InvalidArgumentException-quantityis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearQuantity
void clearQuantity()Removes the quantity.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getMaximumBidMetadata
Metadata getMaximumBidMetadata()Gets the metadata for the maximum bid.- Returns:
- metadata for the maximum bid
- Compliance:
mandatory- This method must be implemented.
-
setMaximumBid
Sets the maximum bid.- Parameters:
bid- the new maximum bid- Throws:
InvalidArgumentException-bidis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-bidisnull- Compliance:
mandatory- This method must be implemented.
-
clearMaximumBid
void clearMaximumBid()Removes the maximum bid.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getBidFormRecord
Gets theBidFormRecordcorresponding to the given bid recordType.- Parameters:
bidRecordType- a bid record type- Returns:
- the bid form record
- Throws:
NullArgumentException-bidRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(bidRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-