public interface AuctionProcessorNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to AuctionProcessor
objects in this AuctionHouse.
This also includes existing AuctionProcessors
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
AuctionProcessorLookupSession.
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeAuctionProcessorNotification(Id notificationId)
Acknowledge an auction processor notification.
|
boolean |
canRegisterForAuctionProcessorNotifications()
Tests if this user can register for
AuctionProcessor
notifications. |
AuctionHouse |
getAuctionHouse()
Gets the
AuctionHouse associated with this session. |
Id |
getAuctionHouseId()
Gets the
AuctionHouse Id associated with
this session. |
void |
registerForChangedAuctionProcessor(Id auctionProcessorId)
Registers for notification of an updated auction processor.
|
void |
registerForChangedAuctionProcessors()
Registers for notification of updated auction houses.
|
void |
registerForDeletedAuctionProcessor(Id auctionProcessorId)
Registers for notification of a deleted auction processor.
|
void |
registerForDeletedAuctionProcessors()
Registers for notification of deleted auction processors.
|
void |
registerForNewAuctionProcessors()
Register for notifications of new auction processors.
|
void |
reliableAuctionProcessorNotifications()
Reliable notifications are desired.
|
void |
unreliableAuctionProcessorNotifications()
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 canRegisterForAuctionProcessorNotifications()
AuctionProcessor
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 reliableAuctionProcessorNotifications()
acknowledgeAuctionProcessorNotification()
.mandatory
- This method is must be implemented. void unreliableAuctionProcessorNotifications()
mandatory
- This method is must be implemented. void acknowledgeAuctionProcessorNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId
- the Id
of the notificationOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewAuctionProcessors() throws OperationFailedException, PermissionDeniedException
AuctionProcessorReceiver.newAuctionProcessors()
is invoked
when a new AuctionProcessor
appears in this auction
house.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedAuctionProcessors() throws OperationFailedException, PermissionDeniedException
AuctionProcessorReceiver.changedAuctionProcessors()
is invoked
when an auction processor in this auction house is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedAuctionProcessor(Id auctionProcessorId) throws OperationFailedException, PermissionDeniedException
ProvisionableReceiver.changedAuctionProcessors()
is invoked
when the specified auction processor in this auction house is changed.auctionProcessorId
- the Id
of the
AuctionProcessor
to monitorNullArgumentException
- auctionProcessorId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedAuctionProcessors() throws OperationFailedException, PermissionDeniedException
AuctionProcessorReceiver.deletedAuctionProcessors()
is invoked
when an auction processor is deleted or removed from this auction
house.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedAuctionProcessor(Id auctionProcessorId) throws OperationFailedException, PermissionDeniedException
AuctionProcessorReceiver.deletedAuctionProcessors()
is invoked
when the specified auction processor is deleted or removed from this
auction house.auctionProcessorId
- the Id
of the
AuctionProcessor
to monitorNullArgumentException
- auctionProcessorId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.