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

This session provides methods to re-assign grade entries to Gradebooks . A GradeEntry may map to multiple Gradebooks and removing the last reference to a GradeEntry is the equivalent of deleting it. Each Gradebook may have its own authorizations governing who is allowed to operate on it.

Moving or adding a reference of a GradeEntry to another Gradebook is not a copy operation (eg: does not change its Id ).

MethodcanAssignGradeEntry
Description

Tests if this user can alter grade entry/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 . This 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.
MethodcanAssignGradeEntriesToGradebook
Description

Tests if this user can alter grade entry/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 . This 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 entry 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.
MethodgetAssignableGradebookIdsForGradeEntry
Description

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

Parametersosid.id.IdgradebookIdthe Id of the Gradebook
osid.id.IdgradeEntryIdthe Id of the GradeEntry
Returnosid.id.IdListlist of assignable gradebook Ids
ErrorsNULL_ARGUMENTgradebookId or gradeEntryId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodassignGradeEntryToGradebook
Description

Adds an existing GradeEntry to a Gradebook .

Parametersosid.id.IdgradeEntryIdthe Id of the GradeEntry
osid.id.IdgradebookIdthe Id of the Gradebook
ErrorsALREADY_EXISTSgradeEntryId is already assigned to gradebookId
NOT_FOUNDgradeEntryId or gradebookId not found
NULL_ARGUMENTgradeEntryId or gradebookId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignGradeEntryFromGradebook
Description

Removes a GradeEntry from a Gradebook .

Parametersosid.id.IdgradeEntryIdthe Id of the GradeEntry
osid.id.IdgradebookIdthe Id of the Gradebook
ErrorsNOT_FOUNDgradeEntryId or gradebookId not found or gradeEntryId not assigned to gradebookId
NULL_ARGUMENTgradeEntryId or gradebookId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodreassignGradeEntryToGradebook
Description

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

Parametersosid.id.IdgradeEntryIdthe Id of the GradeEntry
osid.id.IdfromGradebookIdthe Id of the current Gradebook
osid.id.IdtoGradebookIdthe Id of the destination Gradebook
ErrorsALREADY_EXISTSgradeEntryId already assigned to toGradebookId
NOT_FOUNDgradeEntryId, fromGradebookId , or toGradebookId not found or gradeEntryId not mapped to fromGradebookId
NULL_ARGUMENTgradeEntryId, fromGradebookId , or toGradebookId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.