public interface ScheduleSlotNotificationSession extends OsidSession
This session defines methods to receive asynchronous notifications on
adds/changes to ScheduleSlot
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.
The views defined in this session correspond to the views in the
ScheduleSlotLookupSession.
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeScheduleSlotNotification(Id notificationId)
Acknowledge a schedule slot notification.
|
boolean |
canRegisterForScheduleSlotNotifications()
Tests if this user can register for
ScheduleSlot
notifications. |
Calendar |
getCalendar()
Gets the
Calendar associated with this session. |
Id |
getCalendarId()
Gets the
Calendar Id associated with
this session. |
void |
registerForChangedScheduleSlot(Id scheduleSlotId)
Registers for notification of an updated schedule slot.
|
void |
registerForChangedScheduleSlots()
Registers for notification of updated schedule schedule slots.
|
void |
registerForDeletedScheduleSlot(Id scheduleSlotId)
Registers for notification of a deleted schedule slot.
|
void |
registerForDeletedScheduleSlots()
Registers for notification of deleted schedule slots.
|
void |
registerForNewScheduleSlots()
Register for notifications of new schedule slots.
|
void |
reliableScheduleSlotNotifications()
Reliable notifications are desired.
|
void |
unreliableScheduleSlotNotifications()
Unreliable notifications are desired.
|
void |
useFederatedCalendarView()
Federates the view for methods in this session.
|
void |
useIsolatedCalendarView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getCalendarId()
Calendar
Id
associated with
this session. Calendar Id
associated with this sessionmandatory
- This method must be implemented. Calendar getCalendar() throws OperationFailedException, PermissionDeniedException
Calendar
associated with this session. Calendar
associated with this sessionOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canRegisterForScheduleSlotNotifications()
ScheduleSlot
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 useFederatedCalendarView()
mandatory
- This method is must be implemented. void useIsolatedCalendarView()
mandatory
- This method is must be implemented. void reliableScheduleSlotNotifications()
acknowledgeScheduleSlotNotification()
.mandatory
- This method is must be implemented. void unreliableScheduleSlotNotifications()
mandatory
- This method is must be implemented. void acknowledgeScheduleSlotNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId
- the Id
of the notificationOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewScheduleSlots() throws OperationFailedException, PermissionDeniedException
ScheduleSlotReceiver.newScheduleSlots()
is invoked when a new
schedule slot is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedScheduleSlots() throws OperationFailedException, PermissionDeniedException
ScheduleSlotReceiver.changedScheduleSlots()
is invoked when a
schedule slot is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedScheduleSlot(Id scheduleSlotId) throws OperationFailedException, PermissionDeniedException
ScheduleSlotReceiver.changedSchedulSlots()
is invoked when the
specified schedule slot is changed.scheduleSlotId
- the Id
of the
ScheduleSlot
to monitorNullArgumentException
- scheduleSlotId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedScheduleSlots() throws OperationFailedException, PermissionDeniedException
ScheduleSlotReceiver.deletedScheduleSlots()
is invoked when a
schedule slot is removed from this calendar.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedScheduleSlot(Id scheduleSlotId) throws OperationFailedException, PermissionDeniedException
ScheduleSlotReceiver.changedScheduleSlots()
is invoked when
the specified schedule slot is removed from this calendar.scheduleSlotId
- the Id
of the
ScheduleSlot
to monitorNullArgumentException
- scheduleSlotId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.