OSID Logo
OSID Specifications
offering package
Version 3.0.0
Interfaceosid.offering.CatalogueNotificationSession
Implementsosid.OsidSession
Used Byosid.offering.OfferingManager
osid.offering.OfferingProxyManager
Description

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

MethodcanRegisterForCatalogueNotifications
Description

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

Returnbooleanfalse if notification methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodreliableCatalogueNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodunreliableCatalogueNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeCatalogueNotification
Description

Acknowledge a catalogue notification.

Parametersosid.id.IdnotificationIdthe Id of the notification
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewCatalogues
Description

Register for notifications of new catalogues. CatalogueReceiver.newCatalogues() is invoked when a new Catalogue is created.

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

Registers for notification of updated catalogues. CatalogueReceiver.changedCatalogues() is invoked when a catalogue is changed.

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

Registers for notification of an updated catalogue. CatalogueReceiver.changedCatalogues() is invoked when the specified catalogue is changed.

Parametersosid.id.IdcatalogueIdthe Id of the Catalogue to monitor
ErrorsNULL_ARGUMENTcatalogueId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedCatalogues
Description

Registers for notification of deleted catalogues. CatalogueReceiver.deletedCatalogues() is invoked when a catalogue is deleted.

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

Registers for notification of a deleted catalogue. CatalogueReceiver.deletedCatalogues() is invoked when the specified catalogue is deleted.

Parametersosid.id.IdcatalogueIdthe Id of the Catalogue to monitor
ErrorsNULL_ARGUMENTcatalogueId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedCatalogueHierarchy
Description

Registers for notification of an updated catalogue hierarchy structure. CatalogueReceiver.changedChildOfCatalogues() is invoked when the specified node or any of its descendants experiences a change in its children.

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

Registers for notification of an updated catalogue hierarchy structure. CatalogueReceiver.changedChildOfCatalogues() is invoked when the specified node or any of its descendants experiences a change in its children.

Parametersosid.id.IdcatalogueIdthe Id of the Catalogue node to monitor
ErrorsNULL_ARGUMENTcatalogueId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedCatalogueHierarchyForDescendants
Description

Registers for notification of an updated catalogue hierarchy structure. CatalogueReceiver.changedChildOfCatalogues() is invoked when the specified node or any of its descendants experiences a change in its children.

Parametersosid.id.IdcatalogueIdthe Id of the Catalogue node to monitor
ErrorsNULL_ARGUMENTcatalogueId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.