OSID Logo
OSID Specifications
recognition package
Version 3.0.0
Release Candidate Preview
Interfaceosid.recognition.ConvocationNotificationSession
Implementsosid.OsidSession
Description

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

MethodgetAcademyId
Description

Gets the Academy Id associated with this session.

Returnosid.id.Idthe Academy Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetAcademy
Description

Gets the Academy associated with this session.

Returnosid.recognition.Academythe academy
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanRegisterForConvocationNotifications
Description

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

Federates the view for methods in this session. A federated view will include convocations in academies which are children of this academy in the academy hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedAcademyView
Description

Isolates the view for methods in this session. An isolated view restricts retrievals to this academy only.

CompliancemandatoryThis method is must be implemented.
MethodregisterForNewConvocations
Description

Register for notifications of new convocations. ConvocationReceiver.newConvocations() is invoked when a new Convocation is created.

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

Registers for notification of updated convocations. ConvocationReceiver.changedConvocations() is invoked when a convocation is changed.

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

Registers for notification of an updated convocation. ConvocationReceiver.changedConvocations() is invoked when the specified convocation is changed.

Parametersosid.id.IdconvocationIdthe Id of the Convocation to monitor
ErrorsNULL_ARGUMENT convocationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedConvocations
Description

Registers for notification of deleted convocations. ConvocationReceiver.deletedConvocations() is invoked when a convocation is deleted.

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

Registers for notification of a deleted convocation. ConvocationReceiver.deletedConvocations() is invoked when the specified convocation is deleted.

Parametersosid.id.IdconvocationIdthe Id of the Convocation to monitor
ErrorsNULL_ARGUMENT convocationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.