Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Plan
Issues
27
Issue boards
Milestones
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
ARSnova Backend
Commits
b4dece4c
Commit
b4dece4c
authored
10 years ago
by
Daniel Gerhardt
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'grid-team/master' into integration
parents
97e5d817
9988dc35
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/de/thm/arsnova/dao/CouchDBDao.java
+2
-0
2 additions, 0 deletions
src/main/java/de/thm/arsnova/dao/CouchDBDao.java
src/main/java/de/thm/arsnova/entities/Question.java
+10
-0
10 additions, 0 deletions
src/main/java/de/thm/arsnova/entities/Question.java
with
12 additions
and
0 deletions
src/main/java/de/thm/arsnova/dao/CouchDBDao.java
+
2
−
0
View file @
b4dece4c
...
@@ -283,6 +283,7 @@ public class CouchDBDao implements IDatabaseDao {
...
@@ -283,6 +283,7 @@ public class CouchDBDao implements IDatabaseDao {
q
.
put
(
"toggleFieldsLeft"
,
question
.
getToggleFieldsLeft
());
q
.
put
(
"toggleFieldsLeft"
,
question
.
getToggleFieldsLeft
());
q
.
put
(
"numClickableFields"
,
question
.
getNumClickableFields
());
q
.
put
(
"numClickableFields"
,
question
.
getNumClickableFields
());
q
.
put
(
"thresholdCorrectAnswers"
,
question
.
getThresholdCorrectAnswers
());
q
.
put
(
"thresholdCorrectAnswers"
,
question
.
getThresholdCorrectAnswers
());
q
.
put
(
"cvIsColored"
,
question
.
getCvIsColored
());
return
q
;
return
q
;
}
}
...
@@ -316,6 +317,7 @@ public class CouchDBDao implements IDatabaseDao {
...
@@ -316,6 +317,7 @@ public class CouchDBDao implements IDatabaseDao {
q
.
put
(
"toggleFieldsLeft"
,
question
.
getToggleFieldsLeft
());
q
.
put
(
"toggleFieldsLeft"
,
question
.
getToggleFieldsLeft
());
q
.
put
(
"numClickableFields"
,
question
.
getNumClickableFields
());
q
.
put
(
"numClickableFields"
,
question
.
getNumClickableFields
());
q
.
put
(
"thresholdCorrectAnswers"
,
question
.
getThresholdCorrectAnswers
());
q
.
put
(
"thresholdCorrectAnswers"
,
question
.
getThresholdCorrectAnswers
());
q
.
put
(
"cvIsColored"
,
question
.
getCvIsColored
());
database
.
saveDocument
(
q
);
database
.
saveDocument
(
q
);
question
.
set_rev
(
q
.
getRev
());
question
.
set_rev
(
q
.
getRev
());
...
...
This diff is collapsed.
Click to expand it.
src/main/java/de/thm/arsnova/entities/Question.java
+
10
−
0
View file @
b4dece4c
...
@@ -59,6 +59,7 @@ public class Question {
...
@@ -59,6 +59,7 @@ public class Question {
private
boolean
toggleFieldsLeft
;
private
boolean
toggleFieldsLeft
;
private
int
numClickableFields
;
private
int
numClickableFields
;
private
int
thresholdCorrectAnswers
;
private
int
thresholdCorrectAnswers
;
private
boolean
cvIsColored
;
public
final
String
getType
()
{
public
final
String
getType
()
{
return
type
;
return
type
;
...
@@ -196,6 +197,14 @@ public class Question {
...
@@ -196,6 +197,14 @@ public class Question {
this
.
showStatistic
=
showStatistic
;
this
.
showStatistic
=
showStatistic
;
}
}
public
boolean
getCvIsColored
()
{
return
cvIsColored
;
}
public
void
setCvIsColored
(
boolean
cvIsColored
)
{
this
.
cvIsColored
=
cvIsColored
;
}
public
boolean
isShowAnswer
()
{
public
boolean
isShowAnswer
()
{
return
showAnswer
;
return
showAnswer
;
}
}
...
@@ -348,6 +357,7 @@ public class Question {
...
@@ -348,6 +357,7 @@ public class Question {
this
.
thresholdCorrectAnswers
=
thresholdCorrectAnswers
;
this
.
thresholdCorrectAnswers
=
thresholdCorrectAnswers
;
}
}
@Override
@Override
public
final
String
toString
()
{
public
final
String
toString
()
{
return
"Question type '"
+
type
+
"': "
+
subject
+
";\n"
+
text
+
possibleAnswers
;
return
"Question type '"
+
type
+
"': "
+
subject
+
";\n"
+
text
+
possibleAnswers
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment