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
629802ef
Commit
629802ef
authored
10 years ago
by
Daniel Vogel
Browse files
Options
Downloads
Plain Diff
Merge branch 'public_pool' of
https://github.com/felix-schmidt/arsnova-backend
into public_pool
parents
c5387027
d62073c0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/de/thm/arsnova/dao/CouchDBDao.java
+2
-4
2 additions, 4 deletions
src/main/java/de/thm/arsnova/dao/CouchDBDao.java
src/main/java/de/thm/arsnova/entities/Session.java
+9
-0
9 additions, 0 deletions
src/main/java/de/thm/arsnova/entities/Session.java
with
11 additions
and
4 deletions
src/main/java/de/thm/arsnova/dao/CouchDBDao.java
+
2
−
4
View file @
629802ef
...
...
@@ -337,10 +337,7 @@ public class CouchDBDao implements IDatabaseDao {
@Override
public
final
Session
saveSession
(
final
User
user
,
final
Session
session
)
{
final
Document
sessionDocument
=
new
Document
();
if
(
session
.
getPpAuthorName
()
!=
null
)
sessionDocument
.
put
(
"type"
,
"session_public_pool"
);
else
sessionDocument
.
put
(
"type"
,
"session"
);
sessionDocument
.
put
(
"type"
,
"session"
);
sessionDocument
.
put
(
"name"
,
session
.
getName
());
sessionDocument
.
put
(
"shortName"
,
session
.
getShortName
());
sessionDocument
.
put
(
"keyword"
,
sessionService
.
generateKeyword
());
...
...
@@ -355,6 +352,7 @@ public class CouchDBDao implements IDatabaseDao {
sessionDocument
.
put
(
"ppLogo"
,
session
.
getPpLogo
());
sessionDocument
.
put
(
"ppSubject"
,
session
.
getPpSubject
());
sessionDocument
.
put
(
"ppLicense"
,
session
.
getPpLicense
());
sessionDocument
.
put
(
"sessionType"
,
session
.
getSessionType
());
try
{
database
.
saveDocument
(
sessionDocument
);
}
catch
(
final
IOException
e
)
{
...
...
This diff is collapsed.
Click to expand it.
src/main/java/de/thm/arsnova/entities/Session.java
+
9
−
0
View file @
629802ef
...
...
@@ -45,6 +45,7 @@ public class Session implements Serializable {
private
String
ppLogo
;
private
String
ppSubject
;
private
String
ppLicense
;
private
String
sessionType
;
private
String
_id
;
private
String
_rev
;
...
...
@@ -209,6 +210,14 @@ public class Session implements Serializable {
public
void
setPpLicense
(
final
String
ppLicense
)
{
this
.
ppLicense
=
ppLicense
;
}
public
String
getSessionType
()
{
return
sessionType
;
}
public
void
setSessionType
(
final
String
sessionType
)
{
this
.
sessionType
=
sessionType
;
}
@Override
public
String
toString
()
{
...
...
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