public interface CyclicTimePeriodNotificationSession extends OsidSession
This session defines methods to receive asynchronous notifications on
adds/changes to CyclicTimePeriods.
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
CyclicTimePeriodLookupSession.
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeCyclicTimePeriodNotification(Id notificationId)
Acknowledge a cyclic time period notification.
|
boolean |
canRegisterForCyclicTimePeriodNotifications()
Tests if this user can register for
CyclicTimePeriod
notifications. |
Calendar |
getCalendar()
Gets the
Calendar associated with this session. |
Id |
getCalendarId()
Gets the
Calendar Id associated with
this session. |
void |
registerForChangedCyclicTimePeriod(Id cyclicTimePeriodId)
Registers for notification of an updated cyclic time period.
|
void |
registerForChangedCyclicTimePeriods()
Registers for notification of updated cyclic time periods.
|
void |
registerForDeletedCyclicTimePeriod(Id cyclicTimePeriodId)
Registers for notification of a deleted cyclic time period.
|
void |
registerForDeletedCyclicTimePeriods()
Registers for notification of deleted cyclic time periods.
|
void |
registerForNewCyclicTimePeriods()
Register for notifications of new cyclic time periods.
|
void |
reliableCyclicTimePeriodNotifications()
Reliable notifications are desired.
|
void |
unreliableCyclicTimePeriodNotifications()
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 canRegisterForCyclicTimePeriodNotifications()
CyclicTimePeriod
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 reliableCyclicTimePeriodNotifications()
acknowledgeCyclicTimePeriodNotification()
.mandatory
- This method is must be implemented. void unreliableCyclicTimePeriodNotifications()
mandatory
- This method is must be implemented. void acknowledgeCyclicTimePeriodNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId
- the Id
of the notificationOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewCyclicTimePeriods() throws OperationFailedException, PermissionDeniedException
CyclicTimePeriodReceiver.newCyclicTimePeriods()
is invoked
when a new cyclic time period is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedCyclicTimePeriods() throws OperationFailedException, PermissionDeniedException
CyclicTimePeriodReceiver.changedCyclicTimePeriods()
is invoked
when a cyclic time period is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedCyclicTimePeriod(Id cyclicTimePeriodId) throws OperationFailedException, PermissionDeniedException
CyclicTimePeriodReceiver.changedCyclicTimePeriods()
is invoked
when the specified cyclic time period is changed.cyclicTimePeriodId
- the Id
of the
CyclicTimePeriod
to monitorNullArgumentException
- cyclicTimePeriodId is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedCyclicTimePeriods() throws OperationFailedException, PermissionDeniedException
CyclicTimePeriodReceiver.deletedCyclicTimePeriods()
is invoked
when a cyclic time period is removed from this calendar.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedCyclicTimePeriod(Id cyclicTimePeriodId) throws OperationFailedException, PermissionDeniedException
CyclicTimePeriodReceiver.changedCyclicTimePeriods()
is invoked
when the specified cyclic time period is removed from this calendar.cyclicTimePeriodId
- the Id
of the
CyclicTimePeriod
to monitorNullArgumentException
- cyclicTimePeriodId is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.