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

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

Adds an existing GradeEntry to a Gradebook.

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

Removes a GradeEntry from a Gradebook.

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

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

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