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
!94
change contentgroup to array in room model
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
change contentgroup to array in room model
changeContentGroupsToArray
into
master
Overview
5
Commits
4
Pipelines
4
Changes
1
Merged
Tom Käsler
requested to merge
changeContentGroupsToArray
into
master
6 years ago
Overview
5
Commits
4
Pipelines
4
Changes
1
Expand
0
0
Merge request reports
Compare
master
version 3
9f932b05
6 years ago
version 2
c383fc19
6 years ago
version 1
7edae85d
6 years ago
master (base)
and
version 1
latest version
f7b331da
4 commits,
6 years ago
version 3
9f932b05
3 commits,
6 years ago
version 2
c383fc19
2 commits,
6 years ago
version 1
7edae85d
1 commit,
6 years ago
1 file
+
16
−
4
Expand all files
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/main/java/de/thm/arsnova/model/Room.java
+
16
−
4
Options
@@ -12,9 +12,20 @@ import java.util.Set;
public
class
Room
extends
Entity
{
public
static
class
ContentGroup
{
private
String
name
;
private
Set
<
String
>
contentIds
;
private
boolean
autoSort
;
@JsonView
({
View
.
Persistence
.
class
,
View
.
Public
.
class
})
public
String
getName
()
{
return
this
.
name
;
}
@JsonView
({
View
.
Persistence
.
class
,
View
.
Public
.
class
})
public
void
setName
(
final
String
name
)
{
this
.
name
=
name
;
}
@JsonView
({
View
.
Persistence
.
class
,
View
.
Public
.
class
})
public
Set
<
String
>
getContentIds
()
{
if
(
contentIds
==
null
)
{
@@ -42,6 +53,7 @@ public class Room extends Entity {
@Override
public
String
toString
()
{
return
new
ToStringCreator
(
this
)
.
append
(
"name"
,
name
)
.
append
(
"contentIds"
,
contentIds
)
.
append
(
"autoSort"
,
autoSort
)
.
toString
();
@@ -297,7 +309,7 @@ public class Room extends Entity {
private
String
abbreviation
;
private
String
description
;
private
boolean
closed
;
private
Map
<
String
,
ContentGroup
>
contentGroups
;
private
Set
<
ContentGroup
>
contentGroups
;
private
Settings
settings
;
private
Author
author
;
private
PoolProperties
poolProperties
;
@@ -366,16 +378,16 @@ public class Room extends Entity {
}
@JsonView
({
View
.
Persistence
.
class
,
View
.
Public
.
class
})
public
Map
<
String
,
ContentGroup
>
getContentGroups
()
{
public
Set
<
ContentGroup
>
getContentGroups
()
{
if
(
contentGroups
==
null
)
{
contentGroups
=
new
Hash
Map
<
>();
contentGroups
=
new
Hash
Set
<
ContentGroup
>();
}
return
contentGroups
;
}
@JsonView
({
View
.
Persistence
.
class
,
View
.
Public
.
class
})
public
void
setContentGroups
(
final
Map
<
String
,
ContentGroup
>
contentGroups
)
{
public
void
setContentGroups
(
final
Set
<
ContentGroup
>
contentGroups
)
{
this
.
contentGroups
=
contentGroups
;
}