Interface Auction
- All Superinterfaces:
Browsable, Extensible, Identifiable, Operable, OsidGovernator, OsidObject
An Auction governs how Bids may be performed.
-
Method Summary
Modifier and TypeMethodDescriptiongetAuctionRecord(Type auctionRecordType) Gets the auction record corresponding to the givenAuctionrecordType.This method ie used to retrieve an object implementing the requested record.Gets the buyout price.Gets the currency type used in this auction.getItem()Gets the item.Gets the itemId.longGets the limit on the number of items that can be bought.longGets the number of items up for bid.longGets the minimum number of bidders required for this auction to complete.Gets the minimum increment amount for successive bids.longGets the number of items remaining.Gets the reserve price.Gets the seller.Gets the sellerId.Gets the starting price per item.booleanTests if a buyout price is available.booleanTests if a buyout price is available.booleanisSealed()Tests if bids in this auction are visible.booleanTests if this auction has a maxmimum number of items that can be bought.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface Operable
isActive, isDisabled, isEnabled, isOperationalModifier and TypeMethodDescriptionbooleanisActive()Tests if this operable is active.booleanTests if this operable is administravely disabled.booleanTests if this operable is administravely enabled.booleanTests if thisOperableis operational.Methods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.
-
Method Details
-
getCurrencyType
Type getCurrencyType()Gets the currency type used in this auction.- Returns:
- currency type
- Compliance:
mandatory- This method must be implemented.
-
getMinimumBidders
long getMinimumBidders()Gets the minimum number of bidders required for this auction to complete.- Returns:
- the minimum number of bidders
- Compliance:
mandatory- This method must be implemented.
-
isSealed
boolean isSealed()Tests if bids in this auction are visible.- Returns:
trueif this auction is sealed,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSellerId
Id getSellerId()Gets the sellerId.- Returns:
- a resource
Id - Compliance:
mandatory- This method must be implemented.
-
getSeller
Gets the seller.- Returns:
- a resource
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getItemId
Id getItemId()Gets the itemId.- Returns:
- a resource
Id - Compliance:
mandatory- This method must be implemented.
-
getItem
Gets the item.- Returns:
- a resource
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getLotSize
long getLotSize()Gets the number of items up for bid.- Returns:
- the initial number of items
- Compliance:
mandatory- This method must be implemented.
-
getRemainingItems
long getRemainingItems()Gets the number of items remaining.- Returns:
- the number of items remaining
- Compliance:
mandatory- This method must be implemented.
-
limitsItems
boolean limitsItems()Tests if this auction has a maxmimum number of items that can be bought.- Returns:
trueif the auction has an item limit,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getItemLimit
long getItemLimit()Gets the limit on the number of items that can be bought.- Returns:
- the item limit
- Throws:
IllegalStateException-limitsItems()isfalse- Compliance:
mandatory- This method must be implemented.
-
getStartingPrice
Currency getStartingPrice()Gets the starting price per item.- Returns:
- the starting price
- Compliance:
mandatory- This method must be implemented.
-
getPriceIncrement
Currency getPriceIncrement()Gets the minimum increment amount for successive bids.- Returns:
- the increment
- Compliance:
mandatory- This method must be implemented.
-
hasReservePrice
boolean hasReservePrice()Tests if a buyout price is available.- Returns:
trueif the auction has a reserve price,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getReservePrice
Currency getReservePrice()Gets the reserve price.- Returns:
- the reserve price
- Throws:
IllegalStateException-hasReservePrice()isfalse- Compliance:
mandatory- This method must be implemented.
-
hasBuyoutPrice
boolean hasBuyoutPrice()Tests if a buyout price is available.- Returns:
trueif the item can be bought out,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getBuyoutPrice
Currency getBuyoutPrice()Gets the buyout price.- Returns:
- the buyout price
- Throws:
IllegalStateException-hasBuyoutPrice()isfalse- Compliance:
mandatory- This method must be implemented.
-
getAuctionRecord
Gets the auction record corresponding to the givenAuctionrecordType.This method ie used to retrieve an object implementing the requested record. TheauctionRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(auctionRecordType)istrue.- Parameters:
auctionRecordType- the type of auction record to retrieve- Returns:
- the auction record
- Throws:
NullArgumentException-auctionRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(auctionRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-