Class StudentGradesImpl
- java.lang.Object
-
- org.sakaiproject.component.app.postem.data.StudentGradesImpl
-
- All Implemented Interfaces:
Serializable,Comparable,org.sakaiproject.api.app.postem.data.StudentGrades
public class StudentGradesImpl extends Object implements org.sakaiproject.api.app.postem.data.StudentGrades, Comparable, Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected DateFormatdateFormatprotected org.sakaiproject.api.app.postem.data.Gradebookgradebookprotected Listgradesprotected Longidprotected TimestamplastCheckedprotected IntegerlockIdprotected Stringusername
-
Constructor Summary
Constructors Constructor Description StudentGradesImpl()StudentGradesImpl(String username, List grades)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Object other)booleanequals(Object other)StringformatGrades()Formats the grades for display, independently of the JSF display.StringgetCheckDateTime()org.sakaiproject.api.app.postem.data.GradebookgetGradebook()ListgetGrades()StringgetGradesRow()LonggetId()TimestampgetLastChecked()IntegergetLockId()booleangetReadAfterUpdate()StringgetUsername()inthashCode()voidsetGradebook(org.sakaiproject.api.app.postem.data.Gradebook gradebook)voidsetGrades(List grades)voidsetId(Long id)voidsetLastChecked(Timestamp lastChecked)voidsetLockId(Integer lockId)voidsetUsername(String username)
-
-
-
Method Detail
-
getLockId
public Integer getLockId()
-
setLockId
public void setLockId(Integer lockId)
-
getGradebook
public org.sakaiproject.api.app.postem.data.Gradebook getGradebook()
- Specified by:
getGradebookin interfaceorg.sakaiproject.api.app.postem.data.StudentGrades
-
setGradebook
public void setGradebook(org.sakaiproject.api.app.postem.data.Gradebook gradebook)
- Specified by:
setGradebookin interfaceorg.sakaiproject.api.app.postem.data.StudentGrades
-
getUsername
public String getUsername()
- Specified by:
getUsernamein interfaceorg.sakaiproject.api.app.postem.data.StudentGrades
-
setUsername
public void setUsername(String username)
- Specified by:
setUsernamein interfaceorg.sakaiproject.api.app.postem.data.StudentGrades
-
getGrades
public List getGrades()
- Specified by:
getGradesin interfaceorg.sakaiproject.api.app.postem.data.StudentGrades
-
setGrades
public void setGrades(List grades)
- Specified by:
setGradesin interfaceorg.sakaiproject.api.app.postem.data.StudentGrades
-
getCheckDateTime
public String getCheckDateTime()
- Specified by:
getCheckDateTimein interfaceorg.sakaiproject.api.app.postem.data.StudentGrades
-
getLastChecked
public Timestamp getLastChecked()
- Specified by:
getLastCheckedin interfaceorg.sakaiproject.api.app.postem.data.StudentGrades
-
setLastChecked
public void setLastChecked(Timestamp lastChecked)
- Specified by:
setLastCheckedin interfaceorg.sakaiproject.api.app.postem.data.StudentGrades
-
getId
public Long getId()
- Specified by:
getIdin interfaceorg.sakaiproject.api.app.postem.data.StudentGrades
-
setId
public void setId(Long id)
- Specified by:
setIdin interfaceorg.sakaiproject.api.app.postem.data.StudentGrades
-
compareTo
public int compareTo(Object other)
- Specified by:
compareToin interfaceComparable
-
getReadAfterUpdate
public boolean getReadAfterUpdate()
- Specified by:
getReadAfterUpdatein interfaceorg.sakaiproject.api.app.postem.data.StudentGrades
-
formatGrades
public String formatGrades()
Formats the grades for display, independently of the JSF display. If aTemplateexists for the parent gradebook, that template's fillGrades method is used. Otherwise, the grades are formatted into a plain old table.This is a bad method for including display code within it; however, I do this for a simple reason: we're already including display code at this level via the template.
The prettier eventual solution will be to inject a default template via the controller, or possibly in the manager class (using a defaultTemplate property). This works for the quick and dirty now.
- Specified by:
formatGradesin interfaceorg.sakaiproject.api.app.postem.data.StudentGrades
-
getGradesRow
public String getGradesRow()
- Specified by:
getGradesRowin interfaceorg.sakaiproject.api.app.postem.data.StudentGrades
-
-