Interface MyAuctionSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session defines methods for accessing auctions bid by authenticated agent.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can performItemlookups.Gets theAuctionHouseassociated with this session.Gets theAuctionHouseIdassociated with this session.Gets all the auctions bid by this agent and the auctions in which this agent is a particpant.Gets a list of auctions in which this agent may place another bid.Gets all the bids made by this agent.getMyBidsByDate(DateTime start, DateTime end) Gets all the bids bid this agent where the bids have a start effective date within the given date range inclusive.getMyBidsForAuction(Id auctionId) Gets all the bids made by this agent for the given auction.Gets all the auctions open for bidding that have been bid on by this agent and the auctions in which this agent is a particpant.Gets all the winning bids made by any agent.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getAuctionHouseId
Id getAuctionHouseId()Gets theAuctionHouseIdassociated with this session.- Returns:
- the
AuctionHouse Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getAuctionHouse
Gets theAuctionHouseassociated with this session.- Returns:
- the auction house
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canLookupMyAuctions
boolean canLookupMyAuctions()Tests if this user can performItemlookups. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may not offer lookup operations to unauthorized users.- Returns:
falseif lookup methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getMyAuctions
Gets all the auctions bid by this agent and the auctions in which this agent is a particpant.- Returns:
- the returned
AuctionList - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getMyOpenAuctions
Gets all the auctions open for bidding that have been bid on by this agent and the auctions in which this agent is a particpant.- Returns:
- the returned
AuctionList - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getMyAuctionsForBidding
Gets a list of auctions in which this agent may place another bid. A list of open auctions in which this agent is a participant and not already the highest bidder is returned. Ante auctions where it is the agent's turn are also returned.- Returns:
- the returned
AuctionList - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getMyBids
Gets all the bids made by this agent.- Returns:
- the returned
Bidlist - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getMyBidsByDate
BidList getMyBidsByDate(DateTime start, DateTime end) throws OperationFailedException, PermissionDeniedException Gets all the bids bid this agent where the bids have a start effective date within the given date range inclusive.- Parameters:
start- start of date rangeend- end of date range- Returns:
- the returned
BidList - Throws:
InvalidArgumentException-startis greater thanendNullArgumentException-startorendisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getMyBidsForAuction
BidList getMyBidsForAuction(Id auctionId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets all the bids made by this agent for the given auction.- Parameters:
auctionId- anIdof anAuction- Returns:
- the returned
Bidlist - Throws:
NotFoundException-auctionIdis bot foundNullArgumentException-auctionIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getWinningBids
Gets all the winning bids made by any agent.- Returns:
- the winning
Bidlist - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-