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

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

MethodgetCatalogueId
Description

Gets the Catalogue Id associated with this session.

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

Gets the Catalogue associated with this session.

Returnosid.offering.Catalogue the catalogue
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanRegisterForResultNotifications
Description

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

Federates the view for methods in this session. A federated view will include notifications for resultss in catalogues which are children of this catalogue in the catalogue hierarchy.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedCatalogueView
Description

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

Compliancemandatory This method is must be implemented.
MethodreliableResultNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodunreliableResultNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodacknowledgeResultNotification
Description

Acknowledge a result 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.
MethodregisterForNewResults
Description

Register for notifications of new results. ResultReceiver.newResults() is invoked when a new Result is created.

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

Register for notifications of new results for the given participant Id. ResultReceiver.newResults() is invoked when a new Result appears in this catalogue.

Parametersosid.id.IdparticipantId the Id of the participant to monitor
ErrorsNULL_ARGUMENT participantId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedResults
Description

Registers for notification of updated results. ResultReceiver.changedResults() is invoked when a result in this catalogue is changed.

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

Register for notifications of changed results for the given participant Id. ResultReceiver.changedResults() is invoked when a Result for the resource is changed in this catalogue.

Parametersosid.id.IdparticipantId the Id of the participant to monitor
ErrorsNULL_ARGUMENT participantId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedResult
Description

Registers for notification of an updated result. ResultReceiver.changedResults() is invoked when the specified result in this catalogue is changed.

Parametersosid.id.IdresultId the Id of the Result to monitor
ErrorsNOT_FOUND a result was not found identified by the given Id
NULL_ARGUMENT resultId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedResults
Description

Registers for notification of deleted results. ResultReceiver.deletedResults() is invoked when a result is removed from this catalogue.

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

Register for notifications of deleted results for the given participant Id. ResultReceiver.deletedResults() is invoked when a Result for the resource is removed from this catalogue.

Parametersosid.id.IdparticipantId the Id of the participant to monitor
ErrorsNULL_ARGUMENT participantId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedResult
Description

Registers for notification of a deleted result. ResultReceiver.deletedResults() is invoked when the specified result is removed from this catalogue.

Parametersosid.id.IdresultId the Id of the Result to monitor
ErrorsNOT_FOUND a result was not found identified by the given Id
NULL_ARGUMENT resultId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.