97: Move getMaxPoints method to correct location
This commit is contained in:
parent
e0b5f0e86a
commit
9475937177
@ -81,10 +81,6 @@ public class GradingReportTemplate extends DomainObject {
|
|||||||
this.validFrom = validFrom;
|
this.validFrom = validFrom;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getMaxPoints() {
|
|
||||||
return getCriteria().stream().mapToInt(GradingCriterionTemplate::getMaxPoints).sum();
|
|
||||||
}
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------------
|
||||||
// Properties (Getters and Setters)
|
// Properties (Getters and Setters)
|
||||||
// ----------------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------------
|
||||||
@ -169,6 +165,10 @@ public class GradingReportTemplate extends DomainObject {
|
|||||||
// ----------------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------------
|
||||||
// Other Methods
|
// Other Methods
|
||||||
// ----------------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------------
|
||||||
|
public int getMaxPoints() {
|
||||||
|
return getCriteria().stream().mapToInt(GradingCriterionTemplate::getMaxPoints).sum();
|
||||||
|
}
|
||||||
|
|
||||||
public SupervisorGradingReport createSupervisorReport(Project project, User student) {
|
public SupervisorGradingReport createSupervisorReport(Project project, User student) {
|
||||||
if (!this.projectType.equals(project.getProjectType())) {
|
if (!this.projectType.equals(project.getProjectType())) {
|
||||||
throw new IllegalArgumentException("Project has a different project class than this template");
|
throw new IllegalArgumentException("Project has a different project class than this template");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user