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

This session defines methods to receive notifications on adds/changes to OrderItem 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 OrderItem object itself. Adding and removing orders result in notifications available from the notification session for orders.

Like all OsidSessions, OrderItemNotificationSessions are dedicated to single processing threads and a single authenticated user.

MethodgetStoreId
Description

Gets the Store Id associated with this session.

Returnosid.id.Id the Store Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetStore
Description

Gets the Store associated with this session.

Returnosid.ordering.Store the store
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanRegisterForOrderItemNotifications
Description

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

Federates the view for methods in this session. A federated view will include order items in stores which are children of this store in the store hierarchy.

Compliancemandatory This method must be implemented.
MethoduseIsolatedStoreView
Description

Isolates the view for methods in this session. An isolated view restricts retrievals to this store only.

Compliancemandatory This method must be implemented.
MethodreliableOrderItemNotifications
Description

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

Compliancemandatory This method must be implemented.
MethodunreliableOrderItemNotifications
Description

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

Compliancemandatory This method must be implemented.
MethodacknowledgeOrderItemNotification
Description

Acknowledge an order item 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.
MethodregisterForNewOrderItems
Description

Register for notifications of new order items. OrderItemReceiver.newOrderItems() is invoked when a new OrderItem is created.

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

Registers for notification of updated order items. OrderItemReceiver.changedOrderItems() is invoked when an order item is changed.

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

Registers for notification of an updated order item. OrderItemReceiver.changedOrderItems() is invoked when the specified order item is changed.

Parametersosid.id.IdorderItemId the Id of the OrderItem to monitor
ErrorsNULL_ARGUMENT orderItemId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedOrderItems
Description

Registers for notification of deleted order items. OrderItemReceiver.deletedOrderItems() is invoked when an order item is deleted.

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

Registers for notification of a deleted order item. OrderItemReceiver.deletedOrderItems() is invoked when the specified order item is deleted.

Parametersosid.id.IdorderItemId the Id of the OrderItem to monitor
ErrorsNULL_ARGUMENT orderItemId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.