OSID Logo
OSID Specifications
checklist package
Version 3.1.0
Interfaceosid.checklist.TodoNotificationSession
Implementsosid.OsidSession
Used Byosid.checklist.ChecklistManager
osid.checklist.ChecklistProxyManager
Description

This session defines methods to receive notifications on adds/changes to Todos. 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.

MethodgetChecklistId
Description

Gets the Checklist Id associated with this session.

Returnosid.id.Id the Checklist Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetChecklist
Description

Gets the Checklist associated with this session.

Returnosid.checklist.Checklist the checklist
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanRegisterForTodoNotifications
Description

Tests if this user can register for Todo 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.

Returnboolean false if notification methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseFederatedChecklistView
Description

Federates the view for methods in this session. A federated view will include notifications for todoss in checklists which are children of this checklist in the checklist hierarchy.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedChecklistView
Description

Isolates the view for methods in this session. An isolated view restricts notifications to this checklist only.

Compliancemandatory This method is must be implemented.
MethodreliableTodoNotifications
Description

Reliable notifications are desired. In reliable mode, notifications are to be acknowledged using acknowledgeTodoNotification().

Compliancemandatory This method is must be implemented.
MethodunreliableTodoNotifications
Description

Unreliable notifications are desired. In unreliable mode, notifications do not need to be acknowledged.

Compliancemandatory This method is must be implemented.
MethodacknowledgeTodoNotification
Description

Acknowledge a todo notification.

Parametersosid.id.IdnotificationId the Id of the notification
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForNewTodos
Description

Register for notifications of new todos. TodoReceiver.newTodos() is invoked when a new Todo is created.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedTodos
Description

Registers for notification of updated todos. TodoReceiver.changedTodos() is invoked when a todo is changed.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedTodo
Description

Registers for notification of an updated todo. TodoReceiver.changedTodos() is invoked when the specified todo is changed.

Parametersosid.id.IdtodoId the Id of the Todo to monitor
ErrorsNULL_ARGUMENT todoId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedTodos
Description

Registers for notification of deleted todos. TodoReceiver.deletedTodos() is invoked when a todo is deleted.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedTodo
Description

Registers for notification of a deleted todo. TodoReceiver.deletedTodos() is invoked when the specified todo is deleted.

Parametersosid.id.IdtodoId the Id of the Todo to monitor
ErrorsNULL_ARGUMENT todoId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedTodoHierarchy
Description

Todo Receiver.changedChildOfTodos() is invoked when a node experiences a change in its children.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedTodoHierarchyForAncestors
Description

Registers for notification of an updated toto hierarchy structure. TodoReceiver.changedChildOfTodos() is invoked when the specified node or any of its ancestors experiences a change in its children.

Parametersosid.id.IdtodoId the Id of the Todo node to monitor
ErrorsNULL_ARGUMENT todoId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedTodoHierarchyForDescendants
Description

Registers for notification of an updated todo hierarchy structure. TodoReceiver.changedChildOfTodos() is invoked when the specified node or any of its descendants experiences a change in its children.

Parametersosid.id.IdtodoId the Id of the Todo node to monitor
ErrorsNULL_ARGUMENT todoId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.