Interface MyAuctionNotificationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session defines methods to receive notifications on changes to an auction in progress.
-
Method Summary
Modifier and TypeMethodDescriptionvoidacknowledgeMyAuctionNotification(Id notificationId) Acknowledge an auction notification.booleanTests if this user can register forAuctionnotifications.Gets theAuctionHouseassociated with this session.Gets theAuctionHouseIdassociated with this session.voidRegister for a notification of the end of the auction.voidRegister for a notification of the start of the auction.voidRegister for notifications of new bids.voidRegister for notifications of bids that outbid that of the authenticated bidder.voidRegister for notifications of bids that are required at this time for the authenticated bidder.voidReliable notifications are desired.voidUnreliable notifications are desired.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.
-
canRegisterForMyAuctionNotifications
boolean canRegisterForMyAuctionNotifications()Tests if this user can register forAuctionnotifications. 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 opt not to offer notification operations.- Returns:
falseif notification methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
reliableMyAuctionNotifications
void reliableMyAuctionNotifications()Reliable notifications are desired. In reliable mode, notifications are to be acknowledged usingacknowledgeMyAuctionNotification().- Compliance:
mandatory- This method is must be implemented.
-
unreliableMyAuctionNotifications
void unreliableMyAuctionNotifications()Unreliable notifications are desired. In unreliable mode, notifications do not need to be acknowledged.- Compliance:
mandatory- This method is must be implemented.
-
acknowledgeMyAuctionNotification
void acknowledgeMyAuctionNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException Acknowledge an auction notification.- Parameters:
notificationId- theIdof the notification- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForAuctionStart
Register for a notification of the start of the auction.MyAuctionReceiver.startAuctions()is invoked when a the auction begins.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForNewBids
Register for notifications of new bids.MyAuctionReceiver.newBids()is invoked when a newBidis made in this auction.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForOutBids
Register for notifications of bids that outbid that of the authenticated bidder.MyAuctionReceiver.outBids()is invoked when a newBidis made in this auction.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForRequireBid
Register for notifications of bids that are required at this time for the authenticated bidder.MyAuctionReceiver.requireBid()is invoked when it is time to ante up.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForAuctionEnd
Register for a notification of the end of the auction.MyAuctionReceiver.endAuctions()is invoked when a the auction ends.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-