Java Doc for GradebookManager.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » tool » gradebook » business » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » sakai » org.sakaiproject.tool.gradebook.business 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.sakaiproject.tool.gradebook.business.GradebookManager

All known Subclasses:   org.sakaiproject.tool.gradebook.business.impl.GradebookManagerHibernateImpl,
GradebookManager
public interface GradebookManager (Code)
Manages Gradebook persistence.
author:
   Josh Holtzman




Method Summary
public  voidaddToGradeRecordMap(Map gradeRecordMap, List gradeRecords)
    
public  LongcreateAssignment(Long gradebookId, String name, Double points, Date dueDate, Boolean isNotCounted, Boolean isReleased)
    
public  LongcreateSpreadsheet(Long gradebookId, String name, String creator, Date dateCreated, String content)
    
public  ListgetAllAssignmentGradeRecords(Long gradebookId, Collection studentUids)
     Gets all grade records that belong to a collection of enrollments in a gradebook.
public  AssignmentgetAssignment(Long assignmentId)
    
public  ListgetAssignmentGradeRecords(Assignment assignment, Collection studentUids)
     Get all assignment score records for the given set of student UIDs.
public  AssignmentgetAssignmentWithStats(Long assignmentId)
     Fetches an assignment and populates its non-persistent statistics fields.
public  ListgetAssignments(Long gradebookId, String sortBy, boolean ascending)
     Fetches a List of Assignments, but does not populate non-persistent fields.
Parameters:
  gradebookId - The gradebook ID
Parameters:
  sortBy - The field by which to sort the list.
public  ListgetAssignments(Long gradebookId)
    
public  ListgetAssignmentsAndCourseGradeWithStats(Long gradebookId, String sortBy, boolean ascending)
     Same as the other getAssignmentsWithStats except for tacking the CourseGrade (with statistics) at the end of the list.
public  ListgetAssignmentsWithStats(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 Assignment object.
Parameters:
  gradebookId - The gradebook ID
Parameters:
  studentUids - The current enrollment list to filter dropped studentsfrom the calculation
Parameters:
  sortBy - The field by which to sort the list.
public  ListgetComments(Assignment assignment, Collection studentIds)
    
public  CourseGradegetCourseGrade(Long gradebookId)
     Fetches the course grade for a gradebook as found in the database.
public  GradebookgetGradebook(Long id)
    
public  GradebookgetGradebook(String uid)
    
public  StringgetGradebookUid(Long id)
     Internal services use a Long ID to identify a gradebook. External facades use a String UID instead.
public  GradebookgetGradebookWithGradeMappings(Long id)
    
public  GradingEventsgetGradingEvents(GradableObject gradableObject, Collection studentUids)
     Gets the grading events for the enrollments on the given gradable object.
public  ListgetPointsEarnedCourseGradeRecords(CourseGrade courseGrade, Collection studentUids)
    
public  List<CourseGradeRecord>getPointsEarnedCourseGradeRecords(CourseGrade courseGrade, Collection studentUids, Collection assignments, Map scoreMap)
    
public  List<CourseGradeRecord>getPointsEarnedCourseGradeRecordsWithStats(CourseGrade courseGrade, Collection studentUids)
     As a side-effect, this version of the method calculates the mean course grade.
public  SpreadsheetgetSpreadsheet(Long spreadsheetId)
    
public  ListgetSpreadsheets(Long gradebookId)
    
public  ListgetStudentAssignmentComments(String studentId, Long gradebookId)
    
public  CourseGradeRecordgetStudentCourseGradeRecord(Gradebook gradebook, String studentId)
     Gets the course grade for a single student.
public  ListgetStudentGradeRecords(Long gradebookId, String studentId)
     Gets all grade records for a single student in a single gradebook, not including the course grade.
public  doublegetTotalPoints(Long gradebookId)
    
public  booleanisEnteredAssignmentScores(Long assignmentId)
     Gets whether scores have been entered for the given assignment.
public  booleanisExplicitlyEnteredCourseGradeRecords(Long gradebookId)
     Gets whether there are explicitly entered course grade records in a gradebook.
public  voidremoveAssignment(Long assignmentId)
     Removes an assignment from a gradebook.
public  voidremoveSpreadsheet(Long spreadsheetid)
    
public  voidupdateAssignment(Assignment assignment)
    
public  SetupdateAssignmentGradeRecords(Assignment assignment, Collection gradeRecords)
     Updates the grade records in the GradeRecordSet.
public  SetupdateAssignmentGradesAndComments(Assignment assignment, Collection gradeRecords, Collection comments)
    
public  voidupdateComments(Collection comments)
    
public  voidupdateCourseGradeRecords(CourseGrade courseGrade, Collection gradeRecords)
     Updates the grade records for the keys (student IDs) in the studentsToPoints map.
public  voidupdateGradebook(Gradebook gradebook)
     Updates a gradebook's representation in persistence.



Method Detail
addToGradeRecordMap
public void addToGradeRecordMap(Map gradeRecordMap, List gradeRecords)(Code)



createAssignment
public Long createAssignment(Long gradebookId, String name, Double points, Date dueDate, Boolean isNotCounted, Boolean isReleased) throws ConflictingAssignmentNameException, StaleObjectModificationException(Code)
Add a new assignment to a gradebook
Parameters:
  gradebookId - The gradebook ID to which this new assignment belongs
Parameters:
  name - The assignment's name (must be unique in the gradebook and not be null)
Parameters:
  points - The number of points possible for this assignment (must not be null)
Parameters:
  dueDate - The due date for the assignment (optional)
Parameters:
  isNotCounted - True if the assignment should not count towards the final course grade (optional)
Parameters:
  isReleased - True if the assignment should be release/ or visble to students The ID of the new assignment



createSpreadsheet
public Long createSpreadsheet(Long gradebookId, String name, String creator, Date dateCreated, String content) throws ConflictingSpreadsheetNameException, StaleObjectModificationException(Code)
create a net spreadsheet
Parameters:
  gradebookId -
Parameters:
  name -
Parameters:
  creator -
Parameters:
  dateCreated -
Parameters:
  content -
throws:
  ConflictingSpreadsheetNameException - StaleObjectModificationException



getAllAssignmentGradeRecords
public List getAllAssignmentGradeRecords(Long gradebookId, Collection studentUids)(Code)
Gets all grade records that belong to a collection of enrollments in a gradebook.
Parameters:
  gradebookId -
Parameters:
  studentUids -



getAssignment
public Assignment getAssignment(Long assignmentId)(Code)
Fetches an assignment
Parameters:
  assignmentId - The assignment ID The assignment



getAssignmentGradeRecords
public List getAssignmentGradeRecords(Assignment assignment, Collection studentUids)(Code)
Get all assignment score records for the given set of student UIDs.
Parameters:
  assignment -
Parameters:
  studentUids - AssignmentGradeRecord list



getAssignmentWithStats
public Assignment getAssignmentWithStats(Long assignmentId)(Code)
Fetches an assignment and populates its non-persistent statistics fields.
Parameters:
  assignmentId - The assignment ID
Parameters:
  studentUids - The current enrollment list to filter dropped studentsfrom the calculation The GradableObject with all statistics fields populated



getAssignments
public List getAssignments(Long gradebookId, String sortBy, boolean ascending)(Code)
Fetches a List of Assignments, but does not populate non-persistent fields.
Parameters:
  gradebookId - The gradebook ID
Parameters:
  sortBy - The field by which to sort the list. A list of Assignments with only persistent fields populated



getAssignments
public List getAssignments(Long gradebookId)(Code)
Convenience method to get assignments with the default sort ordering
Parameters:
  gradebookId - The gradebook ID



getAssignmentsAndCourseGradeWithStats
public List getAssignmentsAndCourseGradeWithStats(Long gradebookId, String sortBy, boolean ascending)(Code)
Same as the other getAssignmentsWithStats except for tacking the CourseGrade (with statistics) at the end of the list. This is combined into one call as a way to avoid either exposing the full enrollment list for the site or fetching it twice.



getAssignmentsWithStats
public List getAssignmentsWithStats(Long gradebookId, String sortBy, boolean ascending)(Code)
Fetches a List of Assignments for a given gradebook, and populates the Assignments with all of the statistics fields available in the Assignment object.
Parameters:
  gradebookId - The gradebook ID
Parameters:
  studentUids - The current enrollment list to filter dropped studentsfrom the calculation
Parameters:
  sortBy - The field by which to sort the list. A list of Assignments with their statistics fields populated



getComments
public List getComments(Assignment assignment, Collection studentIds)(Code)

Parameters:
  assignment -
Parameters:
  studentIds -



getCourseGrade
public CourseGrade getCourseGrade(Long gradebookId)(Code)
Fetches the course grade for a gradebook as found in the database. No non-persistent fields (such as points earned) are filled in.
Parameters:
  gradebookId - The gradebook id The course grade



getGradebook
public Gradebook getGradebook(Long id)(Code)
Fetches a gradebook based on its surrogate key
Parameters:
  id - The ID of the gradebook The gradebook



getGradebook
public Gradebook getGradebook(String uid) throws GradebookNotFoundException(Code)
Fetches a gradebook based on its unique string id
Parameters:
  uid - The UID of the gradebook The gradebook



getGradebookUid
public String getGradebookUid(Long id)(Code)
Internal services use a Long ID to identify a gradebook. External facades use a String UID instead. This method translates.



getGradebookWithGradeMappings
public Gradebook getGradebookWithGradeMappings(Long id)(Code)



getGradingEvents
public GradingEvents getGradingEvents(GradableObject gradableObject, Collection studentUids)(Code)
Gets the grading events for the enrollments on the given gradable object.
Parameters:
  gradableObject -
Parameters:
  enrollments -



getPointsEarnedCourseGradeRecords
public List getPointsEarnedCourseGradeRecords(CourseGrade courseGrade, Collection studentUids)(Code)
Get all course grade records (with autocalculated fields) for the given gradebook and the given set of student UIDs
Parameters:
  gradebookId -
Parameters:
  studentUids - CourseGradeRecord list



getPointsEarnedCourseGradeRecords
public List<CourseGradeRecord> getPointsEarnedCourseGradeRecords(CourseGrade courseGrade, Collection studentUids, Collection assignments, Map scoreMap)(Code)



getPointsEarnedCourseGradeRecordsWithStats
public List<CourseGradeRecord> getPointsEarnedCourseGradeRecordsWithStats(CourseGrade courseGrade, Collection studentUids)(Code)
As a side-effect, this version of the method calculates the mean course grade. The proliferation of method signatures is meant to cut back as much as possible on redundant reads from the assignment grade records.
Parameters:
  courseGrade - This input argument is modified to include statistical information
Parameters:
  studentUids -



getSpreadsheet
public Spreadsheet getSpreadsheet(Long spreadsheetId)(Code)
Fetches a spreadsheet that has been saved
Parameters:
  spreadsheetId - The saved spreadsheet object



getSpreadsheets
public List getSpreadsheets(Long gradebookId)(Code)

Parameters:
  gradebookId - a Collection of spreadsheets



getStudentAssignmentComments
public List getStudentAssignmentComments(String studentId, Long gradebookId)(Code)
method to get comments for a assignments for a student in a gradebook
Parameters:
  studentId -
Parameters:
  gradebookId -



getStudentCourseGradeRecord
public CourseGradeRecord getStudentCourseGradeRecord(Gradebook gradebook, String studentId)(Code)
Gets the course grade for a single student.



getStudentGradeRecords
public List getStudentGradeRecords(Long gradebookId, String studentId)(Code)
Gets all grade records for a single student in a single gradebook, not including the course grade.
Parameters:
  gradebookId - The gradebook id
Parameters:
  studentId - The unique student identifier A List of all of this student's grade records in the gradebook



getTotalPoints
public double getTotalPoints(Long gradebookId)(Code)



isEnteredAssignmentScores
public boolean isEnteredAssignmentScores(Long assignmentId)(Code)
Gets whether scores have been entered for the given assignment. (This may include scores for students who are not currently enrolled.)
Parameters:
  assignmentId - The assignment How many scores have been entered for the assignment



isExplicitlyEnteredCourseGradeRecords
public boolean isExplicitlyEnteredCourseGradeRecords(Long gradebookId)(Code)
Gets whether there are explicitly entered course grade records in a gradebook.
Parameters:
  gradebookId - The gradebook Whether there are course grade records that have a non-null enteredGrade field



removeAssignment
public void removeAssignment(Long assignmentId) throws StaleObjectModificationException(Code)
Removes an assignment from a gradebook. The assignment should not be deleted, but the assignment and all grade records associated with the assignment should be ignored by the application. A removed assignment should not count toward the total number of points in the gradebook.
Parameters:
  assignmentId - The assignment id



removeSpreadsheet
public void removeSpreadsheet(Long spreadsheetid) throws StaleObjectModificationException(Code)

Parameters:
  spreadsheetid -
throws:
  StaleObjectModificationException -



updateAssignment
public void updateAssignment(Assignment assignment) throws ConflictingAssignmentNameException, StaleObjectModificationException(Code)
Updates an existing assignment



updateAssignmentGradeRecords
public Set updateAssignmentGradeRecords(Assignment assignment, Collection gradeRecords) throws StaleObjectModificationException(Code)
Updates the grade records in the GradeRecordSet. Implementations of this method should add a new GradingEvent for each grade record modified, and should update the autocalculated value for each graded student's CourseGradeRecord. The set of student UIDs who were given scores higher than theassignment's value.



updateAssignmentGradesAndComments
public Set updateAssignmentGradesAndComments(Assignment assignment, Collection gradeRecords, Collection comments) throws StaleObjectModificationException(Code)



updateComments
public void updateComments(Collection comments) throws StaleObjectModificationException(Code)



updateCourseGradeRecords
public void updateCourseGradeRecords(CourseGrade courseGrade, Collection gradeRecords) throws StaleObjectModificationException(Code)
Updates the grade records for the keys (student IDs) in the studentsToPoints map. Map values must be valid strings (that exist in the gradebook's grade mapping) or nulls.
Parameters:
  studentsToPoints - A Map of student IDs to grades



updateGradebook
public void updateGradebook(Gradebook gradebook) throws StaleObjectModificationException(Code)
Updates a gradebook's representation in persistence. If the gradebook's selected grade mapping has been modified, the sort value on all explicitly graded course grade records must be updated when the gradebook is updated. A gradebook's selected grade mapping may only change (to a different kind of mapping) if there are no explicitly graded course grade records.
Parameters:
  gradebook - The gradebook to update
throws:
  StaleObjectModificationException -



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.