public interface ParticipantNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Participant
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.
Modifier and Type | Method and Description |
---|---|
boolean |
canRegisterForParticipantNotifications()
Tests if this user can register for
Participant
notifications. |
Catalogue |
getCatalogue()
Gets the
Catalogue associated with this session. |
Id |
getCatalogueId()
Gets the
Catalogue Id associated with
this session. |
void |
registerForChangedParticipant(Id participantId)
Registers for notification of an updated participant.
|
void |
registerForChangedParticipants()
Registers for notification of updated participants.
|
void |
registerForChangedParticipantsForOffering(Id offeringId)
Register for notifications of changed participants for the given
offering.
|
void |
registerForChangedParticipantsForResource(Id resourceId)
Register for notifications of changed participants for the given
resource.
|
void |
registerForDeletedParticipant(Id participantId)
Registers for notification of a deleted participants.
|
void |
registerForDeletedParticipants()
Registers for notification of deleted participants.
|
void |
registerForDeletedParticipantsForOffering(Id offeringId)
Register for notifications of deleted participants for the given
offering.
|
void |
registerForDeletedParticipantsForResource(Id resourceId)
Register for notifications of deleted participants for the given
resource.
|
void |
registerForNewParticipants()
Register for notifications of new participants.
|
void |
registerForNewParticipantsForOffering(Id offeringId)
Register for notifications of new participants for an offering.
|
void |
registerForNewParticipantsForResource(Id resourceId)
Register for notifications of new participants for a resource.
|
void |
useFederatedCatalogueView()
Federates the view for methods in this session.
|
void |
useIsolatedCatalogueView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getCatalogueId()
Catalogue
Id
associated with
this session. Catalogue Id
associated with this sessionmandatory
- This method must be implemented. Catalogue getCatalogue() throws OperationFailedException, PermissionDeniedException
Catalogue
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canRegisterForParticipantNotifications()
Participant
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 useFederatedCatalogueView()
mandatory
- This method is must be implemented. void useIsolatedCatalogueView()
mandatory
- This method is must be implemented. void registerForNewParticipants() throws OperationFailedException, PermissionDeniedException
ParticipantReceiver.newParticipant()
is invoked when a new
Participant
is appears in this catalogue.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewParticipantsForOffering(Id offeringId) throws OperationFailedException, PermissionDeniedException
ParticipantReceiver.newParticipant()
is invoked when a new
Participant
appears in this catalogue.offeringId
- an offering to monitorNullArgumentException
- offeringId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewParticipantsForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException
ParticipantReceiver.newParticipant()
is invoked when a new
Participant
appears in this catalogue.resourceId
- a resource to monitorNullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedParticipants() throws OperationFailedException, PermissionDeniedException
ParticipantReceiver.changedParticipant()
is invoked when a
participant in this catalogue is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedParticipantsForOffering(Id offeringId) throws OperationFailedException, PermissionDeniedException
ParticipantReceiver.changedParticipant()
is
invoked when a Participant
for the offering in this
catalogue is changed.offeringId
- an offering to monitorNullArgumentException
- offeringId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedParticipantsForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException
ParticipantReceiver.changedParticipant()
is
invoked when a Participant
for the offering in this
catalogue is changed.resourceId
- a resource to monitorNullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedParticipant(Id participantId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ParticipantReceiver.changedParticipant()
is invoked when the
specified participant in this catalogue is changed.participantId
- the Id
of the Participant
to monitorNotFoundException
- a participant was not found
identified by the given Id
NullArgumentException
- participantId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedParticipants() throws OperationFailedException, PermissionDeniedException
ParticipantReceiver.deletedParticipant()
is invoked when a
participant is removed from this catalogue.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedParticipantsForOffering(Id offeringId) throws OperationFailedException, PermissionDeniedException
ParticipantReceiver.deletedParticipant()
is
invoked when a Participant
for the offering is removed
from this catalogue.offeringId
- an offering to monitorNullArgumentException
- offeringId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedParticipantsForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException
ParticipantReceiver.deletedParticipant()
is
invoked when a Participant
for the offering is removed
from this catalogue.resourceId
- a resource to monitorNullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedParticipant(Id participantId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ParticipantReceiver.deletedParticipant()
is invoked when the
specified participant is removed from this catalogue.participantId
- the Id
of the Participant
to monitorNotFoundException
- a participant was not found
identified by the given Id
NullArgumentException
- participantId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.