public interface GradebookFrameworkService
| Modifier and Type | Method and Description |
|---|---|
void |
addGradebook(String uid,
String name)
Creates a new gradebook with the given UID and name
|
void |
deleteGradebook(String uid)
Deletes the gradebook with the given UID, along with all its associated
data.
|
List<GradingScaleDefinition> |
getAvailableGradingScaleDefinitions()
Get all of the available Grading Scales in the system, as shared DTOs.
|
List |
getAvailableGradingScales()
Get all of the available Grading Scales in the system.
|
boolean |
isGradebookDefined(String gradebookUid)
Checks to see whether a gradebook with the given uid exists.
|
void |
saveGradeMappingToGradebook(String scaleUuid,
String gradebookUid)
Adds a new grade scale to an existing gradebook.
|
void |
setAvailableGradingScales(Collection gradingScaleDefinitions) |
void |
setDefaultGradingScale(String uid) |
void |
updateGradeMapping(Long gradeMappingId,
Map<String,Double> gradeMap)
Update a grademapping with new values.
|
void addGradebook(String uid, String name)
uid - The UID used to specify a gradebook and its associated data.
It is the caller's responsibility to ensure that this is
unique within gradebook storage.name - The name of the gradebook, to be used for logging and other
conveniences by the application. This should be the name of
the site or the course. It is only used for convenience, and
does not need to be unique.void deleteGradebook(String uid) throws GradebookNotFoundException
GradebookNotFoundExceptionboolean isGradebookDefined(String gradebookUid)
gradebookUid - The gradebook UID to checkvoid setAvailableGradingScales(Collection gradingScaleDefinitions)
gradingScaleDefinitions - A collection of GradingScaleDefinition beans.void setDefaultGradingScale(String uid)
uid - The UID of the grading scale to use as the default for new gradebooks.List getAvailableGradingScales()
List<GradingScaleDefinition> getAvailableGradingScaleDefinitions()
void saveGradeMappingToGradebook(String scaleUuid, String gradebookUid)
scaleUuid - The uuid of the scale we want to be added to the gradebookgradebookUid - The gradebook with GradeMappings where we will add the grading scale.Copyright © 2003–2018 Sakai Project. All rights reserved.