org.sakaiproject.tool.gradebook
Class GradeRecordSet

java.lang.Object
  extended byorg.sakaiproject.tool.gradebook.GradeRecordSet
All Implemented Interfaces:
Serializable

public class GradeRecordSet
extends Object
implements Serializable

A set of grade records that allows for convenient lookup by student id.

Author:
Josh Holtzman
See Also:
Serialized Form

Field Summary
protected  GradableObject gradableObject
           
protected  Map gradeRecordMap
           
 
Constructor Summary
GradeRecordSet(GradableObject go)
           
 
Method Summary
 void addGradeRecord(AbstractGradeRecord gradeRecord)
           
 boolean containsGradeRecord(String studentId)
           
 Collection getAllGradeRecords()
          Returns the collection of grade records contained in this GradeRecordSet
 Set getAllStudentIds()
          Returns the set of all student ids for which this GradeRecordSet contains a grade record
 GradableObject getGradableObject()
           
 AbstractGradeRecord getGradeRecord(String studentId)
           
 Map getGradeRecordMap()
          The whole idea of this class is to hide the map from the API, but since we need access to the map to get the grade records in JSF, the accessor for the map remains (student id -> grade record).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gradableObject

protected GradableObject gradableObject

gradeRecordMap

protected Map gradeRecordMap
Constructor Detail

GradeRecordSet

public GradeRecordSet(GradableObject go)
Method Detail

addGradeRecord

public void addGradeRecord(AbstractGradeRecord gradeRecord)

getGradeRecord

public AbstractGradeRecord getGradeRecord(String studentId)

containsGradeRecord

public boolean containsGradeRecord(String studentId)

getAllGradeRecords

public Collection getAllGradeRecords()
Returns the collection of grade records contained in this GradeRecordSet


getAllStudentIds

public Set getAllStudentIds()
Returns the set of all student ids for which this GradeRecordSet contains a grade record


getGradableObject

public GradableObject getGradableObject()

getGradeRecordMap

public Map getGradeRecordMap()
The whole idea of this class is to hide the map from the API, but since we need access to the map to get the grade records in JSF, the accessor for the map remains (student id -> grade record).

Returns: