-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New grading method that will multiply number of STATUS times a point value.
- Loading branch information
Showing
20 changed files
with
408 additions
and
320 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -166,6 +166,8 @@ $RECYCLE.BIN/ | |
# Icon must end with two \r | ||
Icon | ||
|
||
# VSCode | ||
.vscode/ | ||
|
||
# Thumbnails | ||
._* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 0 additions & 47 deletions
47
api/src/java/org/sakaiproject/attendance/hbm/GradingRule.hbm.xml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,11 @@ | |
|
||
package org.sakaiproject.attendance.model; | ||
|
||
import lombok.*; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.NoArgsConstructor; | ||
|
||
import org.sakaiproject.attendance.util.AttendanceConstants; | ||
|
||
import java.io.Serializable; | ||
|
@@ -29,36 +33,35 @@ | |
* @author David Bauer [dbauer1 (at) udayton (dot) edu] | ||
* @author Steve Swinsburg ([email protected]) | ||
*/ | ||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@EqualsAndHashCode(exclude="attendanceStatuses") | ||
public class AttendanceSite implements Serializable { | ||
private static final long serialVersionUID = 1L; | ||
private static final long serialVersionUID = 1L; | ||
|
||
@Getter @Setter private Long id; | ||
@Getter @Setter private String siteID; | ||
@Getter @Setter private Status defaultStatus; | ||
@Getter @Setter private Double maximumGrade; | ||
@Getter @Setter private Boolean isGradeShown; | ||
@Setter private Boolean sendToGradebook; | ||
@Setter private Boolean useAutoGrading; | ||
@Setter private Boolean autoGradeBySubtraction; | ||
@Getter @Setter private String gradebookItemName; | ||
@Getter @Setter private Boolean showCommentsToStudents; | ||
@Setter private Boolean isSyncing; | ||
@Getter @Setter private Date syncTime; | ||
@Getter @Setter private Set<AttendanceStatus> attendanceStatuses = new HashSet<>(0); | ||
private Long id; | ||
private String siteID; | ||
private Status defaultStatus; | ||
private Double maximumGrade; | ||
private Boolean isGradeShown; | ||
private Boolean sendToGradebook; | ||
private Integer gradingMethod; | ||
private String gradebookItemName; | ||
private Boolean showCommentsToStudents; | ||
private Boolean isSyncing; | ||
private Date syncTime; | ||
private Set<AttendanceStatus> attendanceStatuses = new HashSet<>(0); | ||
|
||
public AttendanceSite(String siteID){ | ||
this.siteID = siteID; | ||
this.defaultStatus = Status.UNKNOWN; | ||
this.isGradeShown = false; | ||
this.sendToGradebook = false; | ||
this.useAutoGrading = false; | ||
this.autoGradeBySubtraction = true; | ||
this.gradebookItemName = AttendanceConstants.GRADEBOOK_ITEM_NAME; | ||
this.siteID = siteID; | ||
this.defaultStatus = Status.UNKNOWN; | ||
this.isGradeShown = false; | ||
this.sendToGradebook = false; | ||
this.gradingMethod = 0; | ||
this.gradebookItemName = AttendanceConstants.GRADEBOOK_ITEM_NAME; | ||
this.showCommentsToStudents = false; | ||
this.isSyncing = false; | ||
this.isSyncing = false; | ||
} | ||
|
||
public Boolean getSendToGradebook() { | ||
|
@@ -78,19 +81,7 @@ public Boolean getIsSyncing() { | |
} | ||
|
||
public Boolean getUseAutoGrading() { | ||
if(this.useAutoGrading == null) { | ||
return false; | ||
} | ||
|
||
return this.useAutoGrading; | ||
} | ||
|
||
public Boolean getAutoGradeBySubtraction() { | ||
if(this.autoGradeBySubtraction == null) { | ||
return true; | ||
} | ||
|
||
return this.autoGradeBySubtraction; | ||
} | ||
return this.gradingMethod != null; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.