diff options
author | Alexander Alexeev | 2016-12-12 20:58:12 +0700 |
---|---|---|
committer | Vitaly Takmazov | 2016-12-12 22:49:47 +0300 |
commit | 415b0ec7da02c07aad8fe85cfe0610ba9f4e5bd4 (patch) | |
tree | b7de01f7925a65a6b569da5e8036552cc31a470c /juick-server/src/main/java/com/juick/entity | |
parent | 59fd361edab0f28991e9ded0c87ed70b7011001c (diff) |
using thymeleaf spring security extension
Diffstat (limited to 'juick-server/src/main/java/com/juick/entity')
-rw-r--r-- | juick-server/src/main/java/com/juick/entity/AnonymUser.java | 133 |
1 files changed, 0 insertions, 133 deletions
diff --git a/juick-server/src/main/java/com/juick/entity/AnonymUser.java b/juick-server/src/main/java/com/juick/entity/AnonymUser.java deleted file mode 100644 index ad14dd30..00000000 --- a/juick-server/src/main/java/com/juick/entity/AnonymUser.java +++ /dev/null @@ -1,133 +0,0 @@ -package com.juick.entity; - -import com.juick.User; - -/** - * Created by aalexeev on 12/11/16. - */ -public final class AnonymUser extends User { - public static final AnonymUser INSTANCE = new AnonymUser(); - - - private AnonymUser() { - super.setUid(getUid()); - super.setName(getName()); - super.setAvatar(getAvatar()); - super.setFullName(getFullName()); - super.setJid(getJid()); - super.setMessagesCount(getMessagesCount()); - super.setAuthHash(getAuthHash()); - super.setBanned(isBanned()); - super.setCredentials(getCredentials()); - super.setLang(getLang()); - } - - @Override - public boolean equals(Object obj) { - return obj == this || obj instanceof AnonymUser; - } - - @Override - public int getUid() { - return 0; - } - - @Override - public String getName() { - return "Anonymous"; - } - - @Override - public String getFullName() { - return getName(); - } - - @Override - public String getJid() { - return "anonym@localhost"; - } - - @Override - public String getAuthHash() { - return null; - } - - @Override - public Integer getUnreadCount() { - return 0; - } - - @Override - public boolean isBanned() { - return false; - } - - @Override - public Object getAvatar() { - return null; - } - - @Override - public String getCredentials() { - return null; - } - - @Override - public String getLang() { - return "__"; - } - - @Override - public int getMessagesCount() { - return 0; - } - - @Override - public boolean isAnonym() { - return true; - } - - @Override - public void setUid(int uid) { - } - - @Override - public void setName(String name) { - } - - @Override - public void setFullName(String fullName) { - } - - @Override - public void setJid(String jid) { - } - - @Override - public void setAuthHash(String authHash) { - } - - @Override - public void setUnreadCount(Integer count) { - } - - @Override - public void setBanned(boolean banned) { - } - - @Override - public void setAvatar(Object avatar) { - } - - @Override - public void setCredentials(String credentials) { - } - - @Override - public void setLang(String lang) { - } - - @Override - public void setMessagesCount(int messagesCount) { - } -} |