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

This session manages queries and sequencing to create "smart" dynamic catalogs. A TodoQuery can be retrieved from this session and mapped to this Checklist to create a virtual collection of Todos. The todos may be sequenced using the TodoSearchOrder from this session.

This Checklist has a default query that matches any todo and a default search order that specifies no sequencing. The queries may be examined using a TodoQueryInspector. The query may be modified by converting the inspector back to a TodoQuery.

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 associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageSmartChecklists
Description

Tests if this user can manage smart checklists. A return of true does not guarantee successful authorization. A return of false indicates that it is known 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 operations to unauthorized users.

Returnboolean false if smart checklist management is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetTodoQuery
Description

Gets a todo query.

Returnosid.checklist.TodoQuerythe todo query
CompliancemandatoryThis method must be implemented.
MethodgetTodoSearchOrder
Description

Gets a todo search order.

Returnosid.checklist.TodoSearchOrderthe todo search order
CompliancemandatoryThis method must be implemented.
MethodapplyTodoQuery
Description

Applies a todo query to this checklist.

Parametersosid.checklist.TodoQuerytodoQuerythe todo query
ErrorsNULL_ARGUMENT todoQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED todoQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectTodoQuery
Description

Gets a todo query inspector for this checklist.

Returnosid.checklist.TodoQueryInspectorthe todo query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyTodoSequencing
Description

Applies a todo search order to this checklist.

Parametersosid.checklist.TodoSearchOrdertodoSearchOrderthe todo search order
ErrorsNULL_ARGUMENT todoSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED todoSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetTodoQueryFromInspector
Description

Gets a todo query from an inspector.

Parametersosid.checklist.TodoQueryInspectortodoQueryInspectora query inspector
Returnosid.checklist.TodoQuerythe todo query
ErrorsNULL_ARGUMENT todoQueryInspector is null
UNSUPPORTED todoQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.