OSID Logo
OSID Specifications
grading package
Version 3.1.0
Interfaceosid.grading.GradebookColumnGradebookAssignmentSession
Implementsosid.OsidSession
Used Byosid.grading.GradingManager
osid.grading.GradingProxyManager
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
Compliancemandatory This 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.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 gradebook Ids including and under the given gradebook node in which any gradebook column 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.
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.IdgradebookId the Id of the Gradebook
osid.id.IdgradebookColumnId the Id of the GradebokColumn
Returnosid.id.IdList list of assignable gradebook Ids
ErrorsNULL_ARGUMENT gradebookId or gradebookColumnId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodassignGradebookColumnToGradebook
Description

Adds an existing GradebookColumn to a Gradebook.

Parametersosid.id.IdgradebookColumnId the Id of the GradebookColumn
osid.id.IdgradebookId the 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodunassignGradebookColumnFromGradebook
Description

Removes a GradebookColumn from a Gradebook.

Parametersosid.id.IdgradebookColumnId the Id of the GradebookColumn
osid.id.IdgradebookId the 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodreassignGradebookColumnToGradebook
Description

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

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