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.OsidProfileThe
GradingProfiledescribes 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: booleancompliance: mandatory – This method must be implemented.
-
supports_grade_system_query()¶ Tests if a grade system query service is supported.
Returns: trueif grade system query is supported,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
supports_grade_system_admin()¶ Tests if a grade system administrative service is supported.
Returns: trueif grade system admin is supported,falseotherwiseReturn type: booleancompliance: 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: booleancompliance: 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: booleancompliance: mandatory – This method must be implemented.
-
supports_grade_entry_admin()¶ Tests if a grade entry administrative service is supported.
Returns: trueif grade entry admin is supported,falseotherwiseReturn type: booleancompliance: 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: booleancompliance: mandatory – This method must be implemented.
-
supports_gradebook_column_query()¶ Tests if a gradebook column query service is supported.
Returns: trueif grade system query is supported,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
supports_gradebook_column_admin()¶ Tests if a gradebook column administrative service is supported.
Returns: trueif gradebook column admin is supported,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
supports_gradebook_lookup()¶ Tests if a gradebook lookup service is supported.
Returns: trueif gradebook lookup is supported,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
supports_gradebook_admin()¶ Tests if a gradebook administrative service is supported.
Returns: trueif gradebook admin is supported,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
-
grade_record_types¶ Gets the supported
Graderecord types.Returns: a list containing the supported Graderecord typesReturn type: osid.type.TypeListcompliance: mandatory – This method must be implemented.
-
grade_system_record_types¶ Gets the supported
GradeSystemrecord types.Returns: a list containing the supported GradeSystemrecord typesReturn type: osid.type.TypeListcompliance: mandatory – This method must be implemented.
-
grade_system_search_record_types¶ Gets the supported
GradeSystemsearch record types.Returns: a list containing the supported GradeSystemsearch record typesReturn type: osid.type.TypeListcompliance: mandatory – This method must be implemented.
-
grade_entry_record_types¶ Gets the supported
GradeEntryrecord types.Returns: a list containing the supported GradeEntryrecord typesReturn type: osid.type.TypeListcompliance: mandatory – This method must be implemented.
-
grade_entry_search_record_types¶ Gets the supported
GradeEntrysearch record types.Returns: a list containing the supported GradeEntrysearch record typesReturn type: osid.type.TypeListcompliance: mandatory – This method must be implemented.
-
gradebook_column_record_types¶ Gets the supported
GradebookColumnrecord types.Returns: a list containing the supported GradebookColumnrecord typesReturn type: osid.type.TypeListcompliance: 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 GradebookColumnsearch record typesReturn type: osid.type.TypeListcompliance: mandatory – This method must be implemented.
-
gradebook_column_summary_record_types¶ Gets the supported
GradebookColumnSummaryrecord types.Returns: a list containing the supported GradebookColumnSummaryrecord typesReturn type: osid.type.TypeListcompliance: mandatory – This method must be implemented.
-
gradebook_record_types¶ Gets the supported
Gradebookrecord types.Returns: a list containing the supported Gradebookrecord typesReturn type: osid.type.TypeListcompliance: mandatory – This method must be implemented.
-
gradebook_search_record_types¶ Gets the supported gradebook search record types.
Returns: a list containing the supported Gradebooksearch record typesReturn type: osid.type.TypeListcompliance: 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.GradingProfileThe 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 systemsNoneGradeSystemSearchSession:a session to search grade systemsGradeSystemAdminSession:a session to manage grade systemsGradeSystemNotificationSessiona 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 entriesNoneGradeEntrySearchSession:a session to search grade entriesGradeEntryAdminSession:a session to create, modify and delete grade entriesNoneGradeEntryNotificationSession: asession to receive messages pertaining to grade entry ```` changesGradebookColumnLookupSession:a session to look up gradebook columnsGradebookColumnQuerySession:a session to query gradebook columnsNoneGradebookColumnSearchSession:a session to search gradebook columnsGradebookColumnAdminSession:a session to manage gradebook columnsGradebookColumnNotificationSessiona 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 GradingBatchManagerReturn type: osid.grading.batch.GradingBatchManagerRaise: OperationFailed– unable to complete requestRaise: Unimplemented–supports_grading_batch() is falsecompliance: optional – This method must be implemented if ``supports_grading_batch()`` is true.
-
grading_calculation_manager¶ Gets the
GradingCalculationManager.Returns: a GradingCalculationManagerReturn type: osid.grading.calculation.GradingCalculationManagerRaise: OperationFailed– unable to complete requestRaise: Unimplemented–supports_grading_calculation() is falsecompliance: optional – This method must be implemented if ``supports_grading_calculation()`` is true.
-
grading_transform_manager¶ Gets the
GradingTransformManager.Returns: a GradingTransformManagerReturn type: osid.grading.transform.GradingTransformManagerRaise: OperationFailed– unable to complete requestRaise: Unimplemented–supports_grading_transform() is falsecompliance: optional – This method must be implemented if ``supports_grading_transform()`` is true.
Gradebook Column Lookup Methods¶
GradingManager.gradebook_id¶Gets the
GradebookIdassociated with this session.
Returns: the Gradebook Idassociated with this sessionReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
GradingManager.gradebook¶Gets the
Gradebookassociated with this session.
Returns: the Gradebookassociated with this sessionReturn type: osid.grading.GradebookRaise: 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
GradebookColumnlookups.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: falseif lookup methods are not authorized,trueotherwiseReturn type: booleancompliance: 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
GradebookColumnreturns 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
GradebookColumnspecified by itsId.In plenary mode, the exact
Idis found or aNotFoundresults. Otherwise, the returnedGradebookColumnmay have a differentIdthan requested, such as the case where a duplicateIdwas assigned to aGradebookColumnand retained for compatibility.
Parameters: gradebook_column_id ( osid.id.Id) –Idof theGradebookColumnReturns: the gradebook column Return type: osid.grading.GradebookColumnRaise: NotFound–gradebook_column_idnot foundRaise: NullArgument–gradebook_column_idisnullRaise: 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
GradebookColumnListcorresponding to the givenIdList.In plenary mode, the returned list contains all of the gradebook columns specified in the
Idlist, in the order of the list, including duplicates, or an error results if aIdin 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 ofIdsto retrieveReturns: the returned GradebookColumnlistReturn type: osid.grading.GradebookColumnListRaise: NotFound– anId wasnot foundRaise: NullArgument–grade_book_column_idsisnullRaise: 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
GradebookColumnListcorresponding to the given gradebook column genusTypewhich 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 GradebookColumnlistReturn type: osid.grading.GradebookColumnListRaise: NullArgument–gradebook_column_genus_typeisnullRaise: 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
GradebookColumnListcorresponding to the given gradebook column genusTypeand 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 GradebookColumnlistReturn type: osid.grading.GradebookColumnListRaise: NullArgument–gradebook_column_genus_typeisnullRaise: 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
GradebookColumnListcontaining 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 GradebookColumnlistReturn type: osid.grading.GradebookColumnListRaise: NullArgument–gradebook_column_record_typeisnullRaise: 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 GradebookColumnReturn type: osid.grading.GradebookColumnListRaise: 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: trueif a summary entry is available,falseotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
GradingManager.get_gradebook_column_summary(gradebook_column_id)¶Gets the
GradebookColumnSummaryfor summary results.
Parameters: gradebook_column_id ( osid.id.Id) –Idof theGradebookColumnReturns: the gradebook column summary Return type: osid.grading.GradebookColumnSummaryRaise: NotFound–gradebook_column_idis not foundRaise: NullArgument–gradebook_column_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failureRaise: Unimplemented–has_summary()isfalsecompliance: mandatory – This method is must be implemented.
Gradebook Column Query Methods¶
GradingManager.gradebook_idGets the
GradebookIdassociated with this session.
Returns: the Gradebook Idassociated with this sessionReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
GradingManager.gradebookGets the
Gradebookassociated with this session.
Returns: the Gradebookassociated with this sessionReturn type: osid.grading.GradebookRaise: 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
GradebookColumnsearches.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: falseif search methods are not authorized,trueotherwiseReturn type: booleancompliance: 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.GradebookColumnQuerycompliance: 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 GradebookColumnListReturn type: osid.grading.GradebookColumnListRaise: NullArgument–gradebook_column_queryisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failureRaise: Unsupported–gradebook_column_queryis not of this servicecompliance: mandatory – This method must be implemented.
Gradebook Column Admin Methods¶
GradingManager.gradebook_idGets the
GradebookIdassociated with this session.
Returns: the Gradebook Idassociated with this sessionReturn type: osid.id.Idcompliance: mandatory – This method must be implemented.
GradingManager.gradebookGets the
Gradebookassociated with this session.
Returns: the Gradebookassociated with this sessionReturn type: osid.grading.GradebookRaise: 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: falseifGradebookColumncreation is not authorized,trueotherwiseReturn type: booleancompliance: 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
GradebookColumnusing 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 aGradebookColumncan be created with no records.
Parameters: gradebook_column_record_types ( osid.type.Type[]) – array of gradebook column record typesReturns: trueifGradebookColumncreation using the specified recordTypesis supported,falseotherwiseReturn type: booleanRaise: NullArgument–gradebook_column_record_typesisnullcompliance: 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.GradebookColumnFormRaise: NullArgument–gradebook_column_record_typesisnullRaise: 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 thisGradebookColumnReturns: the new GradebookColumnReturn type: osid.grading.GradebookColumnRaise: IllegalState–gradebook_column_formalready used in a create transactionRaise: InvalidArgument– one or more of the form elements is invalidRaise: NullArgument–gradebook_column_formisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failureRaise: Unsupported–gradebook_column_formdid 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
GradebookColumnwill 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: falseif gradebook column modification is not authorized,trueotherwiseReturn type: booleancompliance: 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) – theIdof theGradebookColumnReturns: the gradebook column form Return type: osid.grading.GradebookColumnFormRaise: NotFound–gradebook_column_idis not foundRaise: NullArgument–gradebook_column_idisnullRaise: 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_formalready used in an update transactionRaise: InvalidArgument– the form contains an invalid valueRaise: NullArgument–gradebook_column_formisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failureRaise: Unsupported–gradebook_column_formdid 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) – theIdsof theGradebookColumnsRaise: NullArgument–gradebook_column_id_listisnullRaise: 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) – theIdof aGradebookColumn- back_gradebook_column_id (
osid.id.Id) – theIdof aGradebookColumnRaise:
NotFound–front_gradebook_column_id or back_gradebook_column_idis not foundRaise:
NullArgument–front_gradebook_column_id or back_gradebook_column_idisnullRaise:
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) – theIdof aGradebookColumn- target_gradebook_column_id (
osid.id.Id) – theIdof aGradebookColumnRaise:
NotFound–source_gradebook_column_id ortarget_gradebook_column_idis not foundRaise:
NullArgument–source_gradebook_column_id target_gradebook_column_idisnullRaise:
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
GradebookColumnwill 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: falseifGradebookColumndeletion is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
GradingManager.delete_gradebook_column(gradebook_column_id)¶Deletes the
GradebookColumnidentified by the givenId.
Parameters: gradebook_column_id ( osid.id.Id) – theIdof theGradebookColumnto deleteRaise: NotFound– aGradebookColumnwas not found identified by the givenIdRaise: NullArgument–gradebook_column_idisnullRaise: 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
Idaliases 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: falseifGradebookColumnaliasing is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
GradingManager.alias_gradebook_column(gradebook_column_id, alias_id)¶Adds an
Idto aGradebookColumnfor the purpose of creating compatibility.The primary
Idof theGradebookColumnis determined by the provider. The newIdperforms 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) – theIdof aGradebookColumn- alias_id (
osid.id.Id) – the aliasIdRaise:
AlreadyExists–alias_idis already assignedRaise:
NotFound–gradebook_column_idnot foundRaise:
NullArgument–gradebook_column_idoralias_idisnullRaise:
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
Gradebooklookups.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: falseif lookup methods are not authorized,trueotherwiseReturn type: booleancompliance: 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
Gradebookreturns 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
Gradebookspecified by itsId.In plenary mode, the exact
Idis found or aNotFoundresults. Otherwise, the returnedGradebookmay have a differentIdthan requested, such as the case where a duplicateIdwas assigned to aGradebookand retained for compatility.
Parameters: gradebook_id ( osid.id.Id) –Idof theGradebookReturns: the gradebook Return type: osid.grading.GradebookRaise: NotFound–gradebook_idnot foundRaise: NullArgument–gradebook_idisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method is must be implemented.
GradingManager.get_gradebooks_by_ids(gradebook_ids)¶Gets a
GradebookListcorresponding to the givenIdList.In plenary mode, the returned list contains all of the gradebooks specified in the
Idlist, in the order of the list, including duplicates, or an error results if anIdin the supplied list is not found or inaccessible. Otherwise, inaccessibleGradebookobjects 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 ofIdsto retrieveReturns: the returned GradebooklistReturn type: osid.grading.GradebookListRaise: NotFound– anId wasnot foundRaise: NullArgument–gradebook_idsisnullRaise: 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
GradebookListcorresponding to the given gradebook genusTypewhich 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 GradebooklistReturn type: osid.grading.GradebookListRaise: NullArgument–gradebook_genus_typeisnullRaise: 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
GradebookListcorresponding to the given gradebook genusTypeand 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 GradebooklistReturn type: osid.grading.GradebookListRaise: NullArgument–gradebook_genus_typeisnullRaise: 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
GradebookListcontaining 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 GradebooklistReturn type: osid.grading.GradebookListRaise: NullArgument–gradebook_record_typeisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.
GradingManager.get_gradebooks_by_provider(resource_id)¶Gets a
GradebookListfor 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 resourceIdReturns: the returned GradebooklistReturn type: osid.grading.GradebookListRaise: NullArgument–resource_idisnullRaise: 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 GradebookListReturn type: osid.grading.GradebookListRaise: 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
Gradebookwill result in aPermissionDenied. This is intended as a hint to an application that may not wish to offer create operations to unauthorized users.
Returns: falseifGradebookcreation is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
GradingManager.can_create_gradebook_with_record_types(gradebook_record_types)¶Tests if this user can create a single
Gradebookusing 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 aGradebookcan be created with no records.
Parameters: gradebook_record_types ( osid.type.Type[]) – array of gradebook record typesReturns: trueifGradebookcreation using the specifiedTypesis supported,falseotherwiseReturn type: booleanRaise: NullArgument–gradebook_record_typesisnullcompliance: 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.GradebookFormRaise: NullArgument–gradebook_record_typesisnullRaise: 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 thisGradebookReturns: the new GradebookReturn type: osid.grading.GradebookRaise: IllegalState–gradebook_formalready used in a create transactionRaise: InvalidArgument– one or more of the form elements is invalidRaise: NullArgument–gradebook_formisnullRaise: OperationFailed– unable to complete requestRaise: PermissionDenied– authorization failureRaise: Unsupported–gradebook_formdid 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
Gradebookwill result in aPermissionDenied. This is intended as a hint to an application that may not wish to offer update operations to unauthorized users.
Returns: falseifGradebookmodification is not authorized,trueotherwiseReturn type: booleancompliance: 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) – theIdof theGradebookReturns: the gradebook form Return type: osid.grading.GradebookFormRaise: NotFound–gradebook_idis not foundRaise: NullArgument–gradebook_idisnullRaise: 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_formalready used in an update transactionRaise: InvalidArgument– the form contains an invalid valueRaise: NullArgument–gradebook_formisnullRaise: 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
Gradebookwill result in aPermissionDenied. This is intended as a hint to an application that may not wish to offer delete operations to unauthorized users.
Returns: falseifGradebookdeletion is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
GradingManager.delete_gradebook(gradebook_id)¶Deletes a
Gradebook.
Parameters: gradebook_id ( osid.id.Id) – theIdof theGradebookto removeRaise: NotFound–gradebook_idnot foundRaise: NullArgument–gradebook_idisnullRaise: 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
Idaliases 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: falseifGradebookaliasing is not authorized,trueotherwiseReturn type: booleancompliance: mandatory – This method must be implemented.
GradingManager.alias_gradebook(gradebook_id, alias_id)¶Adds an
Idto aGradebookfor the purpose of creating compatibility.The primary
Idof theGradebookis determined by the provider. The newIdperforms 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) – theIdof aGradebook- alias_id (
osid.id.Id) – the aliasIdRaise:
AlreadyExists–alias_idis already assignedRaise:
NotFound–gradebook_idnot foundRaise:
NullArgument–gradebook_idoralias_idisnullRaise:
OperationFailed– unable to complete requestRaise:
PermissionDenied– authorization failurecompliance: mandatory – This method must be implemented.