Interface Bid
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, OsidRelationship, Temporal
A Bid represents a bid for an item at an auction.
-
Method Summary
Modifier and TypeMethodDescriptionGets the auction.Gets theIdof the auction.Gets the bidder.Gets theIdof the bidder.Gets the bidding agent.Gets theIdof the bidding agent.getBidRecord(Type bidRecordType) Gets the bid record corresponding to the givenBidrecordType.This method is used to retrieve an object implementing the requested record.Gets the current bid amount.Gets the maximum bid.longGets the quantity of items in this bid.Gets the settlement amount owed from the bidder.booleanisWinner()Tests if this was a winning bid.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 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.Methods inherited from interface OsidRelationship
getEndReason, getEndReasonId, hasEndReasonModifier and TypeMethodDescriptionGets a state indicating why this relationship has ended.Gets a stateIdindicating why this relationship has ended.booleanTests if a reason this relationship came to an end is known.Methods inherited from interface Temporal
getEndDate, getStartDate, isEffectiveModifier and TypeMethodDescriptionGets the end date.Gets the start date.booleanTests if the current date is within the start end end dates inclusive.
-
Method Details
-
getAuctionId
Id getAuctionId()Gets theIdof the auction.- Returns:
- the auction
Id - Compliance:
mandatory- This method must be implemented.
-
getAuction
Gets the auction.- Returns:
- the auction
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getBidderId
Id getBidderId()Gets theIdof the bidder.- Returns:
- the resource
Id - Compliance:
mandatory- This method must be implemented.
-
getBidder
Gets the bidder.- Returns:
- the resource
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getBiddingAgentId
Id getBiddingAgentId()Gets theIdof the bidding agent.- Returns:
- the agent
Id - Compliance:
mandatory- This method must be implemented.
-
getBiddingAgent
Gets the bidding agent.- Returns:
- the agent
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getQuantity
long getQuantity()Gets the quantity of items in this bid.- Returns:
- the quantity of items
- Compliance:
mandatory- This method must be implemented.
-
getCurrentBid
Currency getCurrentBid()Gets the current bid amount.- Returns:
- the current bid
- Compliance:
mandatory- This method must be implemented.
-
getMaximumBid
Currency getMaximumBid()Gets the maximum bid. For some auctions, the current bid is the maximum bid. For others, the current bid may be less then the maximum bid and automatically increment when greater bids are made up to the maximum bid.- Returns:
- the maximum bid
- Compliance:
mandatory- This method must be implemented.
-
isWinner
boolean isWinner()Tests if this was a winning bid.- Returns:
trueif this was a winnign bid,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSettlementAmount
Currency getSettlementAmount()Gets the settlement amount owed from the bidder.- Returns:
- the settlement amount
- Compliance:
mandatory- This method must be implemented.
-
getBidRecord
Gets the bid record corresponding to the givenBidrecordType.This method is used to retrieve an object implementing the requested record. ThebidRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(bidRecordType)istrue.- Parameters:
bidRecordType- the type of bid record to retrieve- Returns:
- the bid record
- Throws:
NullArgumentException-bidRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(bidRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-