OSID Logo
OSID Specifications
checklist package
Version 3.0.0
Release Candidate Preview
Interfaceosid.checklist.TodoNotificationSession
Implementsosid.OsidSession
Description

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

MethodgetChecklistId
Description

Gets the Checklist Id associated with this session.

Returnosid.id.Idthe Checklist Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetChecklist
Description

Gets the Checklist associated with this session.

Returnosid.checklist.Checklistthe checklist
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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
CompliancemandatoryThis 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.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedChecklistView
Description

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

CompliancemandatoryThis method is must be implemented.
MethodreliableTodoNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodunreliableTodoNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeTodoNotification
Description

Acknowledge a todo notification.

Parametersosid.id.IdnotificationIdthe Id of the notification
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewTodos
Description

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

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedTodos
Description

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

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdtodoIdthe Id of the Todo to monitor
ErrorsNULL_ARGUMENT todoId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedTodos
Description

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

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdtodoIdthe Id of the Todo to monitor
ErrorsNULL_ARGUMENT todoId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedTodoHierarchy
Description

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

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdtodoIdthe Id of the Todo node to monitor
ErrorsNULL_ARGUMENT todoId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdtodoIdthe Id of the Todo node to monitor
ErrorsNULL_ARGUMENT todoId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.