OSID Logo
OSID Specifications
grading package
Version 3.1.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.

Returnboolean false if mapping is not authorized, true otherwise
Compliancemandatory This 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.IdgradebookId the Id of the Gradebook
Returnboolean false if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENT gradebookId is null
Compliancemandatory This 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.IdgradebookId the Id of the Gradebook
Returnosid.id.IdList list of assignable gradebook Ids
ErrorsNULL_ARGUMENT gradebookId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This 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.IdgradebookId the Id of the Gradebook
osid.id.IdgradeId the Id of the Grade
Returnosid.id.IdList list of assignable gradebook Ids
ErrorsNULL_ARGUMENT gradebookId or gradeId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodassignGradeToGradebook
Description

Adds an existing Grade to a Gradebook.

Parametersosid.id.IdgradeId the Id of the Grade
osid.id.IdgradebookId the Id of the Gradebook
ErrorsALREADY_EXISTS gradeId is already assigned to gradebookId
NOT_FOUND gradeId or gradebookId not found
NULL_ARGUMENT gradeId or gradebookId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodunassignGradeFromGradebook
Description

Removes a Grade from a Gradebook.

Parametersosid.id.IdgradeId the Id of the Grade
osid.id.IdgradebookId the Id of the Gradebook
ErrorsNOT_FOUND gradeId or gradebookId not found or gradeId not assigned to gradebookId
NULL_ARGUMENT gradeId or gradebookId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodreassignGradeToGradebook
Description

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

Parametersosid.id.IdgradeId the Id of the Grade
osid.id.IdfromGradebookId the Id of the current Gradebook
osid.id.IdtoGradebookId the Id of the destination Gradebook
ErrorsALREADY_EXISTS gradeId already assigned to togradebookId
NOT_FOUND gradeId, fromGradebookId, or toGradebookeId not found or gradeId not mapped to fromGradebookId
NULL_ARGUMENT gradeId, fromGradebookId, or toGradebookId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.