public interface BidForm extends OsidRelationshipForm
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.
| Modifier and Type | Method and Description |
|---|---|
void |
clearMaximumBid()
Removes the maximum bid.
|
void |
clearQuantity()
Removes the quantity.
|
BidFormRecord |
getBidFormRecord(Type bidRecordType)
Gets the
BidFormRecord corresponding to the given bid
record Type. |
Metadata |
getMaximumBidMetadata()
Gets the metadata for the maximum bid.
|
Metadata |
getQuantityMetadata()
Gets the metadata for the quantity.
|
void |
setMaximumBid(Currency bid)
Sets the maximum bid.
|
void |
setQuantity(long quantity)
Sets the quantity.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypegetRequiredRecordTypesgetRecordTypes, hasRecordTypegetDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocalegetId, isCurrentclearEndDate, clearStartDate, getEndDateMetadata, getStartDateMetadata, setEndDate, setStartDateMetadata getQuantityMetadata()
mandatory - This method must be implemented. void setQuantity(long quantity)
quantity - the new quantityInvalidArgumentException - quantity is
invalidNoAccessException - Metadata.isReadOnly()
is true mandatory - This method must be implemented. void clearQuantity()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. Metadata getMaximumBidMetadata()
mandatory - This method must be implemented. void setMaximumBid(Currency bid)
bid - the new maximum bidInvalidArgumentException - bid is
invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - bid is
null mandatory - This method must be implemented. void clearMaximumBid()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. BidFormRecord getBidFormRecord(Type bidRecordType) throws OperationFailedException
BidFormRecord corresponding to the given bid
record Type. bidRecordType - a bid record typeNullArgumentException - bidRecordType is
null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(bidRecordType) is false mandatory - This method must be implemented.