public interface TodoProducerNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to TodoProducer
objects in this Checklist.
This also includes existing TodoProducers
that may appear
or disappear due to changes in the Checklist
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
TodoProducerLookupSession.
Modifier and Type | Method and Description |
---|---|
boolean |
canRegisterForTodoProducerNotifications()
Tests if this user can register for
TodoProducer
notifications. |
Checklist |
getChecklist()
Gets the
Checklist associated with this session. |
Id |
getChecklistId()
Gets the
Checklist Id associated with
this session. |
void |
registerForChangedTodoProducer(Id todoProducerId)
Registers for notification of an updated todo producer.
|
void |
registerForChangedTodoProducers()
Registers for notification of updated todo producers.
|
void |
registerForDeletedTodoProducer(Id todoProducerId)
Registers for notification of a deleted todo producer.
|
void |
registerForDeletedTodoProducers()
Registers for notification of deleted todo producers.
|
void |
registerForNewTodoProducers()
Register for notifications of new todo producers.
|
void |
useFederatedChecklistView()
Federates the view for methods in this session.
|
void |
useIsolatedChecklistView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getChecklistId()
Checklist
Id
associated with
this session. Checklist Id
associated with this sessionmandatory
- This method must be implemented. Checklist getChecklist() throws OperationFailedException, PermissionDeniedException
Checklist
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canRegisterForTodoProducerNotifications()
TodoProducer
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 useFederatedChecklistView()
mandatory
- This method is must be implemented. void useIsolatedChecklistView()
mandatory
- This method is must be implemented. void registerForNewTodoProducers() throws OperationFailedException, PermissionDeniedException
TodoProducerReceiver.newTodoProducer()
is invoked when a new
TodoProducer
appears in this checklist.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedTodoProducers() throws OperationFailedException, PermissionDeniedException
TodoProducerReceiver.changedTodoProducer()
is invoked when a
todo producer in this checklist is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedTodoProducer(Id todoProducerId) throws OperationFailedException, PermissionDeniedException
ProvisionableReceiver.changedTodoProducer()
is invoked when
the specified todo producer in this checklist is changed.todoProducerId
- the Id
of the
TodoProducer
to monitorNullArgumentException
- todoProducerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedTodoProducers() throws OperationFailedException, PermissionDeniedException
TodoProducerReceiver.deletedTodoProducer()
is invoked when a
todo producer is deleted or removed from this checklist.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedTodoProducer(Id todoProducerId) throws OperationFailedException, PermissionDeniedException
TodoProducerReceiver.deletedTodoProducer()
is invoked when the
specified todo producer is deleted or removed from this checklist.todoProducerId
- the Id
of the
TodoProducer
to monitorNullArgumentException
- todoProducerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.