OSID Logo
OSID Specifications
repository package
Version 3.0.0
Release Candidate Preview
Interfaceosid.repository.RepositoryNotificationSession
Implementsosid.OsidSession
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
CompliancemandatoryThis method must be implemented.
MethodregisterForNewRepositories
Description

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

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

Registers for notification if an ancestor is added to the specified repository in the repository hierarchy. RepositoryReceiver.newRepositoryAncestor() is invoked when the specified repository experiences an addition in ancestry.

Parametersosid.id.IdrepositoryIdthe Id of the repository to monitor
ErrorsNULL_ARGUMENT repositoryId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewRepositoryDescendants
Description

Registers for notification if a descendant is added to the specified repository in the repository hierarchy. RepositoryReceiver.newRepositoryDescendant() is invoked when the specified repository experiences an addition in descendants.

Parametersosid.id.IdrepositoryIdthe Id of the repository to monitor
ErrorsNULL_ARGUMENT repositoryId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedRepositories
Description

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

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdrepositoryIdthe Id of the Repository to monitor
ErrorsNULL_ARGUMENT repositoryId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedRepositories
Description

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

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdrepositoryIdthe Id of the Repository to monitor
ErrorsNULL_ARGUMENT repositoryId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedRepositoryAncestors
Description

Registers for notification if an ancestor is removed from the specified repository in the repository hierarchy. RepositoryReceiver.deletedRepositoryAncestor() is invoked when the specified repository experiences a removal of an ancestor.

Parametersosid.id.IdrepositoryIdthe Id of the repository to monitor
ErrorsNULL_ARGUMENT repositoryId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedRepositoryDescendants
Description

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

Parametersosid.id.IdrepositoryIdthe Id of the repository to monitor
ErrorsNULL_ARGUMENT repositoryId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.