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
Merge requests
!106
Include ContentGroups when retrieving Contents from service
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Include ContentGroups when retrieving Contents from service
content-include-groups
into
master
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Daniel Gerhardt
requested to merge
content-include-groups
into
master
6 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
Implements
#30 (closed)
. Fixes
#29 (closed)
.
0
0
Merge request reports
Viewing commit
be571bb7
Show latest version
1 file
+
4
−
0
Expand all files
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
be571bb7
Include ContentGroups when retrieving Contents from service
· be571bb7
Daniel Gerhardt
authored
6 years ago
Implements
#30
. Fixes
#29
.
src/main/java/de/thm/arsnova/service/ContentServiceImpl.java
+
4
−
0
Options
@@ -91,6 +91,10 @@ public class ContentServiceImpl extends DefaultEntityServiceImpl<Content> implem
}
//content.setSessionKeyword(roomRepository.getSessionFromId(content.getRoomId()).getKeyword());
Room
room
=
roomRepository
.
findOne
(
content
.
getRoomId
());
content
.
setGroups
(
room
.
getContentGroups
().
stream
()
.
map
(
Room
.
ContentGroup
::
getName
).
collect
(
Collectors
.
toSet
()));
return
content
;
}
catch
(
final
DocumentNotFoundException
e
)
{
logger
.
error
(
"Could not get content {}."
,
id
,
e
);