org.sakaiproject.tool.gradebook
Class GradingEvent

java.lang.Object
  extended byorg.sakaiproject.tool.gradebook.GradingEvent
All Implemented Interfaces:
Comparable, Serializable

public class GradingEvent
extends Object
implements Comparable, Serializable

A log of grading activity. A GradingEvent should be saved any time a grade record is added or modified. GradingEvents should be added when the entered value of a course grade record is added or modified, but not when the autocalculated value changes.

Author:
Josh Holtzman
See Also:
Serialized Form

Constructor Summary
GradingEvent()
           
GradingEvent(GradableObject gradableObject, String graderId, String studentId, Object grade)
           
 
Method Summary
 int compareTo(Object o)
           
 Date getDateGraded()
           
 GradableObject getGradableObject()
           
 String getGrade()
           
 String getGraderId()
           
 Long getId()
           
 String getStudentId()
           
 void setDateGraded(Date dateGraded)
           
 void setGradableObject(GradableObject gradableObject)
           
 void setGrade(String grade)
           
 void setGraderId(String graderId)
           
 void setId(Long id)
           
 void setStudentId(String studentId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GradingEvent

public GradingEvent()

GradingEvent

public GradingEvent(GradableObject gradableObject,
                    String graderId,
                    String studentId,
                    Object grade)
Method Detail

getDateGraded

public Date getDateGraded()
Returns:
Returns the dateGraded.

setDateGraded

public void setDateGraded(Date dateGraded)
Parameters:
dateGraded - The dateGraded to set.

getGradableObject

public GradableObject getGradableObject()
Returns:
Returns the gradableObject.

setGradableObject

public void setGradableObject(GradableObject gradableObject)
Parameters:
gradableObject - The gradableObject to set.

getGrade

public String getGrade()
Returns:
Returns the grade.

setGrade

public void setGrade(String grade)
Parameters:
grade - The grade to set.

getGraderId

public String getGraderId()
Returns:
Returns the graderId.

setGraderId

public void setGraderId(String graderId)
Parameters:
graderId - The graderId to set.

getId

public Long getId()
Returns:
Returns the id.

setId

public void setId(Long id)
Parameters:
id - The id to set.

getStudentId

public String getStudentId()
Returns:
Returns the studentId.

setStudentId

public void setStudentId(String studentId)
Parameters:
studentId - The studentId to set.

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable
See Also:
Comparable.compareTo(java.lang.Object)