public interface AuctionForm extends OsidGovernatorForm, OsidTemporalForm
This is the form for creating and updating Auctions.
Like all OsidForm
objects, various data elements may be set
here for use in the create and update methods in the
AuctionAdminSession.
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 |
clearBuyoutPrice()
Removes the buyout price.
|
void |
clearCurrencyType()
Removes the currency type.
|
void |
clearItem()
Removes the item.
|
void |
clearItemLimit()
Removes the item limit.
|
void |
clearLotSize()
Removes the lot size.
|
void |
clearMinimumBidders()
Removes the minimum bidders.
|
void |
clearPriceIncrement()
Removes the price increment.
|
void |
clearReservePrice()
Removes the reserve price.
|
void |
clearSealed()
Removes the sealed flag.
|
void |
clearSeller()
Removes the item.
|
void |
clearStartingPrice()
Removes the starting price.
|
AuctionFormRecord |
getAuctionFormRecord(Type auctionRecordType)
Gets the
AuctionFormRecord corresponding to the given
auction record Type. |
Metadata |
getBuyoutPriceMetadata()
Gets the metadata for the buyout price.
|
Metadata |
getCurrnecyTypeMetadata()
Gets the metadata for the currency type.
|
Metadata |
getItemLimitMetadata()
Gets the metadata for the item limit.
|
Metadata |
getItemMetadata()
Gets the metadata for the item.
|
Metadata |
getLotSizeMetadata()
Gets the metadata for the lot size.
|
Metadata |
getMinimumBiddersMetadata()
Gets the metadata for the minimum bidders.
|
Metadata |
getPriceIncrementMetadata()
Gets the metadata for the price increment.
|
Metadata |
getReservePriceMetadata()
Gets the metadata for the reserve price.
|
Metadata |
getSealedMetadata()
Gets the metadata for the sealed flag.
|
Metadata |
getSellerMetadata()
Gets the metadata for the seller.
|
Metadata |
getStartingPriceMetadata()
Gets the metadata for the starting price.
|
void |
setBuyoutPrice(Currency price)
Sets the buyout price.
|
void |
setCurrencyType(Type currencyType)
Sets the currency type
|
void |
setItem(Id resourceId)
Sets the item.
|
void |
setItemLimit(long limit)
Sets the item limit.
|
void |
setLotSize(long size)
Sets the lot size.
|
void |
setMinimumBidders(long bidders)
Sets the minimum bidders.
|
void |
setPriceIncrement(Currency price)
Sets the price increment.
|
void |
setReservePrice(Currency price)
Sets the reserve price.
|
void |
setSealed(boolean sealed)
Sets the sealed flag.
|
void |
setSeller(Id resourceId)
Sets the seller.
|
void |
setStartingPrice(Currency price)
Sets the starting price.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
clearDisabled, clearEnabled, getDisabledMetadata, getEnabledMetadata, setDisabled, setEnabled
clearBranding, clearLicense, clearProvider, getBrandingMetadata, getLicenseMetadata, getProviderMetadata, setBranding, setLicense, setProvider
clearEndDate, clearStartDate, getEndDateMetadata, getStartDateMetadata, setEndDate, setStartDate
Metadata getCurrnecyTypeMetadata()
mandatory
- This method must be implemented. void setCurrencyType(Type currencyType)
currencyType
- the new currency typeInvalidArgumentException
- currencyType
is invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- currencyType
is
null
mandatory
- This method must be implemented. void clearCurrencyType()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getMinimumBiddersMetadata()
mandatory
- This method must be implemented. void setMinimumBidders(long bidders)
bidders
- the new minimum biddersInvalidArgumentException
- bidders
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearMinimumBidders()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getSealedMetadata()
mandatory
- This method must be implemented. void setSealed(boolean sealed)
sealed
- the new sealed flagInvalidArgumentException
- sealed
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearSealed()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getSellerMetadata()
mandatory
- This method must be implemented. void setSeller(Id resourceId)
resourceId
- the new resource Id
InvalidArgumentException
- resourceId
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- resourceId
is
null
mandatory
- This method must be implemented. void clearSeller()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getItemMetadata()
mandatory
- This method must be implemented. void setItem(Id resourceId)
resourceId
- the new resource Id
InvalidArgumentException
- resourceId
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- resourceId
is
null
mandatory
- This method must be implemented. void clearItem()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getLotSizeMetadata()
mandatory
- This method must be implemented. void setLotSize(long size)
size
- the new lot sizeInvalidArgumentException
- size
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearLotSize()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getItemLimitMetadata()
mandatory
- This method must be implemented. void setItemLimit(long limit)
limit
- the new item limitInvalidArgumentException
- limit
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearItemLimit()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getStartingPriceMetadata()
mandatory
- This method must be implemented. void setStartingPrice(Currency price)
price
- the new starting priceInvalidArgumentException
- price
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- price
is
null
mandatory
- This method must be implemented. void clearStartingPrice()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getPriceIncrementMetadata()
mandatory
- This method must be implemented. void setPriceIncrement(Currency price)
price
- the new price incrementInvalidArgumentException
- price
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- price
is
null
mandatory
- This method must be implemented. void clearPriceIncrement()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getReservePriceMetadata()
mandatory
- This method must be implemented. void setReservePrice(Currency price)
price
- the new reserve priceInvalidArgumentException
- price
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- price
is
null
mandatory
- This method must be implemented. void clearReservePrice()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getBuyoutPriceMetadata()
mandatory
- This method must be implemented. void setBuyoutPrice(Currency price)
price
- the new buyout priceInvalidArgumentException
- price
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- price
is
null
mandatory
- This method must be implemented. void clearBuyoutPrice()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. AuctionFormRecord getAuctionFormRecord(Type auctionRecordType) throws OperationFailedException
AuctionFormRecord
corresponding to the given
auction record Type.
auctionRecordType
- an auction record typeNullArgumentException
- auctionRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(auctionRecordType)
is false
mandatory
- This method must be implemented.