public interface RaceConstrainerEnablerNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to RaceConstrainerEnabler
objects in this Polls.
This also includes existing RaceConstrainerEnablers
that may appear or disappear due to changes in the Polls
hierarchy, 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
RaceConstrainerEnablerLookupSession.
Modifier and Type | Method and Description |
---|---|
boolean |
canRegisterForRaceConstrainerEnablerNotifications()
Tests if this user can register for
RaceConstrainerEnabler
notifications. |
Polls |
getPolls()
Gets the
Polls associated with this session. |
Id |
getPollsId()
Gets the
Polls Id associated with this
session. |
void |
registerForChangedRaceConstrainerEnabler(Id raceConstrainerEnablerId)
Registers for notification of an updated race constrainer enabler.
|
void |
registerForChangedRaceConstrainerEnablers()
Registers for notification of updated polls enabelrs.
|
void |
registerForDeletedRaceConstrainerEnabler(Id raceConstrainerEnablerId)
Registers for notification of a deleted race constrainer enabler.
|
void |
registerForDeletedRaceConstrainerEnablers()
Registers for notification of deleted race constrainer enablers.
|
void |
registerForNewRaceConstrainerEnablers()
Register for notifications of new race constrainer enablers.
|
void |
useFederatedPollsView()
Federates the view for methods in this session.
|
void |
useIsolatedPollsView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getPollsId()
Polls
Id
associated with this
session. Polls Id
associated with this sessionmandatory
- This method must be implemented. Polls getPolls() throws OperationFailedException, PermissionDeniedException
Polls
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canRegisterForRaceConstrainerEnablerNotifications()
RaceConstrainerEnabler
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 useFederatedPollsView()
mandatory
- This method is must be implemented. void useIsolatedPollsView()
mandatory
- This method is must be implemented. void registerForNewRaceConstrainerEnablers() throws OperationFailedException, PermissionDeniedException
RaceConstrainerEnablerReceiver.newRaceConstrainerEnabler()
is
invoked when a new RaceConstrainerEnabler
appears in
this polls.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedRaceConstrainerEnablers() throws OperationFailedException, PermissionDeniedException
RaceConstrainerEnablerReceiver.changedRaceConstrainerEnabler()
is invoked when a race constrainer enabler in this polls is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedRaceConstrainerEnabler(Id raceConstrainerEnablerId) throws OperationFailedException, PermissionDeniedException
ProvisionableReceiver.changedRaceConstrainerEnabler()
is invoked when the specified race constrainer enabler in this polls
is changed.raceConstrainerEnablerId
- the Id
of the
RaceConstrainerEnabler
to monitorNullArgumentException
- raceConstrainerEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedRaceConstrainerEnablers() throws OperationFailedException, PermissionDeniedException
RaceConstrainerEnablerReceiver.deletedRaceConstrainerEnabler()
is invoked when a race constrainer enabler is deleted or
removed from this polls.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedRaceConstrainerEnabler(Id raceConstrainerEnablerId) throws OperationFailedException, PermissionDeniedException
RaceConstrainerEnablerReceiver.deletedRaceConstrainerEnabler()
is invoked when the specified race constrainer enabler is
deleted or removed from this polls.raceConstrainerEnablerId
- the Id
of the
RaceConstrainerEnabler
to monitorNullArgumentException
- raceConstrainerEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.