public interface AuctionNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Auction
objects in this AuctionHouse.
This also includes existing auctions 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
AuctionLookupSession.
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeAuctionNotification(Id notificationId)
Acknowledge an auction notification.
|
boolean |
canRegisterForAuctionNotifications()
Tests if this user can register for
Auction
notifications. |
AuctionHouse |
getAuctionHouse()
Gets the
AuctionHouse associated with this session. |
Id |
getAuctionHouseId()
Gets the
AuctionHouse Id associated with
this session. |
void |
registerForChangedAuction(Id auctionId)
Registers for notification of an updated auction.
|
void |
registerForChangedAuctions()
Registers for notification of updated auctions.
|
void |
registerForChangedAuctionsForItem(Id resourceId)
Register for notifications of updated auctions for the given item
Id. |
void |
registerForChangedAuctionsForItemGenusType(Id resourceGenusType)
Register for notifications of updated auctions for the given item
genus type.
|
void |
registerForDeletedAuction(Id auctionId)
Registers for notification of a deleted auction.
|
void |
registerForDeletedAuctions()
Registers for notification of deleted auctions.
|
void |
registerForDeletedAuctionsForItem(Id resourceId)
Register for notifications of deleted auctions for the given item
Id. |
void |
registerForDeletedAuctionsForItemGenusType(Id resourceGenusType)
Register for notifications of deleted auctions for the given item
genus type.
|
void |
registerForNewAuctions()
Register for notifications of new auctions.
|
void |
registerForNewAuctionsForItem(Id resourceId)
Register for notifications of new auctions for the given resource
Id. |
void |
registerForNewAuctionsForItemGenusType(Id resourceGenusType)
Register for notifications of new auctions for the given resource
genus type.
|
void |
reliableAuctionNotifications()
Reliable notifications are desired.
|
void |
unreliableAuctionNotifications()
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 canRegisterForAuctionNotifications()
Auction
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 reliableAuctionNotifications()
acknowledgeAuctionNotification()
.mandatory
- This method is must be implemented. void unreliableAuctionNotifications()
mandatory
- This method is must be implemented. void acknowledgeAuctionNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId
- the Id
of the notificationOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewAuctions() throws OperationFailedException, PermissionDeniedException
AuctionReceiver.newAuctions()
is invoked when a new
Auction
appears in this auction house.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewAuctionsForItem(Id resourceId) throws OperationFailedException, PermissionDeniedException
Id.
AuctionReceiver.newAuctions()
is
invoked when a new Auction
is created.resourceId
- the Id
of the item to monitorNullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewAuctionsForItemGenusType(Id resourceGenusType) throws OperationFailedException, PermissionDeniedException
AuctionReceiver.newAuctions()
is invoked
when a new Auction
is created.resourceGenusType
- the genus type of the item to monitorNullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedAuctions() throws OperationFailedException, PermissionDeniedException
AuctionReceiver.changedAuctions()
is invoked when an auction
in this auction house is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedAuctionsForItem(Id resourceId) throws OperationFailedException, PermissionDeniedException
Id.
AuctionReceiver.changedAuctions()
is
invoked when an auction in this auction house is changed.resourceId
- the Id
of the item to monitorNullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedAuctionsForItemGenusType(Id resourceGenusType) throws OperationFailedException, PermissionDeniedException
AuctionReceiver.changedAuctions()
is
invoked when an auction in this auction house is changed.resourceGenusType
- the genus type of the item to monitorNullArgumentException
- resourceGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedAuction(Id auctionId) throws OperationFailedException, PermissionDeniedException
AuctionReceiver.changedAuctions()
is invoked when the
specified auction 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 registerForDeletedAuctions() throws OperationFailedException, PermissionDeniedException
AuctionReceiver.deletedAuctions()
is invoked when an auction
is deleted or removed from this auction house.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedAuctionsForItem(Id resourceId) throws OperationFailedException, PermissionDeniedException
Id.
AuctionReceiver.deletedAuctions()
is
invoked when an auction in this auction house is removed or deleted.resourceId
- the Id
of the item to monitorNullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedAuctionsForItemGenusType(Id resourceGenusType) throws OperationFailedException, PermissionDeniedException
AuctionReceiver.deletedAuctions()
is
invoked when an auction in this auction house is removed or deleted.resourceGenusType
- the genus type of the item to monitorNullArgumentException
- resourceGenusType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedAuction(Id auctionId) throws OperationFailedException, PermissionDeniedException
AuctionReceiver.deletedAuctions()
is invoked when the
specified auction 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.