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
89798df2
There was an error fetching the commit references. Please try again later.
Commit
89798df2
authored
10 years ago
by
Daniel Gerhardt
Browse files
Options
Downloads
Patches
Plain Diff
Do not expose username for Answer/InterposedQuestion to API
parent
8a28c3e4
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/de/thm/arsnova/entities/Answer.java
+6
-0
6 additions, 0 deletions
src/main/java/de/thm/arsnova/entities/Answer.java
src/main/java/de/thm/arsnova/entities/InterposedQuestion.java
+6
-0
6 additions, 0 deletions
...main/java/de/thm/arsnova/entities/InterposedQuestion.java
with
12 additions
and
0 deletions
src/main/java/de/thm/arsnova/entities/Answer.java
+
6
−
0
View file @
89798df2
package
de.thm.arsnova.entities
;
package
de.thm.arsnova.entities
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
public
class
Answer
{
public
class
Answer
{
private
String
_id
;
private
String
_id
;
...
@@ -86,6 +88,10 @@ public class Answer {
...
@@ -86,6 +88,10 @@ public class Answer {
this
.
piRound
=
piRound
;
this
.
piRound
=
piRound
;
}
}
/* TODO: use JsonViews instead of JsonIgnore when supported by Spring (4.1)
* http://wiki.fasterxml.com/JacksonJsonViews
* https://jira.spring.io/browse/SPR-7156 */
@JsonIgnore
public
final
String
getUser
()
{
public
final
String
getUser
()
{
return
user
;
return
user
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/de/thm/arsnova/entities/InterposedQuestion.java
+
6
−
0
View file @
89798df2
...
@@ -19,6 +19,8 @@
...
@@ -19,6 +19,8 @@
package
de.thm.arsnova.entities
;
package
de.thm.arsnova.entities
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
public
class
InterposedQuestion
{
public
class
InterposedQuestion
{
private
String
_id
;
private
String
_id
;
...
@@ -85,6 +87,10 @@ public class InterposedQuestion {
...
@@ -85,6 +87,10 @@ public class InterposedQuestion {
this
.
timestamp
=
timestamp
;
this
.
timestamp
=
timestamp
;
}
}
/* TODO: use JsonViews instead of JsonIgnore when supported by Spring (4.1)
* http://wiki.fasterxml.com/JacksonJsonViews
* https://jira.spring.io/browse/SPR-7156 */
@JsonIgnore
public
String
getCreator
()
{
public
String
getCreator
()
{
return
creator
;
return
creator
;
}
}
...
...
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