public interface ProficiencyNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Proficiency objects in this ObjectiveBank.
This also includes existing proficiencies that may appear or
disappear due to changes in the ObjectiveBank 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
ProficiencyLookupSession.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRegisterForProficiencyNotifications()
Tests if this user can register for
Proficiency
notifications. |
ObjectiveBank |
getObjectiveBank()
Gets the
ObjectiveBank associated with this session. |
Id |
getObjectiveBankId()
Gets the
ObjectiveBank Id associated
with this session. |
void |
registerForChangedProficiencies()
Registers for notification of updated proficiencies.
|
void |
registerForChangedProficienciesByGenusType(Type proficiencyGenusType)
Registers for notification of updated proficiencies of the given genus
type.
|
void |
registerForChangedProficienciesForObjective(Id objectiveId)
Registers for notification of an updated proficiency.
|
void |
registerForChangedProficienciesForResource(Id resourceId)
Registers for notification of an updated proficiency.
|
void |
registerForChangedProficiency(Id proficiencyId)
Registers for notification of an updated proficiency.
|
void |
registerForDeletedProficiencies()
Registers for notification of deleted proficiencies.
|
void |
registerForDeletedProficienciesByGenusType(Type proficiencyGenusType)
Registers for notification of deleted proficiencies of the given genus
type.
|
void |
registerForDeletedProficienciesForObjective(Id objectiveId)
Registers for notification of a deleted proficiency.
|
void |
registerForDeletedProficienciesForResource(Id resourceId)
Registers for notification of a deleted proficiency.
|
void |
registerForDeletedProficiency(Id proficiencyId)
Registers for notification of a deleted proficiency.
|
void |
registerForNewProficiencies()
Register for notifications of new proficiencies.
|
void |
registerForNewProficienciesByGenusType(Type proficiencyGenusType)
Register for notifications of new proficiencies with the given genus
type.
|
void |
registerForNewProficienciesForObjective(Id objectiveId)
Register for notifications of new proficiencies.
|
void |
registerForNewProficienciesForResource(Id resourceId)
Register for notifications of new proficiencies.
|
void |
useFederatedObjectiveBankView()
Federates the view for methods in this session.
|
void |
useIsolatedObjectiveBankView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getObjectiveBankId()
ObjectiveBank Id associated
with this session. ObjectiveBank Id associated with this
sessionmandatory - This method must be implemented. ObjectiveBank getObjectiveBank() throws OperationFailedException, PermissionDeniedException
ObjectiveBank associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canRegisterForProficiencyNotifications()
Proficiency
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 useFederatedObjectiveBankView()
mandatory - This method is must be implemented. void useIsolatedObjectiveBankView()
mandatory - This method is must be implemented. void registerForNewProficiencies()
throws OperationFailedException,
PermissionDeniedException
ProficiencyReceiver.newProficiency() is invoked when a new
Proficiency appears in this objective bank.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForNewProficienciesByGenusType(Type proficiencyGenusType) throws OperationFailedException, PermissionDeniedException
ProficiencyReceiver.newProficiency() is invoked
when a new Proficiency appears for the given resource
in this objective bank.proficiencyGenusType - the genus type of a proficiency to
monitorNullArgumentException - proficiencyGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForNewProficienciesForObjective(Id objectiveId) throws OperationFailedException, PermissionDeniedException
ProficiencyReceiver.newProficiency() is invoked when a new
Proficiency appears for the given objective in this
objective bank.objectiveId - the Id of a resource to monitorNullArgumentException - objectiveId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForNewProficienciesForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException
ProficiencyReceiver.newProficiency() is invoked when a new
Proficiency appears for the given resource in this
objective bank.resourceId - the Id of a resource to monitorNullArgumentException - resourceId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedProficiencies()
throws OperationFailedException,
PermissionDeniedException
ProficiencyReceiver.changedProficiency() is invoked when a
proficiency in this objective bank is changed.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedProficienciesByGenusType(Type proficiencyGenusType) throws OperationFailedException, PermissionDeniedException
ProficiencyReceiver.changedProficiency() is
invoked when a proficiency in this objective bank is changed.proficiencyGenusType - the genus type of the Proficiency
to monitorNullArgumentException - proficiencyGenusTYpe
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedProficienciesForObjective(Id objectiveId) throws OperationFailedException, PermissionDeniedException
ProficiencyReceiver.changedProficiency() is invoked when the
specified proficiency related to the given objective is changed in
this objective bank.objectiveId - the Id of the Objective
to monitorNullArgumentException - objectiveId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedProficienciesForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException
ProficiencyReceiver.changedProficiency() is invoked when the
specified proficiency related to the given resource is changed in this
objective bank.resourceId - the Id of the Resource
to monitorNullArgumentException - resourceId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedProficiency(Id proficiencyId) throws OperationFailedException, PermissionDeniedException
ProficiencyReceiver.changedProficiency() is invoked when the
specified proficiency in this objective bank is changed.proficiencyId - the Id of the Proficiency
to monitorNullArgumentException - proficiencyId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedProficiencies()
throws OperationFailedException,
PermissionDeniedException
ProficiencyReceiver.deletedProficiency() is invoked when a
proficiency is deleted or removed from this objective bank.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedProficienciesByGenusType(Type proficiencyGenusType) throws OperationFailedException, PermissionDeniedException
ProficiencyReceiver.deletedProficiency() is
invoked when a proficiency is deleted or removed from this objective
bank.proficiencyGenusType - the genus type of the Proficiency
to monitorNullArgumentException - proficiencyGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedProficienciesForObjective(Id objectiveId) throws OperationFailedException, PermissionDeniedException
ProficiencyReceiver.deletedProficiency() is invoked when the
specified proficiency related to the objective is deleted or removed
from this objective bank.objectiveId - the Id of the Objective
to monitorNullArgumentException - objectiveId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedProficienciesForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException
ProficiencyReceiver.deletedProficiency() is invoked when the
specified proficiency related to the resource is deleted or removed
from this objective bank.resourceId - the Id of the Resource
to monitorNullArgumentException - resourceId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedProficiency(Id proficiencyId) throws OperationFailedException, PermissionDeniedException
ProficiencyReceiver.deletedProficiency() is invoked when the
specified proficiency is deleted or removed from this objective bank.proficiencyId - the Id of the Proficiency
to monitorNullArgumentException - proficiencyId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.