Skip to content
Snippets Groups Projects
Commit 1cb1ec98 authored by Dominik Pilar's avatar Dominik Pilar
Browse files

Merged with master

parents cf256137 a153c4a3
No related branches found
No related tags found
1 merge request!14Resolve "Integrate the necessary parts of the kypo2-training"
...@@ -27,7 +27,7 @@ public class Task implements Serializable { ...@@ -27,7 +27,7 @@ public class Task implements Serializable {
private String answer; private String answer;
private String solution; private String solution;
private int incorrectAnswerLimit; private int incorrectAnswerLimit;
private boolean modifiedSandbox; private boolean modifySandbox;
private int sandboxChangeExpectedDuration; private int sandboxChangeExpectedDuration;
@Column(name = "order_in_training_phase", nullable = false) @Column(name = "order_in_training_phase", nullable = false)
...@@ -100,12 +100,12 @@ public class Task implements Serializable { ...@@ -100,12 +100,12 @@ public class Task implements Serializable {
this.trainingPhase = trainingPhase; this.trainingPhase = trainingPhase;
} }
public boolean isModifiedSandbox() { public boolean isModifySandbox() {
return modifiedSandbox; return modifySandbox;
} }
public void setModifiedSandbox(boolean modifiedSandbox) { public void setModifySandbox(boolean modifySandbox) {
this.modifiedSandbox = modifiedSandbox; this.modifySandbox = modifySandbox;
} }
public int getSandboxChangeExpectedDuration() { public int getSandboxChangeExpectedDuration() {
...@@ -125,7 +125,7 @@ public class Task implements Serializable { ...@@ -125,7 +125,7 @@ public class Task implements Serializable {
", answer='" + answer + '\'' + ", answer='" + answer + '\'' +
", solution='" + solution + '\'' + ", solution='" + solution + '\'' +
", incorrectAnswerLimit=" + incorrectAnswerLimit + ", incorrectAnswerLimit=" + incorrectAnswerLimit +
", isSandboxModified=" + modifiedSandbox + ", modifySandbox=" + modifySandbox +
", sandboxChangeExpectedDuration=" + sandboxChangeExpectedDuration + ", sandboxChangeExpectedDuration=" + sandboxChangeExpectedDuration +
", order=" + order + ", order=" + order +
", trainingPhase=" + trainingPhase.getId() + ", trainingPhase=" + trainingPhase.getId() +
......
...@@ -30,7 +30,7 @@ public class TaskCopyDTO { ...@@ -30,7 +30,7 @@ public class TaskCopyDTO {
private Integer incorrectAnswerLimit; private Integer incorrectAnswerLimit;
@ApiModelProperty(value = "It defines whether the sandbox can be modified", example = "true") @ApiModelProperty(value = "It defines whether the sandbox can be modified", example = "true")
private boolean isSandboxModified; private boolean modifySandbox;
@ApiModelProperty(value = "It defines the expected duration of sandbox change defined in seconds", example = "15") @ApiModelProperty(value = "It defines the expected duration of sandbox change defined in seconds", example = "15")
@PositiveOrZero(message = "Estimated duration of sandbox change must not be a negative number") @PositiveOrZero(message = "Estimated duration of sandbox change must not be a negative number")
...@@ -76,12 +76,12 @@ public class TaskCopyDTO { ...@@ -76,12 +76,12 @@ public class TaskCopyDTO {
this.incorrectAnswerLimit = incorrectAnswerLimit; this.incorrectAnswerLimit = incorrectAnswerLimit;
} }
public boolean isSandboxModified() { public boolean isModifySandbox() {
return isSandboxModified; return modifySandbox;
} }
public void setSandboxModified(boolean sandboxModified) { public void setModifySandbox(boolean modifySandbox) {
isSandboxModified = sandboxModified; this.modifySandbox = modifySandbox;
} }
public int getSandboxChangeExpectedDuration() { public int getSandboxChangeExpectedDuration() {
...@@ -100,7 +100,7 @@ public class TaskCopyDTO { ...@@ -100,7 +100,7 @@ public class TaskCopyDTO {
", answer='" + answer + '\'' + ", answer='" + answer + '\'' +
", solution='" + solution + '\'' + ", solution='" + solution + '\'' +
", incorrectAnswerLimit=" + incorrectAnswerLimit + ", incorrectAnswerLimit=" + incorrectAnswerLimit +
", isSandboxModified=" + isSandboxModified + ", modifySandbox=" + modifySandbox +
", sandboxChangeExpectedDuration=" + sandboxChangeExpectedDuration + ", sandboxChangeExpectedDuration=" + sandboxChangeExpectedDuration +
'}'; '}';
} }
......
...@@ -9,7 +9,7 @@ public class TaskDTO { ...@@ -9,7 +9,7 @@ public class TaskDTO {
private String answer; private String answer;
private String solution; private String solution;
private int incorrectAnswerLimit; private int incorrectAnswerLimit;
private boolean isSandboxModified; private boolean modifySandbox;
private int sandboxChangeExpectedDuration; private int sandboxChangeExpectedDuration;
public Long getId() { public Long getId() {
...@@ -68,12 +68,12 @@ public class TaskDTO { ...@@ -68,12 +68,12 @@ public class TaskDTO {
this.incorrectAnswerLimit = incorrectAnswerLimit; this.incorrectAnswerLimit = incorrectAnswerLimit;
} }
public boolean isSandboxModified() { public boolean isModifySandbox() {
return isSandboxModified; return modifySandbox;
} }
public void setSandboxModified(boolean sandboxModified) { public void setModifySandbox(boolean modifySandbox) {
isSandboxModified = sandboxModified; this.modifySandbox = modifySandbox;
} }
public int getSandboxChangeExpectedDuration() { public int getSandboxChangeExpectedDuration() {
...@@ -94,7 +94,7 @@ public class TaskDTO { ...@@ -94,7 +94,7 @@ public class TaskDTO {
", answer='" + answer + '\'' + ", answer='" + answer + '\'' +
", solution='" + solution + '\'' + ", solution='" + solution + '\'' +
", incorrectAnswerLimit=" + incorrectAnswerLimit + ", incorrectAnswerLimit=" + incorrectAnswerLimit +
", isSandboxModified=" + isSandboxModified + ", modifySandbox=" + modifySandbox +
", sandboxChangeExpectedDuration=" + sandboxChangeExpectedDuration + ", sandboxChangeExpectedDuration=" + sandboxChangeExpectedDuration +
'}'; '}';
} }
......
...@@ -30,7 +30,7 @@ public class TaskUpdateDTO { ...@@ -30,7 +30,7 @@ public class TaskUpdateDTO {
private Integer incorrectAnswerLimit; private Integer incorrectAnswerLimit;
@ApiModelProperty(value = "It defines whether the sandbox can be modified", example = "true") @ApiModelProperty(value = "It defines whether the sandbox can be modified", example = "true")
private boolean isSandboxModified; private boolean modifySandbox;
@ApiModelProperty(value = "It defines the expected duration of sandbox change defined in seconds", example = "15") @ApiModelProperty(value = "It defines the expected duration of sandbox change defined in seconds", example = "15")
@PositiveOrZero(message = "Estimated duration of sandbox change must not be a negative number") @PositiveOrZero(message = "Estimated duration of sandbox change must not be a negative number")
...@@ -76,12 +76,12 @@ public class TaskUpdateDTO { ...@@ -76,12 +76,12 @@ public class TaskUpdateDTO {
this.incorrectAnswerLimit = incorrectAnswerLimit; this.incorrectAnswerLimit = incorrectAnswerLimit;
} }
public boolean isSandboxModified() { public boolean isModifySandbox() {
return isSandboxModified; return modifySandbox;
} }
public void setSandboxModified(boolean sandboxModified) { public void setModifySandbox(boolean modifySandbox) {
isSandboxModified = sandboxModified; this.modifySandbox = modifySandbox;
} }
public int getSandboxChangeExpectedDuration() { public int getSandboxChangeExpectedDuration() {
...@@ -100,7 +100,7 @@ public class TaskUpdateDTO { ...@@ -100,7 +100,7 @@ public class TaskUpdateDTO {
", answer='" + answer + '\'' + ", answer='" + answer + '\'' +
", solution='" + solution + '\'' + ", solution='" + solution + '\'' +
", incorrectAnswerLimit=" + incorrectAnswerLimit + ", incorrectAnswerLimit=" + incorrectAnswerLimit +
", isSandboxModified=" + isSandboxModified + ", modifySandbox=" + modifySandbox +
", sandboxChangeExpectedDuration=" + sandboxChangeExpectedDuration + ", sandboxChangeExpectedDuration=" + sandboxChangeExpectedDuration +
'}'; '}';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment