public interface Auction extends OsidGovernator, Temporal
An Auction
governs how Bids
may be
performed. Auctions
are temporal where bidding is open if
isEffective()
is true.
Modifier and Type | Method and Description |
---|---|
AuctionRecord |
getAuctionRecord(Type auctionRecordType)
Gets the auction record corresponding to the given
Auction
record Type. |
Currency |
getBuyoutPrice()
Gets the buyout price.
|
Type |
getCurrencyType()
Gets the currency type used in this auction.
|
Resource |
getItem()
Gets the item.
|
Id |
getItemId()
Gets the item
Id. |
long |
getItemLimit()
Gets the limit on the number of items that can be bought.
|
long |
getLotSize()
Gets the number of items up for bid.
|
long |
getMinimumBidders()
Gets the minimum number of bidders required for this auction to
complete.
|
Currency |
getPriceIncrement()
Gets the minimum increment amount for successive bids.
|
long |
getRemainingItems()
Gets the number of items remaining.
|
Currency |
getReservePrice()
Gets the reserve price.
|
Resource |
getSeller()
Gets the seller.
|
Id |
getSellerId()
Gets the seller
Id. |
Currency |
getStartingPrice()
Gets the starting price per item.
|
boolean |
hasBuyoutPrice()
Tests if a buyout price is available.
|
boolean |
hasReservePrice()
Tests if a buyout price is available.
|
boolean |
isSealed()
Tests if bids in this auction are visible.
|
boolean |
limitsItems()
Tests if this auction has a maxmimum number of items that can be
bought.
|
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
isActive, isDisabled, isEnabled, isOperational
getBranding, getBrandingIds, getLicense, getProvider, getProviderId
getEndDate, getStartDate, isEffective
Type getCurrencyType()
mandatory
- This method must be implemented. long getMinimumBidders()
mandatory
- This method must be implemented. boolean isSealed()
true
if this auction is sealed, false
otherwisemandatory
- This method must be implemented. Id getSellerId()
Id.
Id
mandatory
- This method must be implemented. Resource getSeller() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. Id getItemId()
Id.
Id
mandatory
- This method must be implemented. Resource getItem() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. long getLotSize()
mandatory
- This method must be implemented. long getRemainingItems()
mandatory
- This method must be implemented. boolean limitsItems()
true
if the auction has an item limit,
false
otherwisemandatory
- This method must be implemented. long getItemLimit()
IllegalStateException
- limitsItems()
is
false
mandatory
- This method must be implemented. Currency getStartingPrice()
mandatory
- This method must be implemented. Currency getPriceIncrement()
mandatory
- This method must be implemented. boolean hasReservePrice()
true
if the auction has a reserve price,
false
otherwisemandatory
- This method must be implemented. Currency getReservePrice()
IllegalStateException
- hasReservePrice()
is false
mandatory
- This method must be implemented. boolean hasBuyoutPrice()
true
if the item can be bought out,
false
otherwisemandatory
- This method must be implemented. Currency getBuyoutPrice()
IllegalStateException
- hasBuyoutPrice()
is false
mandatory
- This method must be implemented. AuctionRecord getAuctionRecord(Type auctionRecordType) throws OperationFailedException
Auction
record Type.
This method ie used to retrieve an
object implementing the requested record. The auctionRecordType
may be the Type
returned in
getRecordTypes()
or any of its parents in a Type
hierarchy where hasRecordType(auctionRecordType)
is true
.auctionRecordType
- the type of auction record to retrieveNullArgumentException
- auctionRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(auctionRecordType)
is false
mandatory
- This method must be implemented.