Interface Submission<T extends Task>
- Type Parameters:
T
- The type of the task.
- All Known Implementing Classes:
BaseSubmission
public interface Submission<T extends Task>
Interface for submission entity.
-
Method Summary
Modifier and TypeMethodDescriptionGets the assignment id.Gets the evaluation results.int
Gets the feedback level.getId()
Gets the id.Gets the language.getMode()
Gets the mode.Gets the submission time.getTask()
Gets the task.Gets the user id.void
setAssignmentId
(String assignmentId) Sets the assignment id.void
setEvaluationResult
(GradingDto evaluationResult) Sets the evaluation results.void
setFeedbackLevel
(int feedbackLevel) Sets the feedback level.void
Sets the id.void
setLanguage
(String language) Sets the language.void
setMode
(SubmissionMode mode) Sets the mode.void
setSubmissionTime
(Instant submissionTime) Sets the submission time.void
Sets the task.void
Sets the user id.
-
Method Details
-
getId
UUID getId()Gets the id.- Returns:
- The id.
-
setId
Sets the id.- Parameters:
id
- The id.
-
getAssignmentId
String getAssignmentId()Gets the assignment id.- Returns:
- The assignment id.
-
setAssignmentId
Sets the assignment id.- Parameters:
assignmentId
- The assignment id.
-
getUserId
String getUserId()Gets the user id.- Returns:
- The user id.
-
setUserId
Sets the user id.- Parameters:
userId
- The user id.
-
getTask
T getTask()Gets the task.- Returns:
- The task.
-
setTask
Sets the task.- Parameters:
task
- The task.
-
getSubmissionTime
Instant getSubmissionTime()Gets the submission time.- Returns:
- The submission time.
-
setSubmissionTime
Sets the submission time.- Parameters:
submissionTime
- The submission time.
-
getFeedbackLevel
int getFeedbackLevel()Gets the feedback level.- Returns:
- The feedback level.
-
setFeedbackLevel
void setFeedbackLevel(int feedbackLevel) Sets the feedback level.- Parameters:
feedbackLevel
- The feedback level.
-
getLanguage
String getLanguage()Gets the language.- Returns:
- The language.
-
setLanguage
Sets the language.- Parameters:
language
- The language.
-
getMode
SubmissionMode getMode()Gets the mode.- Returns:
- The mode.
-
setMode
Sets the mode.- Parameters:
mode
- The mode.
-
getEvaluationResult
GradingDto getEvaluationResult()Gets the evaluation results.- Returns:
- The evaluation results.
-
setEvaluationResult
Sets the evaluation results.- Parameters:
evaluationResult
- The evaluation results.
-