data class Submission: Any
      
Fields
| Name | Description | 
|---|---|
| lateinit var group: ProjectGroup | is the ProjectGrop that performed the submission. | 
| val id: Long | is a primary-key like generated value | 
| val submissionId: String? | is a String | 
| val gitSubmissionId: Long? | is a String | 
| val submissionFolder: String? | |
| var submissionDate: Date | is a Date representing the date and time when the submission was performed | 
| val submitterUserId: String | is a String identifying the user that performed the submission | 
| var statusDate: Date | is a Date representing the date and time when the Assignment's status was last updated | 
| val assignmentId: String | is a String identifying the relevant Assignment | 
| var buildReportId: Long? | is a String | 
| var structureErrors: String? | is a String | 
| var markedAsFinal: Boolean | is a Boolean, indicating if this submission is marked as the group's final one. The final Submission is the one that is exported to CSV. | 
| var reportElements: List<SubmissionReport>? | |
| var ellapsed: BigDecimal? | |
| var studentTests: JUnitSummary? | is a JUnitSummary with the result of executing the student's own unit tests | 
| var teacherTests: JUnitSummary? | is a JUnitSummary with the result of executing the teacher's public tests | 
| var hiddenTests: JUnitSummary? | is a JUnitSummary with the result of executing the teacher's hidden tests | 
| var coverage: Int? | is an Int with the test coverage percentage calculated for the submission's own unit tests | 
| var testResults: List<JUnitMethodResult>? | is a List of JUnitMethodResult containing the result for each evaluation JUnit Test | 
Constructors
<init>
        constructor(submissionId: String, assignmentId: String, submitterNumber: String, status: String, statusDate: Date, group: ProjectGroup, submissionFolder: String)
      
Parameters
| Name | Description | 
|---|---|
| submissionId: String | |
| assignmentId: String | |
| submitterNumber: String | |
| status: String | |
| statusDate: Date | |
| group: ProjectGroup | |
| submissionFolder: String | 
<init>
        constructor(id: Long, submissionId: String?, gitSubmissionId: Long?, submissionFolder: String?, submissionDate: Date, submitterUserId: String, status: String, statusDate: Date, assignmentId: String, buildReportId: Long?, structureErrors: String?, markedAsFinal: Boolean, reportElements: List<SubmissionReport>?, ellapsed: BigDecimal?, studentTests: JUnitSummary?, teacherTests: JUnitSummary?, hiddenTests: JUnitSummary?, coverage: Int?, testResults: List<JUnitMethodResult>?)
      
Represents a Submission, which is a single interaction of the student (or group) with an Assignment.
Parameters
| Name | Description | 
|---|---|
| id: Long | |
| submissionId: String? | |
| gitSubmissionId: Long? | |
| submissionFolder: String? | |
| submissionDate: Date | |
| submitterUserId: String | |
| status: String | |
| statusDate: Date | |
| assignmentId: String | |
| buildReportId: Long? | |
| structureErrors: String? | |
| markedAsFinal: Boolean | |
| reportElements: List<SubmissionReport>? | |
| ellapsed: BigDecimal? | |
| studentTests: JUnitSummary? | |
| teacherTests: JUnitSummary? | |
| hiddenTests: JUnitSummary? | |
| coverage: Int? | |
| testResults: List<JUnitMethodResult>? | 
Methods
getStatus
        fun getStatus(): SubmissionStatus
      
ReturnValue
| Name | Description | 
|---|---|
| SubmissionStatus | 
setStatus
        fun setStatus(status: SubmissionStatus, dontUpdateStatusDate: Boolean)
      
Parameters
| Name | Description | 
|---|---|
| status: SubmissionStatus | |
| dontUpdateStatusDate: Boolean | 
ReturnValue
| Name | Description | 
|---|---|
| Unit | 
CompanionObject
Submission
        data class Submission: Any
      
Represents a Submission, which is a single interaction of the student (or group) with an Assignment.
Methods
relativeUploadFolder
        fun relativeUploadFolder(assignmentId: String, submissionDate: Date): String
      
Parameters
| Name | Description | 
|---|---|
| assignmentId: String | |
| submissionDate: Date | 
ReturnValue
| Name | Description | 
|---|---|
| String | 
Represents a Submission, which is a single interaction of the student (or group) with an Assignment.