OSID Logo
OSID Specifications
offering package
Version 3.1.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.

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

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

Compliancemandatory This method is must be implemented.
MethodunreliableCatalogueNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodacknowledgeCatalogueNotification
Description

Acknowledge a catalogue 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.
MethodregisterForNewCatalogues
Description

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

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

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

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdcatalogueId the Id of the Catalogue to monitor
ErrorsNULL_ARGUMENT catalogueId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedCatalogues
Description

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

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdcatalogueId the Id of the Catalogue to monitor
ErrorsNULL_ARGUMENT catalogueId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdcatalogueId the Id of the Catalogue node to monitor
ErrorsNULL_ARGUMENT catalogueId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdcatalogueId the Id of the Catalogue node to monitor
ErrorsNULL_ARGUMENT catalogueId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.