public interface StoreNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Store objects. 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.
Notifications are triggered with changes to the Store
object itself. Adding and removing orders result in notifications
available from the notification session for orders.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRegisterForStoreNotifications()
Tests if this user can register for
Store
notifications. |
void |
registerForChangedStore(Id storeId)
Registers for notification of an updated store.
|
void |
registerForChangedStores()
Registers for notification of updated stores.
|
void |
registerForDeletedStore(Id storeId)
Registers for notification of a deleted store.
|
void |
registerForDeletedStoreAncestors(Id storeId)
Registers for notification of an updated hierarchy structure that
removes an ancestor of the specified store
StoreReceiver.deletedAncestor() is invoked when the specified
store node loses an ancestor. |
void |
registerForDeletedStoreDescendants(Id storeId)
Registers for notification of an updated hierarchy structure that
removes a descendant of the specified store.
|
void |
registerForDeletedStores()
Registers for notification of deleted stores.
|
void |
registerForNewStoreAncestors(Id storeId)
Registers for notification of an updated hierarchy structure that
introduces a new ancestor of the specified store.
|
void |
registerForNewStoreDescendants(Id storeId)
Registers for notification of an updated hierarchy structure that
introduces a new descendant of the specified store.
|
void |
registerForNewStores()
Register for notifications of new stores.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canRegisterForStoreNotifications()
Store
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 registerForNewStores()
throws OperationFailedException,
PermissionDeniedException
StoreReceiver.newStore() is invoked when a new Store
is created.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForNewStoreAncestors(Id storeId) throws OperationFailedException, PermissionDeniedException
StoreReceiver.newAncestorStore() is invoked when the specified
store node gets a new ancestor.storeId - the Id of the Store node
to monitorNullArgumentException - storeId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForNewStoreDescendants(Id storeId) throws OperationFailedException, PermissionDeniedException
StoreReceiver.newDescendantStore() is invoked when the
specified store node gets a new descendant.storeId - the Id of the Store node
to monitorNullArgumentException - storeId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedStores()
throws OperationFailedException,
PermissionDeniedException
StoreReceiver.changedStore() is invoked when a store is
changed.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedStore(Id storeId) throws OperationFailedException, PermissionDeniedException
StoreReceiver.changedStore() is invoked when the specified
store is changed.storeId - the Id of the Store to
monitorNullArgumentException - storeId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedStores()
throws OperationFailedException,
PermissionDeniedException
StoreReceiver.deletedStore() is invoked when a store is
deleted.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedStore(Id storeId) throws OperationFailedException, PermissionDeniedException
StoreReceiver.deletedStore() is invoked when the specified
store is deleted.storeId - the Id of the Store to
monitorNullArgumentException - storeId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedStoreAncestors(Id storeId) throws OperationFailedException, PermissionDeniedException
StoreReceiver.deletedAncestor() is invoked when the specified
store node loses an ancestor.storeId - the Id of the Store to
monitorNullArgumentException - storeId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedStoreDescendants(Id storeId) throws OperationFailedException, PermissionDeniedException
StoreReceiver.deletedDescendant() is invoked when the
specified store node loses a descendant.storeId - the Id of the Store to
monitorNullArgumentException - storeId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.