public interface AppointmentNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Appointment
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 |
canRegisterForAppointmentNotifications()
Tests if this user can register for
Appointment
notifications. |
Realm |
getRealm()
Gets the
Realm associated with this session. |
Id |
getRealmId()
Gets the
Realm Id associated with this
session. |
void |
registerForChangedAppointment(Id appointmentId)
Registers for notification of an updated appointment.
|
void |
registerForChangedAppointments()
Registers for notification of updated appointments.
|
void |
registerForChangedAppointmentsForPerson(Id personId)
Register for notifications of changed appointments for the given
person
Id. |
void |
registerForChangedAppointmentsForPosition(Id positionId)
Register for notifications of changed appointments for the given
position
Id. |
void |
registerForDeletedAppointment(Id appointmentId)
Registers for notification of a deleted appointment.
|
void |
registerForDeletedAppointments()
Registers for notification of deleted appointments.
|
void |
registerForDeletedAppointmentsForPerson(Id personId)
Register for notifications of deleted appointments for the given
person
Id. |
void |
registerForDeletedAppointmentsForPosition(Id positionId)
Register for notifications of deleted appointments for the given
position
Id. |
void |
registerForNewAppointments()
Register for notifications of new appointments.
|
void |
registerForNewAppointmentsForPerson(Id personId)
Register for notifications of new appointments for the given person
Id. |
void |
registerForNewAppointmentsForPosition(Id positionId)
Register for notifications of new appointments for the given position
Id. |
void |
useFederatedRealmView()
Federates the view for methods in this session.
|
void |
useIsolatedRealmView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getRealmId()
Realm
Id
associated with this
session. Realm Id
associated with this sessionmandatory
- This method must be implemented. Realm getRealm() throws OperationFailedException, PermissionDeniedException
Realm
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canRegisterForAppointmentNotifications()
Appointment
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 useFederatedRealmView()
mandatory
- This method is must be implemented. void useIsolatedRealmView()
mandatory
- This method is must be implemented. void registerForNewAppointments() throws OperationFailedException, PermissionDeniedException
AppointmentReceiver.newAppointments()
is invoked when a new
Appointment
is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewAppointmentsForPerson(Id personId) throws OperationFailedException, PermissionDeniedException
Id.
AppointmentReceiver.newAppointments()
is invoked when a new Appointment
appears in
this realm.personId
- the person to monitorNullArgumentException
- personId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewAppointmentsForPosition(Id positionId) throws OperationFailedException, PermissionDeniedException
Id.
AppointmentReceiver.newAppointments()
is invoked when a new Appointment
appears in
this realm.positionId
- the Id
of the position to monitorNullArgumentException
- positionId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedAppointments() throws OperationFailedException, PermissionDeniedException
AppointmentReceiver.changedAppointments()
is invoked when an
appointment in this realm is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedAppointmentsForPerson(Id personId) throws OperationFailedException, PermissionDeniedException
Id.
AppointmentReceiver.changedAppointments()
is invoked when an
Appointment
for the reference in this realm is changed.personId
- the Id
of the person to monitorNullArgumentException
- personId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedAppointmentsForPosition(Id positionId) throws OperationFailedException, PermissionDeniedException
Id.
AppointmentReceiver.changedAppointments()
is invoked when an
Appointment
for the resource is changed in this realm.positionId
- the Id
of the position to monitorNullArgumentException
- positionId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedAppointment(Id appointmentId) throws NotFoundException, OperationFailedException, PermissionDeniedException
AppointmentReceiver.changedAppointments()
is invoked when the
specified appointment in this realm is changed.appointmentId
- the Id
of the Appointment
to monitorNotFoundException
- an appointment was not found
identified by the given Id
NullArgumentException
- appointmentId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedAppointments() throws OperationFailedException, PermissionDeniedException
AppointmentReceiver.deletedAppointments()
is invoked when an
appointment is removed from this realm.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedAppointmentsForPerson(Id personId) throws OperationFailedException, PermissionDeniedException
Id.
AppointmentReceiver.deletedAppointments()
is invoked when an
Appointment
for the reference is removed from this
realm.personId
- the Id
of the person to monitorNullArgumentException
- personId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedAppointmentsForPosition(Id positionId) throws OperationFailedException, PermissionDeniedException
Id.
AppointmentReceiver.deletedAppointments()
is invoked when an
Appointment
for the resource is removed from this
realm.positionId
- the Id
of the position to monitorNullArgumentException
- positionId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedAppointment(Id appointmentId) throws NotFoundException, OperationFailedException, PermissionDeniedException
AppointmentReceiver.deletedAppointments()
is invoked when the
specified appointment is removed from this realm.appointmentId
- the Id
of the Appointment
to monitorNotFoundException
- an appointment was not found
identified by the given Id
NullArgumentException
- appointmentId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.