public interface BidNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Bid
objects in this AuctionHouse.
This
also includes existing bids that may appear or disappear due to changes in
the AuctionHouse
hierarchy, This session is intended for
consumers needing to synchronize their state with this service without the
use of polling. Notifications are cancelled when this session is closed.
The two views defined in this session correspond to the views in the
BidLookupSession.
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeBidNotification(Id notificationId)
Acknowledge a bid notification.
|
boolean |
canRegisterForBidNotifications()
Tests if this user can register for
Bid notifications. |
AuctionHouse |
getAuctionHouse()
Gets the
AuctionHouse associated with this session. |
Id |
getAuctionHouseId()
Gets the
AuctionHouse Id associated with
this session. |
void |
registerForChangedBid(Id bidId)
Registers for notification of an updated bid.
|
void |
registerForChangedBids()
Registers for notification of updated bids.
|
void |
registerForChangedBidsForAuction(Id auctionId)
Register for notifications of updated bids for the given auction
Id. |
void |
registerForChangedBidsForBidder(Id resourceId)
Register for notifications of updated bids for the given resource
Id. |
void |
registerForDeletedBid(Id bidId)
Registers for notification of a deleted bid.
|
void |
registerForDeletedBids()
Registers for notification of deleted bids.
|
void |
registerForDeletedBidsForAuction(Id auctionId)
Register for notifications of deleted bids for the given auction
Id. |
void |
registerForDeletedBidsForBidder(Id resourceId)
Register for notifications of deleted bids for the given resource
Id. |
void |
registerForNewBids()
Register for notifications of new bids.
|
void |
registerForNewBidsForAuction(Id auctionId)
Register for notifications of new bids for the given auction
Id. |
void |
registerForNewBidsForBidder(Id resourceId)
Register for notifications of new bids for the given resource
Id. |
void |
reliableBidNotifications()
Reliable notifications are desired.
|
void |
unreliableBidNotifications()
Unreliable notifications are desired.
|
void |
useFederatedAuctionHouseView()
Federates the view for methods in this session.
|
void |
useIsolatedAuctionHouseView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getAuctionHouseId()
AuctionHouse
Id
associated with
this session. AuctionHouse Id
associated with this
sessionmandatory
- This method must be implemented. AuctionHouse getAuctionHouse() throws OperationFailedException, PermissionDeniedException
AuctionHouse
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canRegisterForBidNotifications()
Bid
notifications.
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 a PERMISSION_DENIED.
This is intended as a
hint to an application that may opt not to offer notification
operations. false
if notification methods are not
authorized, true
otherwisemandatory
- This method must be implemented. void useFederatedAuctionHouseView()
mandatory
- This method is must be implemented. void useIsolatedAuctionHouseView()
mandatory
- This method is must be implemented. void reliableBidNotifications()
acknowledgeBidNotification()
.mandatory
- This method is must be implemented. void unreliableBidNotifications()
mandatory
- This method is must be implemented. void acknowledgeBidNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId
- the Id
of the notificationOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewBids() throws OperationFailedException, PermissionDeniedException
BidReceiver.newBids()
is invoked when a new Bid
appears in this
auction house.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewBidsForAuction(Id auctionId) throws OperationFailedException, PermissionDeniedException
Id.
BidReceiver.newBids()
is invoked when a new
Bid
is created.auctionId
- the Id
of the auction to monitorNullArgumentException
- auctionId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewBidsForBidder(Id resourceId) throws OperationFailedException, PermissionDeniedException
Id.
BidReceiver.newBids()
is invoked when a new
Bid
is created.resourceId
- the Id
of the resource to monitorNullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedBids() throws OperationFailedException, PermissionDeniedException
BidReceiver.changedBids()
is invoked when a bid in this
auction house is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedBidsForAuction(Id auctionId) throws OperationFailedException, PermissionDeniedException
Id.
BidReceiver.changedBids()
is invoked
when a Bid
in this auction house is changed.auctionId
- the Id
of the auction to monitorNullArgumentException
- auctionId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedBidsForBidder(Id resourceId) throws OperationFailedException, PermissionDeniedException
Id.
BidReceiver.changedBids()
is invoked
when a Bid
in this auction house is changed.resourceId
- the Id
of the resource to monitorNullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedBid(Id bidId) throws OperationFailedException, PermissionDeniedException
BidReceiver.changedBids()
is invoked when the specified bid in
this auction house is changed.bidId
- the Id
of the Bid
to
monitorNullArgumentException
- bidId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedBids() throws OperationFailedException, PermissionDeniedException
BidReceiver.deletedBids()
is invoked when a bid is deleted or
removed from this auction house.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedBidsForAuction(Id auctionId) throws OperationFailedException, PermissionDeniedException
Id.
BidReceiver.deletedBids()
is invoked
when a Bid
is deleted or removed from this auction
house.auctionId
- the Id
of the auction to monitorNullArgumentException
- auctionId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedBidsForBidder(Id resourceId) throws OperationFailedException, PermissionDeniedException
Id.
BidReceiver.deletedBids()
is invoked
when a Bid
is deleted or removed from this auction
house.resourceId
- the Id
of the resource to monitorNullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedBid(Id bidId) throws OperationFailedException, PermissionDeniedException
BidReceiver.deletedBids()
is invoked when the specified bid is
deleted or removed from this auction house.bidId
- the Id
of the Bid
to
monitorNullArgumentException
- bidId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.