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

This session provides methods to re-assign gradebook columns to Gradebooks. A GradebookColumn may map to multiple Gradebooks and removing the last reference to a GradebookColumn 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 GradebookColumn to another Gradebook is not a copy operation (eg: does not change its Id ).

MethodcanAssignGradebookColumns
Description

Tests if this user can alter gradebook column/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
CompliancemandatoryThis method must be implemented.
MethodcanAssignGradebookColumnsToGradebook
Description

Tests if this user can alter gradebook column/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
Returnboolean false if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENT gradebookId is null
CompliancemandatoryThis method must be implemented.
MethodgetAssignableGradebookIds
Description

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

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

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

Parametersosid.id.IdgradebookIdthe Id of the Gradebook
osid.id.IdgradebookColumnIdthe Id of the GradebokColumn
Returnosid.id.IdListlist of assignable gradebook Ids
ErrorsNULL_ARGUMENT gradebookId or gradebookColumnId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodassignGradebookColumnToGradebook
Description

Adds an existing GradebookColumn to a Gradebook.

Parametersosid.id.IdgradebookColumnIdthe Id of the GradebookColumn
osid.id.IdgradebookIdthe Id of the Gradebook
ErrorsALREADY_EXISTS gradebookColumnId is already assigned to gradebookId
NOT_FOUND gradebookColumnId or gradebookId not found
NULL_ARGUMENT gradebookColumnId or gradebookId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignGradebookColumnFromGradebook
Description

Removes a GradebookColumn from a Gradebook.

Parametersosid.id.IdgradebookColumnIdthe Id of the GradebookColumn
osid.id.IdgradebookIdthe Id of the Gradebook
ErrorsNOT_FOUND gradebookColumnId or gradebookId not found or gradebookColumnId not assigned to gradebookId
NULL_ARGUMENT gradebookColumnId or gradebookId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.