Grading Open Service Interface Definitions grading version 3.0.0
The Grading OSID defines a service to apply grades or ratings.
Grade Systems
The grade system sessions provide the means to retrievs and manage
GradeSystem
definitions. A GradeSystem
is a fixed set of
Grades
. GradeSystems
may also take the form of a numerical
score as well as a rating based on some system. GradeEntries
belong
to a single GradebookColumn
.
Gradebook Columns
A Gradebook
is represented by a series of GradebookColumns
. A
GradeBookColumn
represents a something to be graded and is joined to
a single GradeSystem
. A GradebookColumn
may be constrained to a
single grader.
Grade Entries
A GradebookColumn
is comprised of a series of GradeEntry
elements. A GradebookColumn
may represent “Assignment 3” while a
GradeEntry
may represent the assignment turned in by a particular
student.
A Grade
can be applied to a GradeEntry
that relates the entry to
a grader and a key Resource
. In the case of a class gradebook, the
key resource represents the student. If there are multiple graders for
the same key resource, each grader gets their own GradebookColumn
.
Gradebooks may also be used to capture ratings about other objects. In
the case where people vote for their favorite assets, the key resource
represents the Asset
.
GradebookColumns
may have a GradebookColumnSummary
entry for
summary results and statistics across all GradeEntries
in the
column.
Gradebook Cataloging
GradebookColumns
are organized into Gradebooks
. Gradebooks
also provide for a federated hierarchy of GradebookColumns
. Simple
reordering of GradebookColumns
can be performed by moving the
GradebookColumn
relative to another. The relative positioning may
reference two GradebookColumns
through the federation.
Sub Packages
The Grading OSID includes several subpackages. The Grading Transform
OSID provides a means of translating one GradeSystem
to another. The
Grading Calculation OSID defines derived GradebookColumns
. The
Grading Batch OSID manages GradeSystems,
GradeEntries,
Gradebooks,
and GradebookColumns
in bulk.
Service Managers¶
Grading Profile¶
-
class
dlkit.services.grading.
GradingProfile
¶ Bases:
dlkit.osid.managers.OsidProfile
The
GradingProfile
describes the interoperability among grading services.-
supports_grade_system_lookup
()¶ Tests if a grade system lookup service is supported.
Returns: true if grade system lookup is supported, false otherwise Return type: boolean
compliance: mandatory – This method must be implemented.
-
supports_grade_system_query
()¶ Tests if a grade system query service is supported.
Returns: true
if grade system query is supported,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
supports_grade_system_admin
()¶ Tests if a grade system administrative service is supported.
Returns: true
if grade system admin is supported,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
supports_grade_entry_lookup
()¶ Tests if a grade entry lookup service is supported.
Returns: true if grade entry lookup is supported, false otherwise Return type: boolean
compliance: mandatory – This method must be implemented.
-
supports_grade_entry_query
()¶ Tests if a grade entry query service is supported.
Returns: true if grade entry query is supported, false otherwise Return type: boolean
compliance: mandatory – This method must be implemented.
-
supports_grade_entry_admin
()¶ Tests if a grade entry administrative service is supported.
Returns: true
if grade entry admin is supported,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
supports_gradebook_column_lookup
()¶ Tests if a gradebook column lookup service is supported.
Returns: true if gradebook column lookup is supported, false otherwise Return type: boolean
compliance: mandatory – This method must be implemented.
-
supports_gradebook_column_query
()¶ Tests if a gradebook column query service is supported.
Returns: true
if grade system query is supported,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
supports_gradebook_column_admin
()¶ Tests if a gradebook column administrative service is supported.
Returns: true
if gradebook column admin is supported,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
supports_gradebook_lookup
()¶ Tests if a gradebook lookup service is supported.
Returns: true
if gradebook lookup is supported,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
supports_gradebook_admin
()¶ Tests if a gradebook administrative service is supported.
Returns: true
if gradebook admin is supported,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
grade_record_types
¶ Gets the supported
Grade
record types.Returns: a list containing the supported Grade
record typesReturn type: osid.type.TypeList
compliance: mandatory – This method must be implemented.
-
grade_system_record_types
¶ Gets the supported
GradeSystem
record types.Returns: a list containing the supported GradeSystem
record typesReturn type: osid.type.TypeList
compliance: mandatory – This method must be implemented.
-
grade_system_search_record_types
¶ Gets the supported
GradeSystem
search record types.Returns: a list containing the supported GradeSystem
search record typesReturn type: osid.type.TypeList
compliance: mandatory – This method must be implemented.
-
grade_entry_record_types
¶ Gets the supported
GradeEntry
record types.Returns: a list containing the supported GradeEntry
record typesReturn type: osid.type.TypeList
compliance: mandatory – This method must be implemented.
-
grade_entry_search_record_types
¶ Gets the supported
GradeEntry
search record types.Returns: a list containing the supported GradeEntry
search record typesReturn type: osid.type.TypeList
compliance: mandatory – This method must be implemented.
-
gradebook_column_record_types
¶ Gets the supported
GradebookColumn
record types.Returns: a list containing the supported GradebookColumn
record typesReturn type: osid.type.TypeList
compliance: mandatory – This method must be implemented.
-
gradebook_column_search_record_types
¶ Gets the supported gradebook column search record types.
Returns: a list containing the supported GradebookColumn
search record typesReturn type: osid.type.TypeList
compliance: mandatory – This method must be implemented.
-
gradebook_column_summary_record_types
¶ Gets the supported
GradebookColumnSummary
record types.Returns: a list containing the supported GradebookColumnSummary
record typesReturn type: osid.type.TypeList
compliance: mandatory – This method must be implemented.
-
gradebook_record_types
¶ Gets the supported
Gradebook
record types.Returns: a list containing the supported Gradebook
record typesReturn type: osid.type.TypeList
compliance: mandatory – This method must be implemented.
-
gradebook_search_record_types
¶ Gets the supported gradebook search record types.
Returns: a list containing the supported Gradebook
search record typesReturn type: osid.type.TypeList
compliance: mandatory – This method must be implemented.
-
Grading Manager¶
-
class
dlkit.services.grading.
GradingManager
(proxy=None)¶ Bases:
dlkit.osid.managers.OsidManager
,dlkit.osid.sessions.OsidSession
,dlkit.services.grading.GradingProfile
The grading manager provides access to grading sessions and provides interoperability tests for various aspects of this service.
The sessions included in this manager are:
GradeSystemLookupSession:
a session to look up grades and grade systemsGradeSystemQuerySession:
a session to query grade systemsNone
GradeSystemSearchSession:
a session to search grade systemsGradeSystemAdminSession:
a session to manage grade systemsGradeSystemNotificationSession
a session for subscribing to new or deleted grades or grade systemsGradeSystemGradebookSession:
a session for retrieving grade system to gradebook mappingsGradeSystemGradebookAssignmentSession:
a session for managing grade system to gradebook mappingsGradeSystemSmartGradebookSession:
a session for managing smart gradebooks of grade systemsGradeEntryLookupSession:
a session to look up grade entriesGradeEntryQuerySession:
a session to query grade entriesNone
GradeEntrySearchSession:
a session to search grade entriesGradeEntryAdminSession:
a session to create, modify and delete grade entriesNone
GradeEntryNotificationSession: a
session to receive messages pertaining to grade entry ```` changesGradebookColumnLookupSession:
a session to look up gradebook columnsGradebookColumnQuerySession:
a session to query gradebook columnsNone
GradebookColumnSearchSession:
a session to search gradebook columnsGradebookColumnAdminSession:
a session to manage gradebook columnsGradebookColumnNotificationSession
a session for subscribing to new or deleted gradebook columnsGradebookColumnGradebookSession:
a session for retrieving gradebook column to gradebook mappingsGradebookColumnGradebookAssignmentSession:
a session for managing gradebook column to gradebook mappingsGradebookColumnSmartGradebookSession:
a session for managing smart gradebooks of gradebook columnsGradebookLookupSession:
a session to lookup gradebooksGradebookQuerySession:
a session to query gradebooksGradebookSearchSession
: a session to search gradebooksGradebookAdminSession
: a session to create, modify and delete gradebooksGradebookNotificationSession
: a session to receive messages pertaining to gradebook changesGradebookHierarchySession:
a session to traverse the gradebook hierarchyGradebookHierarchyDesignSession:
a session to manage the gradebook hierarchy
-
grading_batch_manager
¶ Gets the
GradingBatchManager
.Returns: a GradingBatchManager
Return type: osid.grading.batch.GradingBatchManager
Raise: OperationFailed
– unable to complete requestRaise: Unimplemented
–supports_grading_batch() is false
compliance: optional – This method must be implemented if ``supports_grading_batch()`` is true.
-
grading_calculation_manager
¶ Gets the
GradingCalculationManager
.Returns: a GradingCalculationManager
Return type: osid.grading.calculation.GradingCalculationManager
Raise: OperationFailed
– unable to complete requestRaise: Unimplemented
–supports_grading_calculation() is false
compliance: optional – This method must be implemented if ``supports_grading_calculation()`` is true.
-
grading_transform_manager
¶ Gets the
GradingTransformManager
.Returns: a GradingTransformManager
Return type: osid.grading.transform.GradingTransformManager
Raise: OperationFailed
– unable to complete requestRaise: Unimplemented
–supports_grading_transform() is false
compliance: optional – This method must be implemented if ``supports_grading_transform()`` is true.
Gradebook Column Lookup Methods¶
GradingManager.
gradebook_id
¶Gets the
Gradebook
Id
associated with this session.
Returns: the Gradebook Id
associated with this sessionReturn type: osid.id.Id
compliance: mandatory – This method must be implemented.
GradingManager.
gradebook
¶Gets the
Gradebook
associated with this session.
Returns: the Gradebook
associated with this sessionReturn type: osid.grading.Gradebook
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failurecompliance: mandatory – This method must be implemented.
GradingManager.
can_lookup_gradebook_columns
()¶Tests if this user can perform
GradebookColumn
lookups.A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a
PermissionDenied
. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.
Returns: false
if lookup methods are not authorized,true
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
GradingManager.
use_comparative_gradebook_column_view
()¶The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.
This view is used when greater interoperability is desired at the expense of precision.
compliance: mandatory – This method is must be implemented.
GradingManager.
use_plenary_gradebook_column_view
()¶A complete view of the
GradebookColumn
returns is desired.Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.
compliance: mandatory – This method is must be implemented.
GradingManager.
use_federated_gradebook_view
()¶Federates the view for methods in this session.
A federated view will include gradebook columns in gradebooks which are children of this gradebook in the gradebook hierarchy.
compliance: mandatory – This method is must be implemented.
GradingManager.
use_isolated_gradebook_view
()¶Isolates the view for methods in this session.
An isolated view restricts searches to this gradebook only.
compliance: mandatory – This method is must be implemented.
GradingManager.
get_gradebook_column
(gradebook_column_id)¶Gets the
GradebookColumn
specified by itsId
.In plenary mode, the exact
Id
is found or aNotFound
results. Otherwise, the returnedGradebookColumn
may have a differentId
than requested, such as the case where a duplicateId
was assigned to aGradebookColumn
and retained for compatibility.
Parameters: gradebook_column_id ( osid.id.Id
) –Id
of theGradebookColumn
Returns: the gradebook column Return type: osid.grading.GradebookColumn
Raise: NotFound
–gradebook_column_id
not foundRaise: NullArgument
–gradebook_column_id
isnull
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failurecompliance: mandatory – This method is must be implemented.
GradingManager.
get_gradebook_columns_by_ids
(gradebook_column_ids)¶Gets a
GradebookColumnList
corresponding to the givenIdList
.In plenary mode, the returned list contains all of the gradebook columns specified in the
Id
list, in the order of the list, including duplicates, or an error results if aId
in the supplied list is not found or inaccessible. Otherwise, inaccessible gradeboook columns may be omitted from the list.
Parameters: gradebook_column_ids ( osid.id.IdList
) – the list ofIds
to retrieveReturns: the returned GradebookColumn
listReturn type: osid.grading.GradebookColumnList
Raise: NotFound
– anId was
not foundRaise: NullArgument
–grade_book_column_ids
isnull
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failurecompliance: mandatory – This method must be implemented.
GradingManager.
get_gradebook_columns_by_genus_type
(gradebook_column_genus_type)¶Gets a
GradebookColumnList
corresponding to the given gradebook column genusType
which does not include gradebook columns of genus types derived from the specifiedType
.In plenary mode, the returned list contains all known gradebook columns or an error results. Otherwise, the returned list may contain only those gradebook columns that are accessible through this session.
Parameters: gradebook_column_genus_type ( osid.type.Type
) – a gradebook column genus typeReturns: the returned GradebookColumn
listReturn type: osid.grading.GradebookColumnList
Raise: NullArgument
–gradebook_column_genus_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failurecompliance: mandatory – This method must be implemented.
GradingManager.
get_gradebook_columns_by_parent_genus_type
(gradebook_column_genus_type)¶Gets a
GradebookColumnList
corresponding to the given gradebook column genusType
and include any additional columns with genus types derived from the specifiedType
.In plenary mode, the returned list contains all known gradebook columns or an error results. Otherwise, the returned list may contain only those gradebook columns that are accessible through this session.
Parameters: gradebook_column_genus_type ( osid.type.Type
) – a gradebook column genus typeReturns: the returned GradebookColumn
listReturn type: osid.grading.GradebookColumnList
Raise: NullArgument
–gradebook_column_genus_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failurecompliance: mandatory – This method must be implemented.
GradingManager.
get_gradebook_columns_by_record_type
(gradebook_column_record_type)¶Gets a
GradebookColumnList
containing the given gradebook column recordType
.In plenary mode, the returned list contains all known gradebook columns or an error results. Otherwise, the returned list may contain only those gradebook columns that are accessible through this session.
Parameters: gradebook_column_record_type ( osid.type.Type
) – a gradebook column record typeReturns: the returned GradebookColumn
listReturn type: osid.grading.GradebookColumnList
Raise: NullArgument
–gradebook_column_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failurecompliance: mandatory – This method must be implemented.
GradingManager.
gradebook_columns
¶Gets all gradebook columns.
In plenary mode, the returned list contains all known gradebook columns or an error results. Otherwise, the returned list may contain only those gradebook columns that are accessible through this session.
Returns: a GradebookColumn
Return type: osid.grading.GradebookColumnList
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failurecompliance: mandatory – This method must be implemented.
GradingManager.
supports_summary
()¶Tests if a summary entry is available.
Returns: true
if a summary entry is available,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
GradingManager.
get_gradebook_column_summary
(gradebook_column_id)¶Gets the
GradebookColumnSummary
for summary results.
Parameters: gradebook_column_id ( osid.id.Id
) –Id
of theGradebookColumn
Returns: the gradebook column summary Return type: osid.grading.GradebookColumnSummary
Raise: NotFound
–gradebook_column_id
is not foundRaise: NullArgument
–gradebook_column_id
isnull
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failureRaise: Unimplemented
–has_summary()
isfalse
compliance: mandatory – This method is must be implemented.
Gradebook Column Query Methods¶
GradingManager.
gradebook_id
Gets the
Gradebook
Id
associated with this session.
Returns: the Gradebook Id
associated with this sessionReturn type: osid.id.Id
compliance: mandatory – This method must be implemented.
GradingManager.
gradebook
Gets the
Gradebook
associated with this session.
Returns: the Gradebook
associated with this sessionReturn type: osid.grading.Gradebook
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failurecompliance: mandatory – This method must be implemented.
GradingManager.
can_search_gradebook_columns
()¶Tests if this user can perform
GradebookColumn
searches.A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a
PermissionDenied
. This is intended as a hint to an application that may opt not to offer search operations to unauthorized users.
Returns: false
if search methods are not authorized,true
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
GradingManager.
use_federated_gradebook_view
()Federates the view for methods in this session.
A federated view will include gradebook columns in gradebooks which are children of this gradebook in the gradebook hierarchy.
compliance: mandatory – This method is must be implemented.
GradingManager.
use_isolated_gradebook_view
()Isolates the view for methods in this session.
An isolated view restricts searches to this gradebook only.
compliance: mandatory – This method is must be implemented.
GradingManager.
gradebook_column_query
¶Gets a gradebook column query.
Returns: the gradebook column Return type: osid.grading.GradebookColumnQuery
compliance: mandatory – This method must be implemented.
GradingManager.
get_gradebook_columns_by_query
(gradebook_column_query)¶Gets a list of gradebook columns matching the given query.
Parameters: gradebook_column_query ( osid.grading.GradebookColumnQuery
) – the gradebook column queryReturns: the returned GradebookColumnList
Return type: osid.grading.GradebookColumnList
Raise: NullArgument
–gradebook_column_query
isnull
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failureRaise: Unsupported
–gradebook_column_query
is not of this servicecompliance: mandatory – This method must be implemented.
Gradebook Column Admin Methods¶
GradingManager.
gradebook_id
Gets the
Gradebook
Id
associated with this session.
Returns: the Gradebook Id
associated with this sessionReturn type: osid.id.Id
compliance: mandatory – This method must be implemented.
GradingManager.
gradebook
Gets the
Gradebook
associated with this session.
Returns: the Gradebook
associated with this sessionReturn type: osid.grading.Gradebook
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failurecompliance: mandatory – This method must be implemented.
GradingManager.
can_create_gradebook_columns
()¶Tests if this user can create gradebook columns.
A return of true does not guarantee successful authorization. A return of false indicates that it is known creating a gradebook column will result in a
PermissionDenied
. This is intended as a hint to an application that may opt not to offer create operations to an unauthorized user.
Returns: false
ifGradebookColumn
creation is not authorized,true
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
GradingManager.
can_create_gradebook_column_with_record_types
(gradebook_column_record_types)¶Tests if this user can create a single
GradebookColumn
using the desired record types.While
GradingManager.getGradebookColumnRecordTypes()
can be used to examine which records are supported, this method tests which record(s) are required for creating a specificGradebookColumn
. Providing an empty array tests if aGradebookColumn
can be created with no records.
Parameters: gradebook_column_record_types ( osid.type.Type[]
) – array of gradebook column record typesReturns: true
ifGradebookColumn
creation using the specified recordTypes
is supported,false
otherwiseReturn type: boolean
Raise: NullArgument
–gradebook_column_record_types
isnull
compliance: mandatory – This method must be implemented.
GradingManager.
get_gradebook_column_form_for_create
(gradebook_column_record_types)¶Gets the gradebook column form for creating new gradebook columns.
A new form should be requested for each create transaction.
Parameters: gradebook_column_record_types ( osid.type.Type[]
) – array of gradebook column record typesReturns: the gradebook column form Return type: osid.grading.GradebookColumnForm
Raise: NullArgument
–gradebook_column_record_types
isnull
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failureRaise: Unsupported
– unable to get form for requested record typescompliance: mandatory – This method must be implemented.
GradingManager.
create_gradebook_column
(gradebook_column_form)¶Creates a new
GradebookColumn
.
Parameters: gradebook_column_form ( osid.grading.GradebookColumnForm
) – the form for thisGradebookColumn
Returns: the new GradebookColumn
Return type: osid.grading.GradebookColumn
Raise: IllegalState
–gradebook_column_form
already used in a create transactionRaise: InvalidArgument
– one or more of the form elements is invalidRaise: NullArgument
–gradebook_column_form
isnull
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failureRaise: Unsupported
–gradebook_column_form
did not originate fromget_gradebook_column_form_for_create()
compliance: mandatory – This method must be implemented.
GradingManager.
can_update_gradebook_columns
()¶Tests if this user can update gradebook columns.
A return of true does not guarantee successful authorization. A return of false indicates that it is known updating a
GradebookColumn
will result in aPermissionDenied
. This is intended as a hint to an application that may opt not to offer update operations to an unauthorized user.
Returns: false
if gradebook column modification is not authorized,true
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
GradingManager.
get_gradebook_column_form_for_update
(gradebook_column_id)¶Gets the gradebook column form for updating an existing gradebook column.
A new gradebook column form should be requested for each update transaction.
Parameters: gradebook_column_id ( osid.id.Id
) – theId
of theGradebookColumn
Returns: the gradebook column form Return type: osid.grading.GradebookColumnForm
Raise: NotFound
–gradebook_column_id
is not foundRaise: NullArgument
–gradebook_column_id
isnull
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failurecompliance: mandatory – This method must be implemented.
GradingManager.
update_gradebook_column
(gradebook_column_form)¶Updates an existing gradebook column.
Parameters: gradebook_column_form ( osid.grading.GradebookColumnForm
) – the form containing the elements to be updatedRaise: IllegalState
–gradebook_column_form
already used in an update transactionRaise: InvalidArgument
– the form contains an invalid valueRaise: NullArgument
–gradebook_column_form
isnull
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failureRaise: Unsupported
–gradebook_column_form
did not originate fromget_gradebook_column_form_for_update()
compliance: mandatory – This method must be implemented.
GradingManager.
sequence_gradebook_columns
(gradebook_column_ids)¶Resequences the gradebook columns.
Parameters: gradebook_column_ids ( osid.id.IdList
) – theIds
of theGradebookColumns
Raise: NullArgument
–gradebook_column_id_list
isnull
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failurecompliance: mandatory – This method must be implemented.
GradingManager.
move_gradebook_column
(front_gradebook_column_id, back_gradebook_column_id)¶Moves a gradebook column in front of another.
Parameters:
- front_gradebook_column_id (
osid.id.Id
) – theId
of aGradebookColumn
- back_gradebook_column_id (
osid.id.Id
) – theId
of aGradebookColumn
Raise:
NotFound
–front_gradebook_column_id or back_gradebook_column_id
is not foundRaise:
NullArgument
–front_gradebook_column_id or back_gradebook_column_id
isnull
Raise:
OperationFailed
– unable to complete requestRaise:
PermissionDenied
– authorization failurecompliance: mandatory – This method must be implemented.
GradingManager.
copy_gradebook_column_entries
(source_gradebook_column_id, target_gradebook_column_id)¶Copies gradebook column entries from one column to another.
If the target grade column grade system differs from the source, the grades in the entries are transformed to the new grade system.
Parameters:
- source_gradebook_column_id (
osid.id.Id
) – theId
of aGradebookColumn
- target_gradebook_column_id (
osid.id.Id
) – theId
of aGradebookColumn
Raise:
NotFound
–source_gradebook_column_id ortarget_gradebook_column_id
is not foundRaise:
NullArgument
–source_gradebook_column_id target_gradebook_column_id
isnull
Raise:
OperationFailed
– unable to complete requestRaise:
PermissionDenied
– authorization failurecompliance: mandatory – This method must be implemented.
GradingManager.
can_delete_gradebook_columns
()¶Tests if this user can delete gradebook columns.
A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting a
GradebookColumn
will result in aPermissionDenied
. This is intended as a hint to an application that may opt not to offer delete operations to an unauthorized user.
Returns: false
ifGradebookColumn
deletion is not authorized,true
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
GradingManager.
delete_gradebook_column
(gradebook_column_id)¶Deletes the
GradebookColumn
identified by the givenId
.
Parameters: gradebook_column_id ( osid.id.Id
) – theId
of theGradebookColumn
to deleteRaise: NotFound
– aGradebookColumn
was not found identified by the givenId
Raise: NullArgument
–gradebook_column_id
isnull
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failurecompliance: mandatory – This method must be implemented.
GradingManager.
can_manage_gradebook_column_aliases
()¶Tests if this user can manage
Id
aliases forGradebookColumns
.A return of true does not guarantee successful authorization. A return of false indicates that it is known changing an alias will result in a
PermissionDenied
. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.
Returns: false
ifGradebookColumn
aliasing is not authorized,true
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
GradingManager.
alias_gradebook_column
(gradebook_column_id, alias_id)¶Adds an
Id
to aGradebookColumn
for the purpose of creating compatibility.The primary
Id
of theGradebookColumn
is determined by the provider. The newId
performs as an alias to the primaryId
. If the alias is a pointer to another gradebook column, it is reassigned to the given gradebook columnId
.
Parameters:
- gradebook_column_id (
osid.id.Id
) – theId
of aGradebookColumn
- alias_id (
osid.id.Id
) – the aliasId
Raise:
AlreadyExists
–alias_id
is already assignedRaise:
NotFound
–gradebook_column_id
not foundRaise:
NullArgument
–gradebook_column_id
oralias_id
isnull
Raise:
OperationFailed
– unable to complete requestRaise:
PermissionDenied
– authorization failurecompliance: mandatory – This method must be implemented.
Gradebook Lookup Methods¶
GradingManager.
can_lookup_gradebooks
()¶Tests if this user can perform
Gradebook
lookups.A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a
PermissionDenied
. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.
Returns: false
if lookup methods are not authorized,true
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
GradingManager.
use_comparative_gradebook_view
()¶The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.
This view is used when greater interoperability is desired at the expense of precision.
compliance: mandatory – This method is must be implemented.
GradingManager.
use_plenary_gradebook_view
()¶A complete view of the
Gradebook
returns is desired.Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.
compliance: mandatory – This method is must be implemented.
GradingManager.
get_gradebook
(gradebook_id)¶Gets the
Gradebook
specified by itsId
.In plenary mode, the exact
Id
is found or aNotFound
results. Otherwise, the returnedGradebook
may have a differentId
than requested, such as the case where a duplicateId
was assigned to aGradebook
and retained for compatility.
Parameters: gradebook_id ( osid.id.Id
) –Id
of theGradebook
Returns: the gradebook Return type: osid.grading.Gradebook
Raise: NotFound
–gradebook_id
not foundRaise: NullArgument
–gradebook_id
isnull
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failurecompliance: mandatory – This method is must be implemented.
GradingManager.
get_gradebooks_by_ids
(gradebook_ids)¶Gets a
GradebookList
corresponding to the givenIdList
.In plenary mode, the returned list contains all of the gradebooks specified in the
Id
list, in the order of the list, including duplicates, or an error results if anId
in the supplied list is not found or inaccessible. Otherwise, inaccessibleGradebook
objects may be omitted from the list and may present the elements in any order including returning a unique set.
Parameters: gradebook_ids ( osid.id.IdList
) – the list ofIds
to retrieveReturns: the returned Gradebook
listReturn type: osid.grading.GradebookList
Raise: NotFound
– anId was
not foundRaise: NullArgument
–gradebook_ids
isnull
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failurecompliance: mandatory – This method must be implemented.
GradingManager.
get_gradebooks_by_genus_type
(gradebook_genus_type)¶Gets a
GradebookList
corresponding to the given gradebook genusType
which does not include gradebooks of types derived from the specifiedType
.In plenary mode, the returned list contains all known gradebooks or an error results. Otherwise, the returned list may contain only those gradebooks that are accessible through this session.
Parameters: gradebook_genus_type ( osid.type.Type
) – a gradebook genus typeReturns: the returned Gradebook
listReturn type: osid.grading.GradebookList
Raise: NullArgument
–gradebook_genus_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failurecompliance: mandatory – This method must be implemented.
GradingManager.
get_gradebooks_by_parent_genus_type
(gradebook_genus_type)¶Gets a
GradebookList
corresponding to the given gradebook genusType
and include any additional gradebooks with genus types derived from the specifiedType
.In plenary mode, the returned list contains all known gradebooks or an error results. Otherwise, the returned list may contain only those gradebooks that are accessible through this session.
Parameters: gradebook_genus_type ( osid.type.Type
) – a gradebook genus typeReturns: the returned Gradebook
listReturn type: osid.grading.GradebookList
Raise: NullArgument
–gradebook_genus_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failurecompliance: mandatory – This method must be implemented.
GradingManager.
get_gradebooks_by_record_type
(gradebook_record_type)¶Gets a
GradebookList
containing the given gradebook recordType
.In plenary mode, the returned list contains all known gradebooks or an error results. Otherwise, the returned list may contain only those gradebooks that are accessible through this session.
Parameters: gradebook_record_type ( osid.type.Type
) – a gradebook record typeReturns: the returned Gradebook
listReturn type: osid.grading.GradebookList
Raise: NullArgument
–gradebook_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failurecompliance: mandatory – This method must be implemented.
GradingManager.
get_gradebooks_by_provider
(resource_id)¶Gets a
GradebookList
for the given provider ````.In plenary mode, the returned list contains all known gradebooks or an error results. Otherwise, the returned list may contain only those gradebooks that are accessible through this session.
Parameters: resource_id ( osid.id.Id
) – a resourceId
Returns: the returned Gradebook
listReturn type: osid.grading.GradebookList
Raise: NullArgument
–resource_id
isnull
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failurecompliance: mandatory – This method must be implemented.
GradingManager.
gradebooks
¶Gets all
Gradebooks
.In plenary mode, the returned list contains all known gradebooks or an error results. Otherwise, the returned list may contain only those gradebooks that are accessible through this session.
Returns: a GradebookList
Return type: osid.grading.GradebookList
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failurecompliance: mandatory – This method must be implemented.
Gradebook Admin Methods¶
GradingManager.
can_create_gradebooks
()¶Tests if this user can create
Gradebooks
.A return of true does not guarantee successful authorization. A return of false indicates that it is known creating a
Gradebook
will result in aPermissionDenied
. This is intended as a hint to an application that may not wish to offer create operations to unauthorized users.
Returns: false
ifGradebook
creation is not authorized,true
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
GradingManager.
can_create_gradebook_with_record_types
(gradebook_record_types)¶Tests if this user can create a single
Gradebook
using the desired record types.While
GradingManager.getGradebookRecordTypes()
can be used to examine which records are supported, this method tests which record(s) are required for creating a specificGradebook
. Providing an empty array tests if aGradebook
can be created with no records.
Parameters: gradebook_record_types ( osid.type.Type[]
) – array of gradebook record typesReturns: true
ifGradebook
creation using the specifiedTypes
is supported,false
otherwiseReturn type: boolean
Raise: NullArgument
–gradebook_record_types
isnull
compliance: mandatory – This method must be implemented.
GradingManager.
get_gradebook_form_for_create
(gradebook_record_types)¶Gets the gradebook form for creating new gradebooks.
A new form should be requested for each create transaction.
Parameters: gradebook_record_types ( osid.type.Type[]
) – array of gradebook record typesReturns: the gradebook form Return type: osid.grading.GradebookForm
Raise: NullArgument
–gradebook_record_types
isnull
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failureRaise: Unsupported
– unable to get form for requested record typescompliance: mandatory – This method must be implemented.
GradingManager.
create_gradebook
(gradebook_form)¶Creates a new
Gradebook
.
Parameters: gradebook_form ( osid.grading.GradebookForm
) – the form for thisGradebook
Returns: the new Gradebook
Return type: osid.grading.Gradebook
Raise: IllegalState
–gradebook_form
already used in a create transactionRaise: InvalidArgument
– one or more of the form elements is invalidRaise: NullArgument
–gradebook_form
isnull
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failureRaise: Unsupported
–gradebook_form
did not originate fromget_gradebook_form_for_create()
compliance: mandatory – This method must be implemented.
GradingManager.
can_update_gradebooks
()¶Tests if this user can update
Gradebooks
.A return of true does not guarantee successful authorization. A return of false indicates that it is known updating a
Gradebook
will result in aPermissionDenied
. This is intended as a hint to an application that may not wish to offer update operations to unauthorized users.
Returns: false
ifGradebook
modification is not authorized,true
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
GradingManager.
get_gradebook_form_for_update
(gradebook_id)¶Gets the gradebook form for updating an existing gradebook.
A new gradebook form should be requested for each update transaction.
Parameters: gradebook_id ( osid.id.Id
) – theId
of theGradebook
Returns: the gradebook form Return type: osid.grading.GradebookForm
Raise: NotFound
–gradebook_id
is not foundRaise: NullArgument
–gradebook_id
isnull
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failurecompliance: mandatory – This method must be implemented.
GradingManager.
update_gradebook
(gradebook_form)¶Updates an existing gradebook.
Parameters: gradebook_form ( osid.grading.GradebookForm
) – the form containing the elements to be updatedRaise: IllegalState
–gradebook_form
already used in an update transactionRaise: InvalidArgument
– the form contains an invalid valueRaise: NullArgument
–gradebook_form
isnull
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failureRaise: Unsupported
–gradebook_form did not originate from get_gradebook_form_for_update()
compliance: mandatory – This method must be implemented.
GradingManager.
can_delete_gradebooks
()¶Tests if this user can delete gradebooks.
A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting a
Gradebook
will result in aPermissionDenied
. This is intended as a hint to an application that may not wish to offer delete operations to unauthorized users.
Returns: false
ifGradebook
deletion is not authorized,true
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
GradingManager.
delete_gradebook
(gradebook_id)¶Deletes a
Gradebook
.
Parameters: gradebook_id ( osid.id.Id
) – theId
of theGradebook
to removeRaise: NotFound
–gradebook_id
not foundRaise: NullArgument
–gradebook_id
isnull
Raise: OperationFailed
– unable to complete requestRaise: PermissionDenied
– authorization failurecompliance: mandatory – This method must be implemented.
GradingManager.
can_manage_gradebook_aliases
()¶Tests if this user can manage
Id
aliases forGradebooks
.A return of true does not guarantee successful authorization. A return of false indicates that it is known changing an alias will result in a
PermissionDenied
. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.
Returns: false
ifGradebook
aliasing is not authorized,true
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
GradingManager.
alias_gradebook
(gradebook_id, alias_id)¶Adds an
Id
to aGradebook
for the purpose of creating compatibility.The primary
Id
of theGradebook
is determined by the provider. The newId
performs as an alias to the primaryId
. If the alias is a pointer to another gradebook, it is reassigned to the given gradebookId
.
Parameters:
- gradebook_id (
osid.id.Id
) – theId
of aGradebook
- alias_id (
osid.id.Id
) – the aliasId
Raise:
AlreadyExists
–alias_id
is already assignedRaise:
NotFound
–gradebook_id
not foundRaise:
NullArgument
–gradebook_id
oralias_id
isnull
Raise:
OperationFailed
– unable to complete requestRaise:
PermissionDenied
– authorization failurecompliance: mandatory – This method must be implemented.