From ac6c86ddd482721e7011dcb727e4099b8cdf84b1 Mon Sep 17 00:00:00 2001 From: Alexander Alexeev Date: Sun, 11 Dec 2016 00:52:57 +0700 Subject: anonymous user support --- juick-core/src/main/java/com/juick/User.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'juick-core/src/main') diff --git a/juick-core/src/main/java/com/juick/User.java b/juick-core/src/main/java/com/juick/User.java index e0bc490c..84f2b396 100644 --- a/juick-core/src/main/java/com/juick/User.java +++ b/juick-core/src/main/java/com/juick/User.java @@ -184,4 +184,10 @@ public class User { public void setMessagesCount(int messagesCount) { this.messagesCount = messagesCount; } + + @XmlTransient + @JsonIgnore + public boolean isAnonym() { + return false; + } } -- cgit v1.2.3