OSID Logo
OSID Specifications
grading package
Version 3.0.0
Release Candidate Preview
Interfaceosid.grading.GradeSystemSmartGradebookSession
Implementsosid.OsidSession
Description

This session manages queries and sequencing to create "smart" dynamic catalogs. A GradeSystemQuery can be retrieved from this session and mapped to this Gradebook to create a virtual collection of GradeSystems. The entries may be sequenced using the GradeSystemSearchOrder from this session.

This Gradebook has a default query that matches any grade system and a default search order that specifies no sequencing. The queries may be examined using a GradeSystemQueryInspector. The query may be modified by converting the inspector back to a GradeSystemQuery.

MethodgetGradebookId
Description

Gets the Gradebook Id associated with this session.

Returnosid.id.Idthe Gradebook Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetGradebook
Description

Gets the Gradebook associated with this session.

Returnosid.grading.Gradebookthe Gradebook associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageSmartGradebooks
Description

Tests if this user can manage smart gradebooks. 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 smart operations.

Returnboolean false if smart gradebook methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetGradeSystemQuery
Description

Gets a grade system query.

Returnosid.grading.GradeSystemQuerythe grade system query
CompliancemandatoryThis method must be implemented.
MethodgetGradeSystemSearchOrder
Description

Gets a grade system search order.

Returnosid.grading.GradeSystemSearchOrderthe grade system search order
CompliancemandatoryThis method must be implemented.
MethodapplyGradeSystemQuery
Description

Applies a grade system query to this gradebook.

Parametersosid.grading.GradeSystemQuerygradeSystemQuerythe grade system query
ErrorsNULL_ARGUMENT gradeSystemQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED gradeSystemQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectGradeSystemQuery
Description

Gets a grade system query inspector for this gradebook.

Returnosid.grading.GradeSystemQueryInspectorthe grade system query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyGradeSystemSequencing
Description

Applies a grade system search order to this gradebook.

Parametersosid.grading.GradeSystemSearchOrdergradeSystemSearchOrderthe grade system search order
ErrorsNULL_ARGUMENT gradeSystemSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED gradeSystemSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetGradeSystemQueryFromInspector
Description

Gets a grade system query from an inspector.

Parametersosid.grading.GradeSystemQueryInspectorgradeSystemQueryInspectora grade system query inspector
Returnosid.grading.GradeSystemQuerythe grade system query
ErrorsNULL_ARGUMENT gradeSystemQueryInspector is null
UNSUPPORTED gradeSystemQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.