Interface RequisiteNotificationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session defines methods to receive notifications on adds/changes
to Requisite objects in this CourseCatalog . This also
includes existing courses that may appear or disappear due to changes in
the CourseCatalog hierarchy, 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.
The two views defined in this session correspond to the views in the
RequisiteLookupSession .
-
Method Summary
Modifier and TypeMethodDescriptionvoidacknowledgeRequisiteNotification(Id notificationId) Acknowledge a requisite notification.booleanTests if this user can register forRequisitenotifications.Gets theCourseCatalogassociated with this session.Gets theCourseCatalogIdassociated with this session.voidregisterForChangedAssessmentRequirement(Id assessmentRequirementId) Registers for notification of an updated assessment requirement.voidRegisters for notification of updated assessment requirements.voidregisterForChangedAwardRequirement(Id awardRequirementId) Registers for notification of an updated award requirement.voidRegisters for notification of updated award requirements.voidregisterForChangedCourseRequirement(Id courseRequirementId) Registers for notification of an updated course requirement.voidRegisters for notification of updated course requirements.voidregisterForChangedCredentialRequirement(Id credentialRequirementId) Registers for notification of an updated credential requirement.voidRegisters for notification of updated credential requirements.voidregisterForChangedLearningObjectiveRequirement(Id learningObjectiveRequirementId) Registers for notification of an updated learning objective requirement.voidRegisters for notification of updated learning objective requirements.voidregisterForChangedProgramRequirement(Id programRequirementId) Registers for notification of an updated program requirement.voidRegisters for notification of updated program requirements.voidregisterForChangedRequisite(Id requisiteId) Registers for notification of an updated requisite.voidRegisters for notification of updated requisites.voidregisterForDeletedAssessmentRequirement(Id assessmentRequirementId) Registers for notification of a deleted assessment requirement.voidRegisters for notification of deleted assessment requirements.voidregisterForDeletedAwardRequirement(Id awardRequirementId) Registers for notification of a deleted award requirement.voidRegisters for notification of deleted award requirements.voidregisterForDeletedCourseRequirement(Id courseRequirementId) Registers for notification of a deleted course requirement.voidRegisters for notification of deleted course requirements.voidregisterForDeletedCredentialRequirement(Id credentialRequirementId) Registers for notification of a deleted credential requirement.voidRegisters for notification of deleted credential requirements.voidregisterForDeletedLearningObjectiveRequirement(Id learningObjectiveRequirementId) Registers for notification of a deleted learning objective requirement.voidRegisters for notification of deleted learning objective requirements.voidregisterForDeletedProgramRequirement(Id programRequirementId) Registers for notification of a deleted program requirement.voidRegisters for notification of deleted program requirements.voidregisterForDeletedRequisite(Id requisiteId) Registers for notification of a deleted requisite.voidRegisters for notification of deleted requisites.voidRegister for notifications of new assessment requirements.voidRegister for notifications of new award requirements.voidRegister for notifications of new course requirements.voidRegister for notifications of new credential requirements.voidRegister for notifications of new learning objective requirements.voidRegister for notifications of new program requirements.voidRegister for notifications of new requisites.voidReliable notifications are desired.voidUnreliable notifications are desired.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getCourseCatalogId
Id getCourseCatalogId()Gets theCourseCatalogIdassociated with this session.- Returns:
- the
CourseCatalog Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getCourseCatalog
Gets theCourseCatalogassociated with this session.- Returns:
- the course catalog
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canRegisterForRequisiteNotifications
boolean canRegisterForRequisiteNotifications()Tests if this user can register forRequisitenotifications. 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 aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer notification operations.- Returns:
falseif notification methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
useFederatedCourseCatalogView
void useFederatedCourseCatalogView()Federates the view for methods in this session. A federated view will include requisites in catalogs which are children of this catalog in the course catalog hierarchy.- Compliance:
mandatory- This method is must be implemented.
-
useIsolatedCourseCatalogView
void useIsolatedCourseCatalogView()Isolates the view for methods in this session. An isolated view restricts notifications to this course catalog only.- Compliance:
mandatory- This method is must be implemented.
-
reliableRequisiteNotifications
void reliableRequisiteNotifications()Reliable notifications are desired. In reliable mode, notifications are to be acknowledged usingacknowledgeRequisiteNotification().- Compliance:
mandatory- This method is must be implemented.
-
unreliableRequisiteNotifications
void unreliableRequisiteNotifications()Unreliable notifications are desired. In unreliable mode, notifications do not need to be acknowledged.- Compliance:
mandatory- This method is must be implemented.
-
acknowledgeRequisiteNotification
void acknowledgeRequisiteNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException Acknowledge a requisite notification.- Parameters:
notificationId- theIdof the notification- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForNewRequisites
Register for notifications of new requisites.RequisiteReceiver.newRequisites()is invoked when a newRequisiteappears in this course catalog.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForChangedRequisites
Registers for notification of updated requisites.RequisiteReceiver.changedRequisites()is invoked when a requisite in this course catalog is changed.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForChangedRequisite
void registerForChangedRequisite(Id requisiteId) throws OperationFailedException, PermissionDeniedException Registers for notification of an updated requisite.RequisiteReceiver.changedRequisites()is invoked when the specified requisite in this course catalog is changed.- Parameters:
requisiteId- theIdof theRequisiteto monitor- Throws:
NullArgumentException-requisiteIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForDeletedRequisites
Registers for notification of deleted requisites.RequisiteReceiver.deletedRequisites()is invoked when a requisite is deleted or removed from this course catalog.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForDeletedRequisite
void registerForDeletedRequisite(Id requisiteId) throws OperationFailedException, PermissionDeniedException Registers for notification of a deleted requisite.RequisiteReceiver.deletedRequisites()is invoked when the specified requisite is deleted or removed from this course catalog.- Parameters:
requisiteId- theIdof theRequisiteto monitor- Throws:
NullArgumentException-requisiteIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForNewCourseRequirements
Register for notifications of new course requirements.RequisiteReceiver.newCourseRequirements()is invoked when a newCourseRequirementappears in this course catalog.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForChangedCourseRequirements
void registerForChangedCourseRequirements() throws OperationFailedException, PermissionDeniedExceptionRegisters for notification of updated course requirements.RequisiteReceiver.changedCourseRequirements()is invoked when a course requirement in this course catalog is changed.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForChangedCourseRequirement
void registerForChangedCourseRequirement(Id courseRequirementId) throws OperationFailedException, PermissionDeniedException Registers for notification of an updated course requirement.RequisiteReceiver.changedCourseRequirements()is invoked when the specified course requirement in this course catalog is changed.- Parameters:
courseRequirementId- theIdof theCourseRequirementto monitor- Throws:
NullArgumentException-courseRequirementIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForDeletedCourseRequirements
void registerForDeletedCourseRequirements() throws OperationFailedException, PermissionDeniedExceptionRegisters for notification of deleted course requirements.RequisiteReceiver.deletedCourseRequirements()is invoked when a course requirement is deleted or removed from this course catalog.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForDeletedCourseRequirement
void registerForDeletedCourseRequirement(Id courseRequirementId) throws OperationFailedException, PermissionDeniedException Registers for notification of a deleted course requirement.RequisiteReceiver.deletedCourseRequirements()is invoked when the specified course requirement is deleted or removed from this course catalog.- Parameters:
courseRequirementId- theIdof theCourseRequirementto monitor- Throws:
NullArgumentException-courseRequirementIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForNewProgramRequirements
Register for notifications of new program requirements.RequisiteReceiver.newProgramRequirements()is invoked when a newProgramRequirementappears in this course catalog.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForChangedProgramRequirements
void registerForChangedProgramRequirements() throws OperationFailedException, PermissionDeniedExceptionRegisters for notification of updated program requirements.RequisiteReceiver.changedProgramRequirements()is invoked when a program requirement in this course catalog is changed.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForChangedProgramRequirement
void registerForChangedProgramRequirement(Id programRequirementId) throws OperationFailedException, PermissionDeniedException Registers for notification of an updated program requirement.RequisiteReceiver.changedProgramRequirements()is invoked when the specified program requirement in this course catalog is changed.- Parameters:
programRequirementId- theIdof theProgramRequirementto monitor- Throws:
NullArgumentException-programRequirementIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForDeletedProgramRequirements
void registerForDeletedProgramRequirements() throws OperationFailedException, PermissionDeniedExceptionRegisters for notification of deleted program requirements.RequisiteReceiver.deletedProgramRequirements()is invoked when a program requirement is deleted or removed from this course catalog.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForDeletedProgramRequirement
void registerForDeletedProgramRequirement(Id programRequirementId) throws OperationFailedException, PermissionDeniedException Registers for notification of a deleted program requirement.RequisiteReceiver.deletedProgramRequirements()is invoked when the specified program requirement is deleted or removed from this course catalog.- Parameters:
programRequirementId- theIdof theProgramRequirementto monitor- Throws:
NullArgumentException-programRequirementIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForNewCredentialRequirements
void registerForNewCredentialRequirements() throws OperationFailedException, PermissionDeniedExceptionRegister for notifications of new credential requirements.RequisiteReceiver.newCredentialRequirements()is invoked when a newCredentialRequirementappears in this course catalog.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForChangedCredentialRequirements
void registerForChangedCredentialRequirements() throws OperationFailedException, PermissionDeniedExceptionRegisters for notification of updated credential requirements.RequisiteReceiver.changedCredentialRequirements()is invoked when a credential requirement in this course catalog is changed.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForChangedCredentialRequirement
void registerForChangedCredentialRequirement(Id credentialRequirementId) throws OperationFailedException, PermissionDeniedException Registers for notification of an updated credential requirement.RequisiteReceiver.changedCredentialRequirements()is invoked when the specified credential requirement in this course catalog is changed.- Parameters:
credentialRequirementId- theIdof theCredentialRequirementto monitor- Throws:
NullArgumentException-credentialRequirementIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForDeletedCredentialRequirements
void registerForDeletedCredentialRequirements() throws OperationFailedException, PermissionDeniedExceptionRegisters for notification of deleted credential requirements.RequisiteReceiver.deletedCredentialRequirements()is invoked when a credential requirement is deleted or removed from this course catalog.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForDeletedCredentialRequirement
void registerForDeletedCredentialRequirement(Id credentialRequirementId) throws OperationFailedException, PermissionDeniedException Registers for notification of a deleted credential requirement.RequisiteReceiver.deletedCredentialRequirements()is invoked when the specified credential requirement is deleted or removed from this course catalog.- Parameters:
credentialRequirementId- theIdof theCredentialRequirementto monitor- Throws:
NullArgumentException-credentialRequirementIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForNewLearningObjectiveRequirements
void registerForNewLearningObjectiveRequirements() throws OperationFailedException, PermissionDeniedExceptionRegister for notifications of new learning objective requirements.RequisiteReceiver.newLearningObjectiveRequirements()is invoked when a newLearningObjectiveRequirementappears in this course catalog.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForChangedLearningObjectiveRequirements
void registerForChangedLearningObjectiveRequirements() throws OperationFailedException, PermissionDeniedExceptionRegisters for notification of updated learning objective requirements.RequisiteReceiver.changedLearningObjectiveRequirements()is invoked when a learning objective requirement in this course catalog is changed.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForChangedLearningObjectiveRequirement
void registerForChangedLearningObjectiveRequirement(Id learningObjectiveRequirementId) throws OperationFailedException, PermissionDeniedException Registers for notification of an updated learning objective requirement.RequisiteReceiver.changedLearningObjectiveRequirements()is invoked when the specified learning objective requirement in this course catalog is changed.- Parameters:
learningObjectiveRequirementId- theIdof theLearningObjectiveRequirementto monitor- Throws:
NullArgumentException-learningObjectiveRequirementIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForDeletedLearningObjectiveRequirements
void registerForDeletedLearningObjectiveRequirements() throws OperationFailedException, PermissionDeniedExceptionRegisters for notification of deleted learning objective requirements.RequisiteReceiver.deletedLearningObjectiveRequirements()is invoked when a learning objective requirement is deleted or removed from this course catalog.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForDeletedLearningObjectiveRequirement
void registerForDeletedLearningObjectiveRequirement(Id learningObjectiveRequirementId) throws OperationFailedException, PermissionDeniedException Registers for notification of a deleted learning objective requirement.RequisiteReceiver.deletedLearningObjectiveRequirements()is invoked when the specified learning objective requirement is deleted or removed from this course catalog.- Parameters:
learningObjectiveRequirementId- theIdof theLearningObjectiveRequirementto monitor- Throws:
NullArgumentException-learningObjectiveRequirementIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForNewAssessmentRequirements
void registerForNewAssessmentRequirements() throws OperationFailedException, PermissionDeniedExceptionRegister for notifications of new assessment requirements.RequisiteReceiver.newAssessmentRequirements()is invoked when a newAssessmentRequirementappears in this course catalog.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForChangedAssessmentRequirements
void registerForChangedAssessmentRequirements() throws OperationFailedException, PermissionDeniedExceptionRegisters for notification of updated assessment requirements.RequisiteReceiver.changedAssessmentRequirements()is invoked when an assessment requirement in this course catalog is changed.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForChangedAssessmentRequirement
void registerForChangedAssessmentRequirement(Id assessmentRequirementId) throws OperationFailedException, PermissionDeniedException Registers for notification of an updated assessment requirement.RequisiteReceiver.changedAssessmentRequirements()is invoked when the specified assessment requirement in this course catalog is changed.- Parameters:
assessmentRequirementId- theIdof theAssessmentRequirementto monitor- Throws:
NullArgumentException-assessmentRequirementIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForDeletedAssessmentRequirements
void registerForDeletedAssessmentRequirements() throws OperationFailedException, PermissionDeniedExceptionRegisters for notification of deleted assessment requirements.RequisiteReceiver.deletedAssessmentRequirements()is invoked when an assessment requirement is deleted or removed from this course catalog.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForDeletedAssessmentRequirement
void registerForDeletedAssessmentRequirement(Id assessmentRequirementId) throws OperationFailedException, PermissionDeniedException Registers for notification of a deleted assessment requirement.RequisiteReceiver.deletedAssessmentRequirements()is invoked when the specified assessment requirement is deleted or removed from this course catalog.- Parameters:
assessmentRequirementId- theIdof theAssessmentRequirementto monitor- Throws:
NullArgumentException-assessmentRequirementIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForNewAwardRequirements
Register for notifications of new award requirements.RequisiteReceiver.newAwardRequirements()is invoked when a newAwardRequirementappears in this course catalog.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForChangedAwardRequirements
void registerForChangedAwardRequirements() throws OperationFailedException, PermissionDeniedExceptionRegisters for notification of updated award requirements.RequisiteReceiver.changedAwardRequirements()is invoked when an award requirement in this course catalog is changed.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForChangedAwardRequirement
void registerForChangedAwardRequirement(Id awardRequirementId) throws OperationFailedException, PermissionDeniedException Registers for notification of an updated award requirement.RequisiteReceiver.changedAwardRequirements()is invoked when the specified award requirement in this course catalog is changed.- Parameters:
awardRequirementId- theIdof theAwardRequirementto monitor- Throws:
NullArgumentException-awardRequirementIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForDeletedAwardRequirements
void registerForDeletedAwardRequirements() throws OperationFailedException, PermissionDeniedExceptionRegisters for notification of deleted award requirements.RequisiteReceiver.deletedAwardRequirements()is invoked when an award requirement is deleted or removed from this course catalog.- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
registerForDeletedAwardRequirement
void registerForDeletedAwardRequirement(Id awardRequirementId) throws OperationFailedException, PermissionDeniedException Registers for notification of a deleted award requirement.RequisiteReceiver.deletedAwardRequirements()is invoked when the specified award requirement is deleted or removed from this course catalog.- Parameters:
awardRequirementId- theIdof theAwardRequirementto monitor- Throws:
NullArgumentException-awardRequirementIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-