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

This session provides methods to re-assign Grades to Gradebook mappings. A Grade may appear in multiple Gradebook catalogs and removing the last reference to a Grade is the equivalent of deleting it. Each Gradebook may have its own authorizations governing who is allowed to operate on it.

Adding a reference of a Grade to another Gradebook is not a copy operation (eg: does not change its Id ).

MethodcanAssignGrades
Description

Tests if this user can alter grade/gradebook mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping 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 assignment operations to unauthorized users.

Returnbooleanfalse if mapping is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanAssignGradeToGradebook
Description

Tests if this user can alter grade/gradebook mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping 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 assignment operations to unauthorized users.

Parametersosid.id.IdgradebookIdthe Id of the Gradebook
Returnbooleanfalse if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENTgradebookId is null
CompliancemandatoryThis method must be implemented.
MethodgetAssignableGradebookIds
Description

Gets a list of gradebooks including and under the given gradebook node in which any grade can be assigned.

Parametersosid.id.IdgradebookIdthe Id of the Gradebook
Returnosid.id.IdListlist of assignable gradebook Ids
ErrorsNULL_ARGUMENTgradebookId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetAssignableGradebookIdsForGrade
Description

Gets a list of gradebooks including and under the given gradebook node in which a specific grade can be assigned.

Parametersosid.id.IdgradebookIdthe Id of the Gradebook
osid.id.IdgradeIdthe Id of the Grade
Returnosid.id.IdListlist of assignable gradebook Ids
ErrorsNULL_ARGUMENTgradebookId or gradeId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodassignGradeToGradebook
Description

Adds an existing Grade to a Gradebook .

Parametersosid.id.IdgradeIdthe Id of the Grade
osid.id.IdgradebookIdthe Id of the Gradebook
ErrorsALREADY_EXISTSgradeId is already assigned to gradebookId
NOT_FOUNDgradeId or gradebookId not found
NULL_ARGUMENTgradeId or gradebookId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignGradeFromGradebook
Description

Removes a Grade from a Gradebook .

Parametersosid.id.IdgradeIdthe Id of the Grade
osid.id.IdgradebookIdthe Id of the Gradebook
ErrorsNOT_FOUNDgradeId or gradebookId not found or gradeId not assigned to gradebookId
NULL_ARGUMENTgradeId or gradebookId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodreassignGradeToGradebook
Description

Moves a Grade from one Gradebook to another. Mappings to other Gradebooks are unaffected.

Parametersosid.id.IdgradeIdthe Id of the Grade
osid.id.IdfromGradebookIdthe Id of the current Gradebook
osid.id.IdtoGradebookIdthe Id of the destination Gradebook
ErrorsALREADY_EXISTSgradeId already assigned to togradebookId
NOT_FOUNDgradeId, fromGradebookId , or toGradebookeId not found or gradeId not mapped to fromGradebookId
NULL_ARGUMENTgradeId, fromGradebookId , or toGradebookId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.