Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
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
Paul-Christian Volkmer
ARSnova Backend
Commits
68e70b59
Commit
68e70b59
authored
10 years ago
by
Felix Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
The color of the gridlines is now stored in database
parent
ae181603
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
+8
-0
8 additions, 0 deletions
src/main/java/de/thm/arsnova/entities/Question.java
with
10 additions
and
0 deletions
src/main/java/de/thm/arsnova/dao/CouchDBDao.java
+
2
−
0
View file @
68e70b59
...
...
@@ -279,6 +279,7 @@ 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
());
return
q
;
}
...
...
@@ -313,6 +314,7 @@ 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
());
database
.
saveDocument
(
q
);
question
.
set_rev
(
q
.
getRev
());
...
...
This diff is collapsed.
Click to expand it.
src/main/java/de/thm/arsnova/entities/Question.java
+
8
−
0
View file @
68e70b59
...
...
@@ -60,6 +60,7 @@ public class Question {
private
int
numClickableFields
;
private
int
thresholdCorrectAnswers
;
private
boolean
cvIsColored
;
private
String
gridLineColor
;
public
final
String
getType
()
{
return
type
;
...
...
@@ -357,6 +358,13 @@ public class Question {
this
.
thresholdCorrectAnswers
=
thresholdCorrectAnswers
;
}
public
String
getGridLineColor
()
{
return
gridLineColor
;
}
public
void
setGridLineColor
(
String
gridLineColor
)
{
this
.
gridLineColor
=
gridLineColor
;
}
@Override
public
final
String
toString
()
{
...
...
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