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

The session defines methods for retrieving Grades and GradeSystems. A Grade represents a qualified ranking defined in some grade system.

Two views are defined in this session:

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete set or is an error condition
  • federated gradebook view: lookups include grade systems from this gradebook and other gradebooks which are children of this gradebook in the gradebook hierarchy
  • isolated gradebook view: lookups include only those grade systems defined in this gradebook

Grades and grade systems may have an additional records indicated by their respective record types. The record may not be accessed through a cast of the object.

MethodgetGradebookId
Description

Gets the GradeSystem Id associated with this session.

Returnosid.id.Idthe GradeSystem 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.
MethodcanLookupGradeSystems
Description

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

Returnboolean false if lookup methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseComparativeGradeSystemView
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.
MethodusePlenaryGradeSystemView
Description

A complete view of the GradeSystem 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.
MethoduseFederatedGradebookView
Description

Federates the view for methods in this session. A federated view will include grade entries in gradebooks which are children of this gradebook in the gradebook hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedGradebookView
Description

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

CompliancemandatoryThis method is must be implemented.
MethodgetGradeSystem
Description

Gets the GradeSystem specified by its Id. In plenary mode, the exact Id is found or a NOT_FOUND results. Otherwise, the returned GradeSystem may have a different Id than requested, such as the case where a duplicate Id was assigned to a GradeSystem and retained for compatibility.

Parametersosid.id.IdgradeSystemId Id of the GradeSystem
Returnosid.grading.GradeSystemthe grade system
ErrorsNOT_FOUND gradeSystemId not found
NULL_ARGUMENT gradeSystemId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetGradeSystemByGrade
Description

Gets the GradeSystem by a Grade Id.

Parametersosid.id.IdgradeId Id of a Grade
Returnosid.grading.GradeSystemthe grade system
ErrorsNOT_FOUND gradeId not found
NULL_ARGUMENT gradeId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetGradeSystemsByIds
Description

Gets a GradeSystemList corresponding to the given IdList. In plenary mode, the returned list contains all of the systems specified in the Id list, in the order of the list, including duplicates, or an error results if an Id in the supplied list is not found or inaccessible. Otherwise, inaccessible GradeSystems may be omitted from the list and may present the elements in any order including returning a unique set.

Parametersosid.id.IdListgradeSystemIdsthe list of Ids to retrieve
Returnosid.grading.GradeSystemListthe returned GradeSystem list
ErrorsNOT_FOUNDan Id was not found
NULL_ARGUMENT gradeSystemIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetGradeSystemsByGenusType
Description

Gets a GradeSystemList corresponding to the given grade system genus Type which does not include systems of genus types derived from the specified Type. In plenary mode, the returned list contains all known systems or an error results. Otherwise, the returned list may contain only those systems that are accessible through this session.

Parametersosid.type.TypegradeSystemGenusTypea grade system genus type
Returnosid.grading.GradeSystemListthe returned GradeSystem list
ErrorsNULL_ARGUMENT gradeSystemGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetGradeSystemsByParentGenusType
Description

Gets a GradeSystemList corresponding to the given grade system genus Type and include any additional systems with genus types derived from the specified Type. In plenary mode, the returned list contains all known systems or an error results. Otherwise, the returned list may contain only those systems that are accessible through this session.

Parametersosid.type.TypegradeSystemGenusTypea grade system genus type
Returnosid.grading.GradeSystemListthe returned GradeSystem list
ErrorsNULL_ARGUMENT gradeSystemGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetGradeSystemsByRecordType
Description

Gets a GradeSystemList containing the given grade record Type. In plenary mode, the returned list contains all known systems or an error results. Otherwise, the returned list may contain only those systems that are accessible through this session.

Parametersosid.type.TypegradeSystemRecordTypea grade system record type
Returnosid.grading.GradeSystemListthe returned GradeSystem list
ErrorsNULL_ARGUMENT gradeSystemGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetGradeSystems
Description

Gets all GradeSystems. In plenary mode, the returned list contains all known grade systems or an error results. Otherwise, the returned list may contain only those grade systems that are accessible through this session.

Returnosid.grading.GradeSystemLista GradeSystemList
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.