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

This session provides methods to retrieve Todo to Checklist mappings. A Todo may appear in multiple Checklists. Each Checklist may have its own authorizations governing who is allowed to look at it.

This lookup session defines several views:

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete result set or is an error condition
MethodcanLookupTodoChecklistMappings
Description

Tests if this user can perform lookups of todo/checklist mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known lookup methods in this session will result in a PERMISSION_DENIED. This is intendedas a hint to an application that may opt not to offer lookup operations to unauthorized users.

Returnboolean false if looking up mappings is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseComparativeChecklistView
Description

The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.

CompliancemandatoryThis method is must be implemented.
MethodusePlenaryChecklistView
Description

A complete view of the Todo and Checklist returns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.

CompliancemandatoryThis method is must be implemented.
MethodgetTodoIdsByChecklist
Description

Gets the list of Todo Ids associated with a Checklist.

Parametersosid.id.IdchecklistId Id of a Checklist.
Returnosid.id.IdListlist of related todo Ids
ErrorsNOT_FOUND checklistId is not found
NULL_ARGUMENT checklistId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetTodosByChecklist
Description

Gets the list of Todos associated with a Checklist.

Parametersosid.id.IdchecklistId Id of a Checklist
Returnosid.checklist.TodoListlist of related todos
ErrorsNOT_FOUND checklistId is not found
NULL_ARGUMENT checklistId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetTodoIdsByChecklists
Description

Gets the list of Todo Ids corresponding to a list of Checklist objects.

Parametersosid.id.IdListchecklistIdslist of checklist Ids
Returnosid.id.IdListlist of todo Ids
ErrorsNULL_ARGUMENT checklistIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetTodosByChecklists
Description

Gets the list of Todos corresponding to a list of Checklists.

Parametersosid.id.IdListchecklistIdslist of checklist Ids
Returnosid.checklist.TodoListlist of todos
ErrorsNULL_ARGUMENT checklistIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetChecklistIdsByTodo
Description

Gets the list of Checklist Ids mapped to a Todo.

Parametersosid.id.IdtodoId Id of a Todo
Returnosid.id.IdListlist of checklist Ids
ErrorsNOT_FOUND todoId is not found
NULL_ARGUMENT todoId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetChecklistsByTodo
Description

Gets the list of Checklist objects mapped to a Todo.

Parametersosid.id.IdtodoId Id of a Todo
Returnosid.checklist.ChecklistListlist of checklists
ErrorsNOT_FOUND todoId is not found
NULL_ARGUMENT todoId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.