public interface GradebookManager
Modifier and Type | Method and Description |
---|---|
Long |
addPermission(Long gradebookId,
String userId,
String function,
Long categoryId,
String groupId)
Add a permission combination for a user.
|
void |
addToCategoryResultMap(Map categoryResultMap,
List categories,
Map gradeRecordMap,
Map enrollmentMap) |
void |
addToGradeRecordMap(Map gradeRecordMap,
List gradeRecords) |
void |
addToGradeRecordMap(Map gradeRecordMap,
List gradeRecords,
Map studentIdItemIdFunctionMap)
Adds student grade records to map but takes into account grader permissions
passed as studentIdItemIdFunctionMap.
|
void |
applyDropScores(Collection<AssignmentGradeRecord> gradeRecords) |
boolean |
checkStuendsNotSubmitted(Gradebook gradebook)
Check if there's any students that haven't submit their assignment(s) - null value for points or
AssignmentGradeRecord doesn't exist for student(s).
|
boolean |
checkValidName(Long gradebookId,
GradebookAssignment assignment)
Check if the assignment's name is valid to add or not.
|
void |
convertGradePointsForUpdatedTotalPoints(Gradebook gradebook,
GradebookAssignment assignment,
Double newTotal,
List studentUids)
Update grade points in DB for assignment when total point is changed by users for grade_type of GRADE_TYPE_PERCENTAGE.
|
void |
convertGradingEventsConverted(GradebookAssignment assign,
GradingEvents events,
List studentUids,
int grade_type)
Convert grading events to percentage or letter value depending upon grade_type
|
void |
convertGradingEventsConvertedForStudent(Gradebook gradebook,
Map gradableObjectEventListMap,
int grade_type)
Convert grading events to percentage or letter value depending upon grade_type
|
Long |
createAssignment(Long gradebookId,
String name,
Double points,
Date dueDate,
Boolean isNotCounted,
Boolean isReleased,
Boolean isExtraCredit)
Add a new assignment to a gradebook
|
Long |
createAssignmentForCategory(Long gradebookId,
Long categoryId,
String name,
Double points,
Date dueDate,
Boolean isNotCounted,
Boolean isReleased,
Boolean isExtraCredit)
Add a new assignment to a category
|
void |
createAssignments(Long gradebookId,
List assignList)
Add a list of assignments.
|
Long |
createCategory(Long gradebookId,
String name,
Double weight,
Integer drop_lowest,
Integer dropHighest,
Integer keepHighest,
Boolean is_extra_credit)
method to create a category for a gradebook
|
void |
createDefaultLetterGradePercentMapping(Map<String,Double> gradeMap)
Create the default letter grading percentage mappings.
|
void |
createOrUpdateDefaultLetterGradePercentMapping(Map gradeMap)
Create or update the default letter grading percentage mappings.
|
Long |
createSpreadsheet(Long gradebookId,
String name,
String creator,
Date dateCreated,
String content)
create a net spreadsheet
|
Long |
createUngradedAssignment(Long gradebookId,
String name,
Date dueDate,
Boolean isNotCounted,
Boolean isReleased)
Add a new ungraded assignment to a gradebook
|
Long |
createUngradedAssignmentForCategory(Long gradebookId,
Long categoryId,
String name,
Date dueDate,
Boolean isNotCounted,
Boolean isReleased)
Add a new ungraded assignment to a category
|
void |
deletePermission(Permission perm)
Delete permission.
|
void |
fillInZeroForNullGradeRecords(Gradebook gradebook)
Insert AssignmentGradeRecord with point of 0 for students that don't have a record
for counted assignments.
|
List |
getAllAssignmentGradeRecords(Long gradebookId,
Collection studentUids)
Gets all grade records that belong to a collection of enrollments in a
gradebook.
|
List |
getAllAssignmentGradeRecordsConverted(Long gradebookId,
Collection studentUids)
Gets all grade records that belong to a collection of enrollments in a gradebook and
converts the grade returned based upon the grade entry type.
|
GradebookAssignment |
getAssignment(Long assignmentId)
Fetches an assignment
|
AssignmentGradeRecord |
getAssignmentGradeRecordById(Long id)
Get an assignment grade record by id
|
AssignmentGradeRecord |
getAssignmentGradeRecordForAssignmentForStudent(GradebookAssignment assignment,
String studentUid)
Get an assignment grade record by assignment and student
|
List |
getAssignmentGradeRecords(GradebookAssignment assignment,
Collection studentUids)
Get all assignment score records for the given set of student UIDs.
|
List |
getAssignmentGradeRecordsConverted(GradebookAssignment assignment,
Collection studentUids)
Get all assignment score records for the given set of student UIDs.
|
List |
getAssignments(Long gradebookId)
Convenience method to get assignments with the default sort ordering
|
List |
getAssignments(Long gradebookId,
String sortBy,
boolean ascending)
Fetches a List of Assignments, but does not populate non-persistent
fields.
|
List |
getAssignmentsAndCourseGradeWithStats(Long gradebookId,
String sortBy,
boolean ascending)
Same as the other getAssignmentsWithStats except for tacking the
CourseGrade (with statistics) at the end of the list.
|
List |
getAssignmentsCategoriesAndCourseGradeWithStats(Long gradebookId,
String assignmentSort,
boolean assignAscending,
String categorySort,
boolean categoryAscending) |
List |
getAssignmentsForCategory(Long categoryId)
method to get all assignments for a category
|
List |
getAssignmentsWithNoCategory(Long gradebookId,
String assignmentSort,
boolean assignAscending)
Get all assignments with no categories
|
List |
getAssignmentsWithNoCategoryWithStats(Long gradebookId,
String assignmentSort,
boolean assignAscending)
Get all assignments with no categories and with their stats
|
List |
getAssignmentsWithStats(Long gradebookId,
String sortBy,
boolean ascending)
Fetches a List of Assignments for a given gradebook, and populates the
Assignments with all of the statistics fields available in the GradebookAssignment
object.
|
GradebookAssignment |
getAssignmentWithStats(Long assignmentId)
Fetches an assignment and populates its non-persistent statistics
fields.
|
List |
getCategories(Long gradebookId)
method to get all categories for a gradebook
|
List |
getCategoriesWithAssignments(Long gradebookId) |
List |
getCategoriesWithStats(Long gradebookId,
String assignmentSort,
boolean assignAscending,
String categorySort,
boolean categoryAscending)
Get all categories with stats
|
List |
getCategoriesWithStats(Long gradebookId,
String assignmentSort,
boolean assignAscending,
String categorySort,
boolean categoryAscending,
boolean includeDroppedScores)
Get all categories with stats
|
List |
getCategoriesWithStats(Long gradebookId,
String assignmentSort,
boolean assignAscending,
String categorySort,
boolean categoryAscending,
boolean includeDroppedScores,
Set studentUids)
Get all categories with stats
|
Category |
getCategory(Long categoryId)
Fetch a category
|
Comment |
getCommentById(Long id)
Get a comment by id
|
List |
getComments(GradebookAssignment assignment,
Collection studentIds) |
CourseGrade |
getCourseGrade(Long gradebookId)
Fetches the course grade for a gradebook as found in the database.
|
LetterGradePercentMapping |
getDefaultLetterGradePercentMapping()
Get the default letter grading percentage mappings.
|
Gradebook |
getGradebook(Long id)
Fetches a gradebook based on its surrogate key
|
Gradebook |
getGradebook(String uid)
Fetches a gradebook based on its unique string id
|
String |
getGradebookUid(Long id)
Internal services use a Long ID to identify a gradebook.
|
Gradebook |
getGradebookWithGradeMappings(Long id) |
GradingEvents |
getGradingEvents(GradableObject gradableObject,
Collection studentUids)
Gets the grading events for the enrollments on the given gradable object.
|
Map |
getGradingEventsForStudent(String studentId,
Collection gradableObjects)
Gets the grading events for the given student for the given gradableObjects
|
LetterGradePercentMapping |
getLetterGradePercentMapping(Gradebook gradebook)
Get letter grading percentage mappings for a gradebook.
|
List |
getPermissionsForGB(Long gradebookId)
Get all permissions for gradebook.
|
List |
getPermissionsForGBForCategoryIds(Long gradebookId,
List cateIds)
Get all permissions for a given list of category Ids
|
List |
getPermissionsForUser(Long gradebookId,
String userId)
Get permissions for a user.
|
List |
getPermissionsForUserAnyCategory(Long gradebookId,
String userId)
Get permission for user when the user can grade/view "any" category.
|
List |
getPermissionsForUserAnyGroup(Long gradebookId,
String userId)
Get permission for user when the user can grade/view "any" group.
|
List |
getPermissionsForUserAnyGroupAnyCategory(Long gradebookId,
String userId)
Get permission for user when the user can grade/view "any" group for any catetory.
|
List |
getPermissionsForUserAnyGroupForCategory(Long gradebookId,
String userId,
List cateIds)
Get permission for user when the user can grade/view "any" group for certain catetories.
|
List |
getPermissionsForUserForCategory(Long gradebookId,
String userId,
List cateIds)
Get permissions for a user for certain categories.
|
List |
getPermissionsForUserForGoupsAnyCategory(Long gradebookId,
String userId,
List groupIds)
Get permission for user when the user can grade/view "any" category for certain groups.
|
List |
getPermissionsForUserForGroup(Long gradebookId,
String userId,
List groupIds)
Get permission for user when the user can grade/view for certain groups.
|
List |
getPointsEarnedCourseGradeRecords(CourseGrade courseGrade,
Collection studentUids)
Get all course grade records (with autocalculated fields) for the given
gradebook and the given set of student UIDs
|
List<CourseGradeRecord> |
getPointsEarnedCourseGradeRecords(CourseGrade courseGrade,
Collection studentUids,
Collection assignments,
Map scoreMap) |
CourseGradeRecord |
getPointsEarnedCourseGradeRecords(CourseGrade courseGrade,
String studentUid)
Get one course grade record (with autocalculated fields) for the given
gradebook and the given student UID
|
List<CourseGradeRecord> |
getPointsEarnedCourseGradeRecordsWithStats(CourseGrade courseGrade,
Collection studentUids)
As a side-effect, this version of the method calculates the mean course grade.
|
Spreadsheet |
getSpreadsheet(Long spreadsheetId)
Fetches a spreadsheet that has been saved
|
List |
getSpreadsheets(Long gradebookId) |
List |
getStudentAssignmentComments(String studentId,
Long gradebookId)
method to get comments for a assignments for a student in a gradebook
|
List |
getStudentGradeRecords(Long gradebookId,
String studentId)
Gets all grade records for a single student in a single gradebook,
not including the course grade.
|
List |
getStudentGradeRecordsConverted(Long gradebookId,
String studentId)
Get all assignment score records for the given student UID.
|
double |
getTotalPoints(Long gradebookId) |
double |
getTotalPointsInternal(Gradebook gradebook,
List categories,
String studentId,
List<AssignmentGradeRecord> studentGradeRecs,
List<GradebookAssignment> countedAssigns,
boolean literalTotal) |
boolean |
isEnteredAssignmentScores(Long assignmentId)
Gets whether scores have been entered for the given assignment.
|
boolean |
isExplicitlyEnteredCourseGradeRecords(Long gradebookId)
Gets whether there are explicitly entered course grade records in a gradebook.
|
void |
removeAssignment(Long assignmentId)
Removes an assignment from a gradebook.
|
void |
removeCategory(Long categoryId)
remove category from gradebook
|
void |
removeSpreadsheet(Long spreadsheetid) |
void |
saveOrUpdateLetterGradePercentMapping(Map<String,Double> gradeMap,
Gradebook gradebook)
Create letter grading percentage mappings for a gradebook.
|
void |
updateAssignment(GradebookAssignment assignment)
Updates an existing assignment
|
Set |
updateAssignmentGradeRecords(GradebookAssignment assignment,
Collection gradeRecords)
Updates the grade records in the GradeRecordSet.
|
Set |
updateAssignmentGradeRecords(GradebookAssignment assignment,
Collection gradeRecords,
int grade_type)
Updates the grade records in the GradeRecordSet.
|
Set |
updateAssignmentGradesAndComments(GradebookAssignment assignment,
Collection gradeRecords,
Collection comments) |
void |
updateCategory(Category category)
Updates an existing category
|
void |
updateCategoryAndAssignmentsPointsPossible(Long gradebookId,
Category category) |
void |
updateComments(Collection comments) |
void |
updateCourseGradeRecords(CourseGrade courseGrade,
Collection gradeRecords)
Updates the grade records for the keys (student IDs) in the studentsToPoints map.
|
void |
updateGradebook(Gradebook gradebook)
Updates a gradebook's representation in persistence.
|
void |
updatePermission(Collection perms)
Update permissions.
|
void |
updatePermission(Permission perm)
Update permission.
|
Set |
updateStudentGradeRecords(Collection gradeRecords,
int grade_type,
String studentId)
Updates the grade records in the GradeRecordSet for a student.
|
boolean |
validateCategoryWeighting(Long gradebookId)
Valicates the weightings for the gradebook.
|
void updateGradebook(Gradebook gradebook) throws StaleObjectModificationException
gradebook
- The gradebook to updateStaleObjectModificationException
Gradebook getGradebook(Long id)
id
- The ID of the gradebookString getGradebookUid(Long id)
Gradebook getGradebook(String uid) throws GradebookNotFoundException
uid
- The UID of the gradebookGradebookNotFoundException
void removeAssignment(Long assignmentId) throws StaleObjectModificationException
assignmentId
- The assignment idStaleObjectModificationException
AssignmentGradeRecord getAssignmentGradeRecordById(Long id)
assignmentGradeRecordId
- Comment getCommentById(Long id)
commentId
- AssignmentGradeRecord getAssignmentGradeRecordForAssignmentForStudent(GradebookAssignment assignment, String studentUid)
=
- assignment=
- studentUidList getAssignmentGradeRecords(GradebookAssignment assignment, Collection studentUids)
assignment
- studentUids
- CourseGradeRecord getPointsEarnedCourseGradeRecords(CourseGrade courseGrade, String studentUid)
gradebookId
- studentUid
- List getPointsEarnedCourseGradeRecords(CourseGrade courseGrade, Collection studentUids)
gradebookId
- studentUids
- List<CourseGradeRecord> getPointsEarnedCourseGradeRecordsWithStats(CourseGrade courseGrade, Collection studentUids)
courseGrade
- This input argument is modified to include statistical informationstudentUids
- List<CourseGradeRecord> getPointsEarnedCourseGradeRecords(CourseGrade courseGrade, Collection studentUids, Collection assignments, Map scoreMap)
void addToGradeRecordMap(Map gradeRecordMap, List gradeRecords, Map studentIdItemIdFunctionMap)
gradeRecordMap
- gradeRecords
- studentIdItemIdFunctionMap
- Map of studentId to Map of Item to function (grade/view)void addToCategoryResultMap(Map categoryResultMap, List categories, Map gradeRecordMap, Map enrollmentMap)
List getAllAssignmentGradeRecords(Long gradebookId, Collection studentUids)
gradebookId
- studentUids
- List getAllAssignmentGradeRecordsConverted(Long gradebookId, Collection studentUids)
gradebookId
- studentUids
- boolean isExplicitlyEnteredCourseGradeRecords(Long gradebookId)
gradebookId
- The gradebookboolean isEnteredAssignmentScores(Long assignmentId)
assignmentId
- The assignmentSet updateAssignmentGradeRecords(GradebookAssignment assignment, Collection gradeRecords) throws StaleObjectModificationException
StaleObjectModificationException
Set updateAssignmentGradesAndComments(GradebookAssignment assignment, Collection gradeRecords, Collection comments) throws StaleObjectModificationException
StaleObjectModificationException
void updateComments(Collection comments) throws StaleObjectModificationException
StaleObjectModificationException
void updateCourseGradeRecords(CourseGrade courseGrade, Collection gradeRecords) throws StaleObjectModificationException
studentsToPoints
- A Map of student IDs to gradesStaleObjectModificationException
List getStudentGradeRecords(Long gradebookId, String studentId)
gradebookId
- The gradebook idstudentId
- The unique student identifierList getStudentGradeRecordsConverted(Long gradebookId, String studentId)
gradebookId
- studentId
- GradingEvents getGradingEvents(GradableObject gradableObject, Collection studentUids)
gradableObject
- enrollments
- Map getGradingEventsForStudent(String studentId, Collection gradableObjects)
studentId
- gradableObjects
- List getAssignments(Long gradebookId, String sortBy, boolean ascending)
gradebookId
- The gradebook IDsortBy
- The field by which to sort the list.List getAssignments(Long gradebookId)
gradebookId
- The gradebook IDList getAssignmentsWithStats(Long gradebookId, String sortBy, boolean ascending)
gradebookId
- The gradebook IDstudentUids
- The current enrollment list to filter dropped students
from the calculationsortBy
- The field by which to sort the list.List getAssignmentsAndCourseGradeWithStats(Long gradebookId, String sortBy, boolean ascending)
GradebookAssignment getAssignment(Long assignmentId)
assignmentId
- The assignment IDGradebookAssignment getAssignmentWithStats(Long assignmentId)
assignmentId
- The assignment IDstudentUids
- The current enrollment list to filter dropped students
from the calculationLong createAssignment(Long gradebookId, String name, Double points, Date dueDate, Boolean isNotCounted, Boolean isReleased, Boolean isExtraCredit) throws ConflictingAssignmentNameException, StaleObjectModificationException
gradebookId
- The gradebook ID to which this new assignment belongsname
- The assignment's name (must be unique in the gradebook and not be null)points
- The number of points possible for this assignment (must not be null)dueDate
- The due date for the assignment (optional)isNotCounted
- True if the assignment should not count towards the final course grade (optional)isReleased
- True if the assignment should be release/ or visble to studentsisExtraCredit
- True if the assignment is for extra creditConflictingAssignmentNameException
StaleObjectModificationException
void updateAssignment(GradebookAssignment assignment) throws ConflictingAssignmentNameException, StaleObjectModificationException
CourseGrade getCourseGrade(Long gradebookId)
gradebookId
- The gradebook iddouble getTotalPoints(Long gradebookId)
double getTotalPointsInternal(Gradebook gradebook, List categories, String studentId, List<AssignmentGradeRecord> studentGradeRecs, List<GradebookAssignment> countedAssigns, boolean literalTotal)
Spreadsheet getSpreadsheet(Long spreadsheetId)
spreadsheetId
- List getSpreadsheets(Long gradebookId)
gradebookId
- void removeSpreadsheet(Long spreadsheetid) throws StaleObjectModificationException
spreadsheetid
- StaleObjectModificationException
Long createSpreadsheet(Long gradebookId, String name, String creator, Date dateCreated, String content) throws ConflictingSpreadsheetNameException, StaleObjectModificationException
gradebookId
- name
- creator
- dateCreated
- content
- ConflictingSpreadsheetNameException
- StaleObjectModificationExceptionStaleObjectModificationException
List getComments(GradebookAssignment assignment, Collection studentIds)
assignment
- studentIds
- List getStudentAssignmentComments(String studentId, Long gradebookId)
studentId
- gradebookId
- Long createCategory(Long gradebookId, String name, Double weight, Integer drop_lowest, Integer dropHighest, Integer keepHighest, Boolean is_extra_credit) throws ConflictingCategoryNameException, StaleObjectModificationException
gradebookId
- name
- weight
- dropLowest
- dropHighest
- keepHighest
- pointValue
- relativeWeight
- is_extra_credit
- ConflictingAssignmentNameException
- StaleObjectModificationExceptionConflictingCategoryNameException
StaleObjectModificationException
List getCategories(Long gradebookId) throws org.hibernate.HibernateException
gradebookId
- org.hibernate.HibernateException
Long createAssignmentForCategory(Long gradebookId, Long categoryId, String name, Double points, Date dueDate, Boolean isNotCounted, Boolean isReleased, Boolean isExtraCredit) throws ConflictingAssignmentNameException, StaleObjectModificationException, IllegalArgumentException
gradebookId
- The gradebook ID to which this new assignment belongscategoryId
- The category ID to which this new assignment belongsname
- The assignment's name (must be unique in the gradebook and not be null)points
- The number of points possible for this assignment (must not be null)dueDate
- The due date for the assignment (optional)isNotCounted
- True if the assignment should not count towards the final course grade (optional)isReleased
- True if the assignment should be release/ or visble to studentsisExtraCredit
- True if the assignment is for extra creditConflictingAssignmentNameException
- StaleObjectModificationException IllegalArgumentExceptionStaleObjectModificationException
IllegalArgumentException
List getAssignmentsForCategory(Long categoryId) throws org.hibernate.HibernateException
categoryId
- org.hibernate.HibernateException
Category getCategory(Long categoryId) throws org.hibernate.HibernateException
categoryId
- The category IDorg.hibernate.HibernateException
void updateCategory(Category category) throws ConflictingCategoryNameException, StaleObjectModificationException
category
- ConflictingCategoryNameException
- StaleObjectModificationExceptionStaleObjectModificationException
void removeCategory(Long categoryId) throws StaleObjectModificationException
categoryId
- StaleObjectModificationException
boolean validateCategoryWeighting(Long gradebookId)
gradebookId
- Set updateAssignmentGradeRecords(GradebookAssignment assignment, Collection gradeRecords, int grade_type)
assignment
- Collection
- gradeRecordsgrade_type
- Set updateStudentGradeRecords(Collection gradeRecords, int grade_type, String studentId)
assignment
- Collection
- gradeRecordsgrade_type
- studentId
- List getAssignmentGradeRecordsConverted(GradebookAssignment assignment, Collection studentUids)
assignment
- studentUids
- List getCategoriesWithStats(Long gradebookId, String assignmentSort, boolean assignAscending, String categorySort, boolean categoryAscending)
gradebookId
- assignmentSort
- assignment sorting stringassignAscending
- assignment sorting ascending/descendingcategorySort
- category sorting stringcategoryAscending
- category sorting ascending/descendingList getCategoriesWithStats(Long gradebookId, String assignmentSort, boolean assignAscending, String categorySort, boolean categoryAscending, boolean includeDroppedScores)
gradebookId
- assignmentSort
- assignment sorting stringassignAscending
- assignment sorting ascending/descendingcategorySort
- category sorting stringcategoryAscending
- category sorting ascending/descendingincludeDroppedScores
- whether or not to include dropped scores in the calculationsList getCategoriesWithStats(Long gradebookId, String assignmentSort, boolean assignAscending, String categorySort, boolean categoryAscending, boolean includeDroppedScores, Set studentUids)
gradebookId
- assignmentSort
- assignment sorting stringassignAscending
- assignment sorting ascending/descendingcategorySort
- category sorting stringcategoryAscending
- category sorting ascending/descendingincludeDroppedScores
- whether or not to include dropped scores in the calculationsstudentUids
- list of students you want the statistics forList getAssignmentsCategoriesAndCourseGradeWithStats(Long gradebookId, String assignmentSort, boolean assignAscending, String categorySort, boolean categoryAscending)
gradebookId
- assignmentSort
- assignAscending
- categorySort
- categoryAscending
- List getCategoriesWithAssignments(Long gradebookId)
gradebookId
- List getAssignmentsWithNoCategory(Long gradebookId, String assignmentSort, boolean assignAscending)
gradebookId
- assignmentSort
- assignment sorting stringassignAscending
- assignment sorting ascending/descendingList getAssignmentsWithNoCategoryWithStats(Long gradebookId, String assignmentSort, boolean assignAscending)
gradebookId
- assignmentSort
- assignment sorting stringassignAscending
- assignment sorting ascending/descendingvoid convertGradingEventsConverted(GradebookAssignment assign, GradingEvents events, List studentUids, int grade_type)
assign
- GradebookAssignmentevents
- GradingEventsstudentUids
- List of student idsgrade_type
- gradebook's grade_typevoid convertGradingEventsConvertedForStudent(Gradebook gradebook, Map gradableObjectEventListMap, int grade_type)
gradebook
- gradableObjectEventListMap
- map of student's gradableObjects to their associated grading eventsgrade_type
- gradebook's grade_typeboolean checkStuendsNotSubmitted(Gradebook gradebook)
gradebook
- void fillInZeroForNullGradeRecords(Gradebook gradebook)
gradebook
- void convertGradePointsForUpdatedTotalPoints(Gradebook gradebook, GradebookAssignment assignment, Double newTotal, List studentUids)
gradebook
- Assignment
- old assignment with old total point valueDouble
- newTotal the old total point for assignmentstudentUids
- List of student uid.LetterGradePercentMapping getDefaultLetterGradePercentMapping()
void createOrUpdateDefaultLetterGradePercentMapping(Map gradeMap)
gradeMap
- void createDefaultLetterGradePercentMapping(Map<String,Double> gradeMap)
gradeMap
- LetterGradePercentMapping getLetterGradePercentMapping(Gradebook gradebook)
gradebook
- void saveOrUpdateLetterGradePercentMapping(Map<String,Double> gradeMap, Gradebook gradebook)
gradeMap
- letter grade percentage mapgradebook
- Long createUngradedAssignment(Long gradebookId, String name, Date dueDate, Boolean isNotCounted, Boolean isReleased) throws ConflictingAssignmentNameException, StaleObjectModificationException
gradebookId
- The gradebook ID to which this new assignment belongsname
- The assignment's name (must be unique in the gradebook and not be null)dueDate
- The due date for the assignment (optional)isNotCounted
- True if the assignment should not count towards the final course grade (optional)isReleased
- True if the assignment should be release/ or visble to studentsConflictingAssignmentNameException
StaleObjectModificationException
Long createUngradedAssignmentForCategory(Long gradebookId, Long categoryId, String name, Date dueDate, Boolean isNotCounted, Boolean isReleased) throws ConflictingAssignmentNameException, StaleObjectModificationException, IllegalArgumentException
gradebookId
- The gradebook ID to which this new assignment belongscategoryId
- The category ID to which this new assignment belongsname
- The assignment's name (must be unique in the gradebook and not be null)dueDate
- The due date for the assignment (optional)isNotCounted
- True if the assignment should not count towards the final course grade (optional)isReleased
- True if the assignment should be release/ or visble to studentsConflictingAssignmentNameException
- StaleObjectModificationException IllegalArgumentExceptionStaleObjectModificationException
IllegalArgumentException
Long addPermission(Long gradebookId, String userId, String function, Long categoryId, String groupId) throws IllegalArgumentException
gradebookId
- The gradebook IDuserId
- grader's user_idfunction
- function that the grader have - grade / viewcategoryId
- The category IDgroupId
- group/section IDIllegalArgumentException
List getPermissionsForGB(Long gradebookId) throws IllegalArgumentException
gradebookId
- The gradebook IDIllegalArgumentException
List getPermissionsForGBForCategoryIds(Long gradebookId, List cateIds) throws IllegalArgumentException
gradebookId
- cateIds
- IllegalArgumentException
void updatePermission(Collection perms)
perms
- Collection of persistent permission objects.void updatePermission(Permission perm) throws IllegalArgumentException
perm
- persistent object of PermissionIllegalArgumentException
void deletePermission(Permission perm) throws IllegalArgumentException
perm
- persistent object of PermissionIllegalArgumentException
List getPermissionsForUser(Long gradebookId, String userId) throws IllegalArgumentException
gradebookId
- gradebook IDuserId
- grader IDIllegalArgumentException
List getPermissionsForUserForCategory(Long gradebookId, String userId, List cateIds) throws IllegalArgumentException
gradebookId
- gradebook IDuserId
- grader IDcateIds
- category ID listIllegalArgumentException
List getPermissionsForUserAnyCategory(Long gradebookId, String userId) throws IllegalArgumentException
gradebookId
- gradebook IDuserId
- grader IDIllegalArgumentException
List getPermissionsForUserAnyGroup(Long gradebookId, String userId) throws IllegalArgumentException
gradebookId
- gradebook IDuserId
- grader IDIllegalArgumentException
List getPermissionsForUserAnyGroupForCategory(Long gradebookId, String userId, List cateIds) throws IllegalArgumentException
gradebookId
- gradebook IDuserId
- grader IDcateIds
- categorie IDsIllegalArgumentException
List getPermissionsForUserAnyGroupAnyCategory(Long gradebookId, String userId) throws IllegalArgumentException
gradebookId
- gradebook IDuserId
- grader IDIllegalArgumentException
List getPermissionsForUserForGoupsAnyCategory(Long gradebookId, String userId, List groupIds) throws IllegalArgumentException
gradebookId
- gradebook IDuserId
- grader IDgroupsIds
- group IDsIllegalArgumentException
List getPermissionsForUserForGroup(Long gradebookId, String userId, List groupIds) throws IllegalArgumentException
gradebookId
- gradebook IDuserId
- grader IDgroupsIds
- group IDsIllegalArgumentException
void createAssignments(Long gradebookId, List assignList) throws MultipleAssignmentSavingException
gradebookId
- The gradebook ID to which this new assignment belongsassignList
- List of assignmentsMultipleAssignmentSavingException
boolean checkValidName(Long gradebookId, GradebookAssignment assignment)
gradebookId
- Long of the gradebook's IDassignment
- GradebookAssignment to be addedvoid updateCategoryAndAssignmentsPointsPossible(Long gradebookId, Category category) throws ConflictingAssignmentNameException, StaleObjectModificationException
void applyDropScores(Collection<AssignmentGradeRecord> gradeRecords)
Copyright © 2003–2018 Sakai Project. All rights reserved.