/** * This method will fail unless this course grade was fetched "with statistics", since it relies on having the total number of points * possible available to calculate the percentage. * * @see org.sakaiproject.tool.gradebook.AbstractGradeRecord#getGradeAsPercentage() */ @Override public Double getGradeAsPercentage() { if (this.enteredGrade == null) { return this.autoCalculatedGrade; } else { return getCourseGrade().getGradebook().getSelectedGradeMapping().getValue(this.enteredGrade); } }