diff --git a/src/main/java/de/thm/arsnova/dao/CouchDBDao.java b/src/main/java/de/thm/arsnova/dao/CouchDBDao.java index cf546a3e16629a62e48a0483d381575fb449110a..ccbd2f0d6ab52b2338726a046952eeb6b3226d87 100644 --- a/src/main/java/de/thm/arsnova/dao/CouchDBDao.java +++ b/src/main/java/de/thm/arsnova/dao/CouchDBDao.java @@ -419,7 +419,10 @@ public class CouchDBDao implements IDatabaseDao { q.put("numClickableFields", question.getNumClickableFields()); q.put("thresholdCorrectAnswers", question.getThresholdCorrectAnswers()); q.put("cvIsColored", question.getCvIsColored()); - + q.put("gridLineColor", question.getGridLineColor()); + q.put("numberOfDots", question.getNumberOfDots()); + q.put("gridType", question.getGridType()); + return q; } @@ -453,6 +456,9 @@ public class CouchDBDao implements IDatabaseDao { q.put("numClickableFields", question.getNumClickableFields()); q.put("thresholdCorrectAnswers", question.getThresholdCorrectAnswers()); q.put("cvIsColored", question.getCvIsColored()); + q.put("gridLineColor", question.getGridLineColor()); + q.put("numberOfDots", question.getNumberOfDots()); + q.put("gridType", question.getGridType()); database.saveDocument(q); question.set_rev(q.getRev()); diff --git a/src/main/java/de/thm/arsnova/entities/Question.java b/src/main/java/de/thm/arsnova/entities/Question.java index 207724109bb2cac1c1bb5652162b0ee2b727e586..48333180b38d97de9b8c998462e9657efad75b1a 100644 --- a/src/main/java/de/thm/arsnova/entities/Question.java +++ b/src/main/java/de/thm/arsnova/entities/Question.java @@ -60,6 +60,9 @@ public class Question { private int numClickableFields; private int thresholdCorrectAnswers; private boolean cvIsColored; + private String gridLineColor; + private int numberOfDots; + private String gridType; public final String getType() { return type; @@ -357,6 +360,29 @@ public class Question { this.thresholdCorrectAnswers = thresholdCorrectAnswers; } + public String getGridLineColor() { + return gridLineColor; + } + + public void setGridLineColor(String gridLineColor) { + this.gridLineColor = gridLineColor; + } + + public int getNumberOfDots() { + return numberOfDots; + } + + public void setNumberOfDots(int numberOfDots) { + this.numberOfDots = numberOfDots; + } + + public String getGridType() { + return gridType; + } + + public void setGridType(String gridType) { + this.gridType = gridType; + } @Override public final String toString() {