public interface ProgramOfferingNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to ProgramOfferings
in this CourseCatalog.
This also includes existing program offerings 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
ProgramOfferingLookupSession.
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeProgramOfferingNotification(Id notificationId)
Acknowledge a program offering notification.
|
boolean |
canRegisterForProgramOfferingNotifications()
Tests if this user can register for
ProgramOffering
notifications. |
CourseCatalog |
getCourseCatalog()
Gets the
CourseCatalog associated with this session. |
Id |
getCourseCatalogId()
Gets the
CourseCatalog Id associated
with this session. |
void |
registerForChangedProgramOffering(Id programOfferingId)
Registers for notification of an updated program offering.
|
void |
registerForChangedProgramOfferings()
Registers for notification of updated programs.
|
void |
registerForChangedProgramOfferingsForProgram(Id programId)
Registers for notification of updated program offerings for a program.
|
void |
registerForChangedProgramOfferingsForTerm(Id termId)
Registers for notification of updated program offerings for a term.
|
void |
registerForDeletedProgramOffering(Id programOfferingId)
Registers for notification of a deleted program offering.
|
void |
registerForDeletedProgramOfferings()
Registers for notification of deleted programs.
|
void |
registerForDeletedProgramOfferingsForProgram(Id programId)
Registers for notification of deleted program offerings for a program.
|
void |
registerForDeletedProgramOfferingsForTerm(Id termId)
Registers for notification of updated program offerings for a term.
|
void |
registerForNewProgramOfferings()
Register for notifications of new program offerings.
|
void |
registerForNewProgramOfferingsForProgram(Id programId)
Registers for notification of new program offerings for a program.
|
void |
registerForNewProgramOfferingsForTerm(Id termId)
Registers for notification of new program offerings for a term.
|
void |
reliableProgramOfferingNotifications()
Reliable notifications are desired.
|
void |
unreliableProgramOfferingNotifications()
Unreliable notifications are desired.
|
void |
useFederatedCourseCatalogView()
Federates the view for methods in this session.
|
void |
useIsolatedCourseCatalogView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getCourseCatalogId()
CourseCatalog
Id
associated
with this session. CourseCatalog Id
associated with this
sessionmandatory
- This method must be implemented. CourseCatalog getCourseCatalog() throws OperationFailedException, PermissionDeniedException
CourseCatalog
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canRegisterForProgramOfferingNotifications()
ProgramOffering
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. false
if notification methods are not
authorized, true
otherwisemandatory
- This method must be implemented. void useFederatedCourseCatalogView()
mandatory
- This method is must be implemented. void useIsolatedCourseCatalogView()
mandatory
- This method is must be implemented. void reliableProgramOfferingNotifications()
acknowledgeProgramOfferingNotification()
.mandatory
- This method is must be implemented. void unreliableProgramOfferingNotifications()
mandatory
- This method is must be implemented. void acknowledgeProgramOfferingNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId
- the Id
of the notificationOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewProgramOfferings() throws OperationFailedException, PermissionDeniedException
ProgramOfferingReceiver.newProgramOfferings()
is invoked when
a new ProgramOffering
appears in this course catalog.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewProgramOfferingsForProgram(Id programId) throws OperationFailedException, PermissionDeniedException
ProgramOfferingReceiver.newProgramOfferings()
is
invoked when the specified program offering appears in this course
catalog.programId
- the Id
of the Program
to monitorNullArgumentException
- programId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewProgramOfferingsForTerm(Id termId) throws OperationFailedException, PermissionDeniedException
ProgramOfferingReceiver.newProgramOfferings()
is invoked when
the specified program offering appears in this course catalog.termId
- the Id
of the Term
to
monitorNullArgumentException
- termId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedProgramOfferings() throws OperationFailedException, PermissionDeniedException
ProgramOfferingReceiver.changedProgramOfferings()
is invoked
when a program offering in this course catalog is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedProgramOfferingsForProgram(Id programId) throws OperationFailedException, PermissionDeniedException
ProgramOfferingReceiver.changedProgramOfferings()
is
invoked when a program offering in this course catalog is changed.programId
- the Id
of the Program
to monitorNullArgumentException
- programId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedProgramOfferingsForTerm(Id termId) throws OperationFailedException, PermissionDeniedException
ProgramOfferingReceiver.changedProgramOfferings()
is
invoked when a program offering in this course catalog is changed.termId
- the Id
of the Term
to
monitorNullArgumentException
- termId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedProgramOffering(Id programOfferingId) throws OperationFailedException, PermissionDeniedException
ProgramOfferingReceiver.changedProgramOffering()
is invoked
when the specified program offering in this course catalog is changed.programOfferingId
- the Id
of the
ProgramOffering
to monitorNullArgumentException
- programOfferingId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedProgramOfferings() throws OperationFailedException, PermissionDeniedException
ProgramOfferingReceiver.deletedProgramOfferings()
is invoked
when a program offering is deleted or removed from this course
catalog.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedProgramOfferingsForProgram(Id programId) throws OperationFailedException, PermissionDeniedException
ProgramOfferingReceiver.deletedProgramOfferings()
is
invoked when a program offering in this course catalog is removed.programId
- the Id
of the Program
to monitorNullArgumentException
- programId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedProgramOfferingsForTerm(Id termId) throws OperationFailedException, PermissionDeniedException
ProgramOfferingReceiver.deletedProgramOfferings()
is
invoked when a program offering in this course catalog is removed.termId
- the Id
of the Term
to
monitorNullArgumentException
- termId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedProgramOffering(Id programOfferingId) throws OperationFailedException, PermissionDeniedException
ProgramOfferingReceiver.deletedProgramOfferings()
is invoked
when the specified program offering is deleted or removed from this
course catalog.programOfferingId
- the Id
of the
ProgramOffering
to monitorNullArgumentException
- programOfferingId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.