OSID Logo
OSID Specifications
inventory package
Version 3.0.0
Release Candidate Preview
Interfaceosid.inventory.WarehouseNotificationSession
Implementsosid.OsidSession
Description

This session defines methods to receive notifications on adds/changes to Warehouse 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 sess

MethodcanRegisterForWarehouseNotifications
Description

Tests if this user can register for Warehouse 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
CompliancemandatoryThis method must be implemented.
MethodregisterForNewWarehouses
Description

Register for notifications of new warehouses. WarehouseReceiver.newWarehouses() is invoked when a new Warehouse is created.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewWarehouseAncestors
Description

Registers for notification if an ancestor is added to the specified warehouse in the warehouse hierarchy. WarehouseReceiver.newAncestorWarehous() is invoked when the specified warehouse experiences an addition in ancestry.

Parametersosid.id.IdwarehouseIdthe Id of the warehouse to monitor
ErrorsNULL_ARGUMENT warehouseId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewWarehouseDescendants
Description

Registers for notification if a descendant is added to the specified warehouse in the warehouse hierarchy. WarehouseReceiver.newDescendantWarehouse() is invoked when the specified warehouse experiences an addition in descendants.

Parametersosid.id.IdwarehouseIdthe Id of the warehouse to monitor
ErrorsNULL_ARGUMENT warehouseId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedWarehouses
Description

Registers for notification of updated warehouses. WarehouseReceiver.changedWarehouses() is invoked when a warehouse is changed.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedWarehouse
Description

Registers for notification of an updated warehouse. WarehouseReceiver.changedWarehouses() is invoked when the specified warehouse is changed. S

Parametersosid.id.IdwarehouseIdthe Id of the Warehouse to monitor
ErrorsNULL_ARGUMENT warehouseId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedWarehouses
Description

Registers for notification of deleted warehouses. WarehouseReceiver.deletedWarehouses() is invoked when a warehouse is deleted.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedWarehouse
Description

Registers for notification of a deleted warehouse. WarehouseReceiver.deletedWarehouses() is invoked when the specified warehouse is deleted.

Parametersosid.id.IdwarehouseIdthe Id of the Warehouse to monitor
ErrorsNULL_ARGUMENT warehouseId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedWarehouseAncestors
Description

Registers for notification if an ancestor is removed from the specified warehouse in the warehouse hierarchy. WarehouseReceiver.deletedAncestorWarehouse() is invoked when the specified warehouse experiences a removal of an ancestor.

Parametersosid.id.IdwarehouseIdthe Id of the warehouse to monitor
ErrorsNULL_ARGUMENT warehouseId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedWarehouseDescendants
Description

Registers for notification if a descendant is removed from fthe specified warehouse in the warehouse hierarchy. WarehouseReceiver.deletedDescednantWarehouse() is invoked when the specified warehouse experiences a removal of one of its descdendents.

Parametersosid.id.IdwarehouseIdthe Id of the warehouse to monitor
ErrorsNULL_ARGUMENT warehouseId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.