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
da7510ae
Commit
da7510ae
authored
10 years ago
by
Daniel Vogel
Browse files
Options
Downloads
Patches
Plain Diff
Saved scale factors to database to improve editing of grid questions
parent
8376e8ba
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
+5
-0
5 additions, 0 deletions
src/main/java/de/thm/arsnova/dao/CouchDBDao.java
src/main/java/de/thm/arsnova/entities/Question.java
+18
-0
18 additions, 0 deletions
src/main/java/de/thm/arsnova/entities/Question.java
with
23 additions
and
0 deletions
src/main/java/de/thm/arsnova/dao/CouchDBDao.java
+
5
−
0
View file @
da7510ae
...
...
@@ -422,6 +422,8 @@ public class CouchDBDao implements IDatabaseDao {
q
.
put
(
"gridLineColor"
,
question
.
getGridLineColor
());
q
.
put
(
"numberOfDots"
,
question
.
getNumberOfDots
());
q
.
put
(
"gridType"
,
question
.
getGridType
());
q
.
put
(
"scaleFactor"
,
question
.
getScaleFactor
());
q
.
put
(
"gridScaleFactor"
,
question
.
getGridScaleFactor
());
return
q
;
}
...
...
@@ -459,6 +461,9 @@ public class CouchDBDao implements IDatabaseDao {
q
.
put
(
"gridLineColor"
,
question
.
getGridLineColor
());
q
.
put
(
"numberOfDots"
,
question
.
getNumberOfDots
());
q
.
put
(
"gridType"
,
question
.
getGridType
());
q
.
put
(
"scaleFactor"
,
question
.
getScaleFactor
());
q
.
put
(
"gridScaleFactor"
,
question
.
getGridScaleFactor
());
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
+
18
−
0
View file @
da7510ae
...
...
@@ -63,6 +63,8 @@ public class Question {
private
String
gridLineColor
;
private
int
numberOfDots
;
private
String
gridType
;
private
String
scaleFactor
;
private
String
gridScaleFactor
;
public
final
String
getType
()
{
return
type
;
...
...
@@ -383,6 +385,22 @@ public class Question {
public
void
setGridType
(
String
gridType
)
{
this
.
gridType
=
gridType
;
}
public
void
setScaleFactor
(
String
scaleFactor
)
{
this
.
scaleFactor
=
scaleFactor
;
}
public
String
getScaleFactor
()
{
return
this
.
scaleFactor
;
}
public
void
setGridScaleFactor
(
String
scaleFactor
)
{
this
.
gridScaleFactor
=
scaleFactor
;
}
public
String
getGridScaleFactor
()
{
return
this
.
gridScaleFactor
;
}
@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