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
be571bb7
There was an error fetching the commit references. Please try again later.
Commit
be571bb7
authored
6 years ago
by
Daniel Gerhardt
Browse files
Options
Downloads
Patches
Plain Diff
Include ContentGroups when retrieving Contents from service
Implements
#30
. Fixes
#29
.
parent
789c5918
1 merge request
!106
Include ContentGroups when retrieving Contents from service
Pipeline
#20827
passed with warnings with stages
in 1 minute and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/thm/arsnova/service/ContentServiceImpl.java
+4
-0
4 additions, 0 deletions
src/main/java/de/thm/arsnova/service/ContentServiceImpl.java
with
4 additions
and
0 deletions
src/main/java/de/thm/arsnova/service/ContentServiceImpl.java
+
4
−
0
View file @
be571bb7
...
@@ -91,6 +91,10 @@ public class ContentServiceImpl extends DefaultEntityServiceImpl<Content> implem
...
@@ -91,6 +91,10 @@ public class ContentServiceImpl extends DefaultEntityServiceImpl<Content> implem
}
}
//content.setSessionKeyword(roomRepository.getSessionFromId(content.getRoomId()).getKeyword());
//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
;
return
content
;
}
catch
(
final
DocumentNotFoundException
e
)
{
}
catch
(
final
DocumentNotFoundException
e
)
{
logger
.
error
(
"Could not get content {}."
,
id
,
e
);
logger
.
error
(
"Could not get content {}."
,
id
,
e
);
...
...
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