Class StudentGradesImpl

    • Field Detail

      • gradebook

        protected org.sakaiproject.api.app.postem.data.Gradebook gradebook
      • username

        protected String username
      • grades

        protected List grades
      • lastChecked

        protected Timestamp lastChecked
      • id

        protected Long id
    • Constructor Detail

      • StudentGradesImpl

        public StudentGradesImpl()
      • StudentGradesImpl

        public StudentGradesImpl​(String username,
                                 List grades)
    • Method Detail

      • getLockId

        public Integer getLockId()
      • setLockId

        public void setLockId​(Integer lockId)
      • getGradebook

        public org.sakaiproject.api.app.postem.data.Gradebook getGradebook()
        Specified by:
        getGradebook in interface org.sakaiproject.api.app.postem.data.StudentGrades
      • setGradebook

        public void setGradebook​(org.sakaiproject.api.app.postem.data.Gradebook gradebook)
        Specified by:
        setGradebook in interface org.sakaiproject.api.app.postem.data.StudentGrades
      • getUsername

        public String getUsername()
        Specified by:
        getUsername in interface org.sakaiproject.api.app.postem.data.StudentGrades
      • setUsername

        public void setUsername​(String username)
        Specified by:
        setUsername in interface org.sakaiproject.api.app.postem.data.StudentGrades
      • getGrades

        public List getGrades()
        Specified by:
        getGrades in interface org.sakaiproject.api.app.postem.data.StudentGrades
      • setGrades

        public void setGrades​(List grades)
        Specified by:
        setGrades in interface org.sakaiproject.api.app.postem.data.StudentGrades
      • getCheckDateTime

        public String getCheckDateTime()
        Specified by:
        getCheckDateTime in interface org.sakaiproject.api.app.postem.data.StudentGrades
      • getLastChecked

        public Timestamp getLastChecked()
        Specified by:
        getLastChecked in interface org.sakaiproject.api.app.postem.data.StudentGrades
      • setLastChecked

        public void setLastChecked​(Timestamp lastChecked)
        Specified by:
        setLastChecked in interface org.sakaiproject.api.app.postem.data.StudentGrades
      • getId

        public Long getId()
        Specified by:
        getId in interface org.sakaiproject.api.app.postem.data.StudentGrades
      • setId

        public void setId​(Long id)
        Specified by:
        setId in interface org.sakaiproject.api.app.postem.data.StudentGrades
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getReadAfterUpdate

        public boolean getReadAfterUpdate()
        Specified by:
        getReadAfterUpdate in interface org.sakaiproject.api.app.postem.data.StudentGrades
      • formatGrades

        public String formatGrades()
        Formats the grades for display, independently of the JSF display. If a Template exists 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:
        formatGrades in interface org.sakaiproject.api.app.postem.data.StudentGrades
      • getGradesRow

        public String getGradesRow()
        Specified by:
        getGradesRow in interface org.sakaiproject.api.app.postem.data.StudentGrades