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
359712ab
Commit
359712ab
authored
10 years ago
by
Christoph Thelen
Browse files
Options
Downloads
Patches
Plain Diff
Set default values for learning progress and features
parent
216c30e8
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/thm/arsnova/services/SessionService.java
+14
-0
14 additions, 0 deletions
src/main/java/de/thm/arsnova/services/SessionService.java
with
14 additions
and
0 deletions
src/main/java/de/thm/arsnova/services/SessionService.java
+
14
−
0
View file @
359712ab
...
...
@@ -37,6 +37,7 @@ import de.thm.arsnova.connector.model.Course;
import
de.thm.arsnova.dao.IDatabaseDao
;
import
de.thm.arsnova.domain.ILearningProgressFactory
;
import
de.thm.arsnova.domain.LearningProgress
;
import
de.thm.arsnova.entities.LearningProgressOptions
;
import
de.thm.arsnova.entities.Session
;
import
de.thm.arsnova.entities.SessionFeature
;
import
de.thm.arsnova.entities.SessionInfo
;
...
...
@@ -240,6 +241,19 @@ public class SessionService implements ISessionService, ApplicationEventPublishe
}
}
// set some default values
LearningProgressOptions
lpo
=
new
LearningProgressOptions
();
lpo
.
setType
(
"questions"
);
session
.
setLearningProgressOptions
(
lpo
);
SessionFeature
sf
=
new
SessionFeature
();
sf
.
setFeedback
(
true
);
sf
.
setInterposed
(
true
);
sf
.
setJitt
(
true
);
sf
.
setLearningProgress
(
true
);
sf
.
setPi
(
true
);
session
.
setFeatures
(
sf
);
return
databaseDao
.
saveSession
(
userService
.
getCurrentUser
(),
session
);
}
...
...
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