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

This session provides methods to retrieve Grade to Gradebook mappings. A Grade may appear in multiple Gradebook objects . Each gradebook 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
MethodcanLookupGradeGradebookMappings
Description

Tests if this user can perform lookups of grade/gradebook 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. T his is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.

Returnbooleanfalse if looking up mappings is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseComparativeGradeGradebookView
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.
MethodusePlenaryGradeGradebookView
Description

A complete view of the Grade and Gradebook 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.
MethodgetGradeIdsByGradebook
Description

Gets the list of Grade Ids associated with a Gradebook .

Parametersosid.id.IdgradebookIdId of the Gradebook
Returnosid.id.IdListlist of related grade Ids
ErrorsNOT_FOUNDgradebookId is not found
NULL_ARGUMENTgradebookId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetGradesByGradebook
Description

Gets the list of Grades associated with a Gradebook .

Parametersosid.id.IdgradebookIdId of the Gradebook
Returnosid.grading.GradeListlist of related grades
ErrorsNOT_FOUNDgradebookId is not found
NULL_ARGUMENTgradebookId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetGradeIdsByGradebooks
Description

Gets the list of Grade Ids corresponding to a list of Gradebooks .

Parametersosid.id.IdListgradebookIdslist of gradebook Ids
Returnosid.id.IdListlist of grade Ids
ErrorsNULL_ARGUMENTgradebookIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetGradesByGradebooks
Description

Gets the list of Grade corresponding to a list of Gradebooks .

Parametersosid.id.IdListgradebookIdslist of gradebook Ids
Returnosid.grading.GradeListlist of grades
ErrorsNULL_ARGUMENTgradebookIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetGradebookIdsByGrade
Description

Gets the Gradebook Ids mapped to a Grade .

Parametersosid.id.IdgradeIdId of a Grade
Returnosid.id.IdListlist of gradebook Ids
ErrorsNOT_FOUNDgradeId is not found
NULL_ARGUMENTgradeId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetGradebooksByGrade
Description

Gets the Gradebooks mapped to a Grade .

Parametersosid.id.IdgradeIdId of a Grade
Returnosid.grading.GradebookListlist of gradebooks
ErrorsNOT_FOUNDgradeId is not found
NULL_ARGUMENTgradeId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.