OSID Logo
OSID Specifications
ordering package
Version 3.1.0
Interfaceosid.ordering.StoreNotificationSession
Implementsosid.OsidSession
Used Byosid.ordering.OrderingManager
osid.ordering.OrderingProxyManager
Description

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.

MethodcanRegisterForStoreNotifications
Description

Tests if this user can register for 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.

Returnboolean false if notification methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodreliableStoreNotifications
Description

Reliable notifications are desired. In reliable mode, notifications are to be acknowledged using acknowledgeStoreNotification().

Compliancemandatory This method is must be implemented.
MethodunreliableStoreNotifications
Description

Unreliable notifications are desired. In unreliable mode, notifications do not need to be acknowledged.

Compliancemandatory This method is must be implemented.
MethodacknowledgeStoreNotification
Description

Acknowledge a store notification.

Parametersosid.id.IdnotificationId the Id of the notification
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForNewStores
Description

Register for notifications of new stores. StoreReceiver.newStores() is invoked when a new Store is created.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedStores
Description

Registers for notification of updated stores. StoreReceiver.changedStores() is invoked when a store is changed.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedStore
Description

Registers for notification of an updated store. StoreReceiver.changedStores() is invoked when the specified store is changed.

Parametersosid.id.IdstoreId the Id of the Store to monitor
ErrorsNULL_ARGUMENT storeId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedStores
Description

Registers for notification of deleted stores. StoreReceiver.deletedStores() is invoked when a store is deleted.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedStore
Description

Registers for notification of a deleted store. StoreReceiver.deletedStores() is invoked when the specified store is deleted.

Parametersosid.id.IdstoreId the Id of the Store to monitor
ErrorsNULL_ARGUMENT storeId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedStoreHierarchy
Description

Registers for notification of an updated store hierarchy structure. StoreReceiver.changedChildOfStores() is invoked when a node experiences a change in its children.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedStoreHierarchyForAncestors
Description

Registers for notification of an updated store hierarchy structure. StoreReceiver.changedChildOfStores() is invoked when a node experiences a change in its children.

Parametersosid.id.IdstoreId the Id of the Store node to monitor
ErrorsNULL_ARGUMENT storeId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedStoreHierarchyForDescendants
Description

Registers for notification of an updated store hierarchy structure. StoreReceiver.changedChildOfStores() is invoked when a node experiences a change in its children.

Parametersosid.id.IdstoreId the Id of the Store node to monitor
ErrorsNULL_ARGUMENT storeId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.