OSID Logo
OSID Specifications
grading package
Version 3.0.0
Interfaceosid.grading.GradeSmartGradebookSession
Implementsosid.OsidSession
Used Byosid.grading.GradingManager
osid.grading.GradingProxyManager
Description

This session manages queries and sequencing to create "smart" dynamic catalogs. A GradeQuery can be retrieved from this session and mapped to this Gradebook to create a virtual collection of Grades . The grades may be sequenced using the GradeSearchOrder from this session.

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

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

Returnbooleanfalse if smart gradebook management is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetGradeQuery
Description

Gets a grade query.

Returnosid.grading.GradeQuerythe grade query
CompliancemandatoryThis method must be implemented.
MethodgetGradeSearchOrder
Description

Gets a grade search order.

Returnosid.grading.GradeSearchOrderthe grade search order
CompliancemandatoryThis method must be implemented.
MethodapplyGradeQuery
Description

Applies a grade query to this gradebook.

Parametersosid.grading.GradeQuerygradeQuerythe grade query
ErrorsNULL_ARGUMENTgradeQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTEDgradeQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectGradeQuery
Description

Gets a grade query inspector for this gradebook.

Returnosid.grading.GradeQueryInspectorthe grade query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyGradeSequencing
Description

Applies a grade search order to this gradebook.

Parametersosid.grading.GradeSearchOrdergradeSearchOrderthe grade search order
ErrorsNULL_ARGUMENTgradeSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTEDgradeSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetGradeQueryFromInspector
Description

Gets a grade query from an inspector.

Parametersosid.grading.GradeQueryInspectorgradeQueryInspectora grade query inspector
Returnosid.grading.GradeQuerythe grade query
ErrorsNULL_ARGUMENTgradeQueryInspector is null
UNSUPPORTEDgradeQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.