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

This session defines methods to receive notifications on adds/changes to Repository 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 session is closed.

MethodcanRegisterForRepositoryNotifications
Description

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

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

Compliancemandatory This method is must be implemented.
MethodunreliableRepositoryNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodacknowledgeRepositoryNotification
Description

Acknowledge a repository 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.
MethodregisterForNewRepositories
Description

Register for notifications of new repositories. RepositoryReceiver.newRepositories() is invoked when a new Repository is created.

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

Registers for notification of updated repositories. RepositoryReceiver.changedRepositories() is invoked when a repository is changed.

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

Registers for notification of an updated repository. RepositoryReceiver.changedRepositories() is invoked when the specified repository is changed.

Parametersosid.id.IdrepositoryId the Id of the Repository to monitor
ErrorsNULL_ARGUMENT repositoryId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedRepositories
Description

Registers for notification of deleted repositories. RepositoryReceiver.deletedRepositories() is invoked when a repository is deleted.

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

Registers for notification of a deleted repository. RepositoryReceiver.deletedRepositories() is invoked when the specified repository is deleted.

Parametersosid.id.IdrepositoryId the Id of the Repository to monitor
ErrorsNULL_ARGUMENT repositoryId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedRepositoryHierarchy
Description

Registers for notification of an updated repository hierarchy structure. RepositoryReceiver.changedChildOfRepositoriess() 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.
MethodregisterForChangedRepositoryHierarchyForAncestors
Description

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

Parametersosid.id.IdrepositoryId the Id of the Repository node to monitor
ErrorsNULL_ARGUMENT repositoryId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedRepositoryHierarchyForDescendants
Description

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

Parametersosid.id.IdrepositoryId the Id of the Repository node to monitor
ErrorsNULL_ARGUMENT repositoryId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.