OSID Logo
OSID Specifications
repository package
Version 3.1.0
Interfaceosid.repository.CompositionNotificationSession
Implementsosid.OsidSession
Used Byosid.repository.RepositoryManager
osid.repository.RepositoryProxyManager
Description

This session defines methods to receive notifications on adds/changes to Composition objects in this Repository. 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.

Two view are defined in this session:

  • federateRepositoryView: includes notifications of compositions in repositories of which this repository is an ancestor in the repository hierarchy
  • isolateRepositoryView: restricts notifications to this Repository only
MethodgetRepositoryId
Description

Gets the Repository Id associated with this session.

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

Gets the Repository associated with this session.

Returnosid.repository.Repository the Repository associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanRegisterForCompositionNotifications
Description

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

Federates the view for composition methods in this session. A federated view will include compositions in repositories which are children of this repository in the repository hierarchy.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedRepositoryView
Description

Isolates the view for composition methods in this session. An isolated view restricts notifications to this repository only.

Compliancemandatory This method is must be implemented.
MethodreliableCompositionNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodunreliableCompositionNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodacknowledgeCompositionNotification
Description

Acknowledge a composition 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.
MethodregisterForNewCompositions
Description

Register for notifications of new composition. CompositionReceiver.newCompositions() is invoked when a new Composition appears in this repository.

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

Register for notifications of new compositions. CompositionReceiver.changedCompositions() is invoked when a Composition is changed.

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

Registers for notification of an updated composition. CompositionReceiver.changedCompositions() is invoked when the specified composition is changed.

Parametersosid.id.IdcompositionId the Id of the Composition to monitor
ErrorsNULL_ARGUMENT compositionId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedCompositions
Description

Register for notifications of new compositions. CompositionReceiver.deletedCompositions() is invoked when a Composition is removed from this repository.

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

Registers for notification of a deleted composition. CompositionReceiver.deletedCompositions() is invoked when the specified composition is removed from this repository.

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