Interface | osid.inventory.StockNotificationSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session defines methods to receive notifications on
adds/changes to The two views defined in this session correspond to the
views in the | ||
Method | getWarehouseId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Warehouse Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getWarehouse | ||
Description |
Gets the | ||
Return | osid.inventory.Warehouse | the warehouse | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canRegisterForStockNotifications | ||
Description |
Tests if this user can register for | ||
Return | boolean | false if notification methods are not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | useFederatedWarehouseView | ||
Description |
Federates the view for methods in this session. A federated view will include stocks in catalogs which are children of this catalog in the warehouse hierarchy. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useIsolatedWarehouseView | ||
Description |
Isolates the view for methods in this session. An isolated view restricts notifications to this warehouse only. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | registerForNewStocks | ||
Description |
Register for notifications of new stocks. | ||
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | registerForNewStockAncestors | ||
Description |
Registers for notification if an ancestor is added to
the specified stock in the stock hierarchy. | ||
Parameters | osid.id.Id | stockId | the Id of the stock to monitor |
Errors | NULL_ARGUMENT | stockId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | registerForNewStockDescendants | ||
Description |
Registers for notification if a descendant is added to
the specified stock in the stock hierarchy. | ||
Parameters | osid.id.Id | warehouseId | the Id of the stock to monitor |
Errors | NULL_ARGUMENT | stockId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | registerForChangedStocks | ||
Description |
Registers for notification of updated stocks. | ||
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | registerForChangedStock | ||
Description |
Registers for notification of an updated stock. | ||
Parameters | osid.id.Id | stockId | the Id of the Stock to monitor |
Errors | NULL_ARGUMENT | stockId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | registerForDeletedStocks | ||
Description |
Registers for notification of deleted stocks. | ||
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | registerForDeletedStock | ||
Description |
Registers for notification of a deleted stock. | ||
Parameters | osid.id.Id | stockId | the Id of the Stock to monitor |
Errors | NULL_ARGUMENT | stockId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | registerForDeletedStockAncestors | ||
Description |
Registers for notification if an ancestor is removed
from the specified stock in the stock hierarchy. | ||
Parameters | osid.id.Id | stockId | the Id of the stock to monitor |
Errors | NULL_ARGUMENT | stockId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | registerForDeletedStockDescendants | ||
Description |
Registers for notification if a descendant is removed
from the specified stock in the stock hierarchy. | ||
Parameters | osid.id.Id | warehouseId | the Id of the stock to monitor |
Errors | NULL_ARGUMENT | stockId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |