Skip to content
Snippets Groups Projects
Commit 826002e5 authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Merge branch 'fix-import-format' into '2.x'

Fix import format

See merge request arsnova/arsnova-backend!115
parents 894a8d53 bc9c01cf
No related merge requests found
...@@ -44,8 +44,6 @@ public class ImportExportSession { ...@@ -44,8 +44,6 @@ public class ImportExportSession {
private List<Motd> motds; private List<Motd> motds;
private SessionFeature sessionFeature = new SessionFeature();
private SessionInfo sessionInfo; private SessionInfo sessionInfo;
public ImportExportSession() { public ImportExportSession() {
...@@ -91,11 +89,11 @@ public class ImportExportSession { ...@@ -91,11 +89,11 @@ public class ImportExportSession {
} }
public SessionFeature getSessionFeature() { public SessionFeature getSessionFeature() {
return sessionFeature; return session.sessionFeature;
} }
public void setSessionFeature(SessionFeature sF) { public void setSessionFeature(SessionFeature sF) {
sessionFeature = sF; session.sessionFeature = sF;
} }
public SessionInfo getSessionInfo() { public SessionInfo getSessionInfo() {
...@@ -114,7 +112,7 @@ public class ImportExportSession { ...@@ -114,7 +112,7 @@ public class ImportExportSession {
PublicPool p = new PublicPool(); PublicPool p = new PublicPool();
p.setPpFromSession(s); p.setPpFromSession(s);
iesession.setPublicPool(p); iesession.setPublicPool(p);
sessionFeature = s.getFeatures(); iesession.sessionFeature = s.getFeatures();
session = iesession; session = iesession;
} }
...@@ -240,7 +238,7 @@ public class ImportExportSession { ...@@ -240,7 +238,7 @@ public class ImportExportSession {
private PublicPool publicPool; private PublicPool publicPool;
private SessionFeature sessionFeature; private SessionFeature sessionFeature = new SessionFeature();
@ApiModelProperty(required = true, value = "used to display short name") @ApiModelProperty(required = true, value = "used to display short name")
public String getName() { public String getName() {
...@@ -287,7 +285,8 @@ public class ImportExportSession { ...@@ -287,7 +285,8 @@ public class ImportExportSession {
this.publicPool = publicPool; this.publicPool = publicPool;
} }
public SessionFeature getSessionFeature() { /* Use getSessionFeature() of outer class for public access. */
private SessionFeature getSessionFeature() {
return this.sessionFeature; return this.sessionFeature;
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment