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

This session provides methods for searching among TodoProducer objects. The search query is constructed using the TodoProducerQuery.

This session defines views that offer differing behaviors for searching.

  • federated checklist view: searches include todo producers in checklists of which this checklist is an ancestor in the checklist hierarchy
  • isolated checklist view: searches are restricted to todo producers in this checklist

Todo producers may have a query record indicated by their respective record types. The query record is accessed via the TodoProducerQuery.

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.
MethodcanSearchTodoProducers
Description

Tests if this user can perform TodoProducer lookups. 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 not offer lookup operations to unauthorized users.

Returnboolean false if search 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 todo producers in checklists which are children of this broker in the checklist hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedChecklistView
Description

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

CompliancemandatoryThis method is must be implemented.
MethodgetTodoProducerQuery
Description

Gets a todo producer query.

Returnosid.checklist.mason.TodoProducerQuerythe todo producer query
CompliancemandatoryThis method must be implemented.
MethodgetTodoProducersByQuery
Description

Gets a list of TodoProducers matching the given todo producer query.

Parametersosid.checklist.mason.TodoProducerQuerytodoProducerQuerythe todo producer query
Returnosid.checklist.mason.TodoProducerListthe returned TodoProducerList
ErrorsNULL_ARGUMENT todoProducerQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED todoProducerQuery is not of this service
CompliancemandatoryThis method must be implemented.