public interface RecurringEventNotificationSession extends OsidSession
This session defines methods to receive asynchronous notifications on
adds/changes to RecurringEvent
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
RecurringEventLookupSession.
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeRecurringEventNotification(Id notificationId)
Acknowledge a recurring event notification.
|
boolean |
canRegisterForRecurringEventNotifications()
Tests if this user can register for
RecurringEvent
notifications. |
Calendar |
getCalendar()
Gets the
Calendar associated with this session. |
Id |
getCalendarId()
Gets the
Calendar Id associated with
this session. |
void |
registerForChangedRecurringEvent(Id recurringEventId)
Registers for notification of an updated recurring event.
|
void |
registerForChangedRecurringEvents()
Registers for notification of updated recurring events.
|
void |
registerForDeletedRecurringEvent(Id recurringEventId)
Registers for notification of a deleted recurring event.
|
void |
registerForDeletedRecurringEvents()
Registers for notification of deleted recurring events.
|
void |
registerForNewRecurringEvents()
Register for notifications of new recurring events.
|
void |
reliableRecurringEventNotifications()
Reliable notifications are desired.
|
void |
unreliableRecurringEventNotifications()
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 canRegisterForRecurringEventNotifications()
RecurringEvent
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 reliableRecurringEventNotifications()
acknowledgeRecurringEventNotification()
.mandatory
- This method is must be implemented. void unreliableRecurringEventNotifications()
mandatory
- This method is must be implemented. void acknowledgeRecurringEventNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId
- the Id
of the notificationOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewRecurringEvents() throws OperationFailedException, PermissionDeniedException
RecurringEventReceiver.newRecurringEvents()
is invoked when a
new recurring event is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedRecurringEvents() throws OperationFailedException, PermissionDeniedException
RecurringEventReceiver.changedRecurringEvents()
is invoked
when a recurring event is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedRecurringEvent(Id recurringEventId) throws OperationFailedException, PermissionDeniedException
RecurringEventReceiver.changedRecurringEvents()
is invoked
when the specified recurring event is changed.recurringEventId
- the Id
of the
RecurringEvent
to monitorNullArgumentException
- recurringEventId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedRecurringEvents() throws OperationFailedException, PermissionDeniedException
RecurringEventReceiver.deletedRecurringEvents()
is invoked
when a recurring event is removed from this calendar.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedRecurringEvent(Id recurringEventId) throws OperationFailedException, PermissionDeniedException
RecurringEventReceiver.changedRecurringEvents()
is invoked
when the specified recurring event is removed from this calendar.recurringEventId
- the Id
of the
RecurringEvent
to monitorNullArgumentException
- recurringEventId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.