public interface CredentialNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Credential 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
CredentialLookupSession.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRegisterForCredentialNotifications()
Tests if this user can register for
Credential
notifications. |
CourseCatalog |
getCourseCatalog()
Gets the
CourseCatalog associated with this session. |
Id |
getCourseCatalogId()
Gets the
CourseCatalog Id associated
with this session. |
void |
registerForChangedCredential(Id credentialId)
Registers for notification of an updated credential.
|
void |
registerForChangedCredentials()
Registers for notification of updated credentials.
|
void |
registerForDeletedCredential(Id credentialId)
Registers for notification of a deleted credential.
|
void |
registerForDeletedCredentials()
Registers for notification of deleted credentials.
|
void |
registerForNewCredentials()
Register for notifications of new credentials.
|
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, supportsTransactionscloseId 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 canRegisterForCredentialNotifications()
Credential
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 registerForNewCredentials()
throws OperationFailedException,
PermissionDeniedException
CredentialReceiver.newCredential() is invoked when a new
Credential appears in this course catalog.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedCredentials()
throws OperationFailedException,
PermissionDeniedException
CredentialReceiver.changedCredential() is invoked when a
credential in this course catalog is changed.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedCredential(Id credentialId) throws OperationFailedException, PermissionDeniedException
CredentialReceiver.changedCredential() is invoked when the
specified credential in this course catalog is changed.credentialId - the Id of the Credential
to monitorNullArgumentException - credentialId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedCredentials()
throws OperationFailedException,
PermissionDeniedException
CredentialReceiver.deletedCredentials() is invoked when a
credential is deleted or removed from this course catalog.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedCredential(Id credentialId) throws OperationFailedException, PermissionDeniedException
CredentialReceiver.deletedCredential() is invoked when the
specified credential is deleted or removed from this course catalog.credentialId - the Id of the Credential
to monitorNullArgumentException - credentialId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.