From: Roland Haeder Date: Mon, 15 Feb 2016 19:12:57 +0000 (+0100) Subject: sorted members X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6f43c8036471f0a34825740b43cc6ac91eff910e;p=jjobs-war.git sorted members --- diff --git a/src/java/org/mxchange/addressbook/beans/login/UserLoginWebSessionBean.java b/src/java/org/mxchange/addressbook/beans/login/UserLoginWebSessionBean.java index d8932a74..314285e4 100644 --- a/src/java/org/mxchange/addressbook/beans/login/UserLoginWebSessionBean.java +++ b/src/java/org/mxchange/addressbook/beans/login/UserLoginWebSessionBean.java @@ -158,6 +158,18 @@ public class UserLoginWebSessionBean implements UserLoginWebSessionController { return (!this.isUserLoggedIn()); } + @Override + public boolean isInvisible () { + // Check on login + if (!this.isUserLoggedIn()) { + // Not logged in! + throw new IllegalStateException("isInvisible() has been invoked for a guest."); //NOI18N + } + + // Check logged-in first, then invisibility + return this.getLoggedInUser().getUserProfileMode().equals(ProfileMode.INVISIBLE); + } + @Override public boolean isUserLoggedIn () { // Trace message @@ -172,16 +184,4 @@ public class UserLoginWebSessionBean implements UserLoginWebSessionController { // Return it return this.userLoggedIn; } - - @Override - public boolean isInvisible () { - // Check on login - if (!this.isUserLoggedIn()) { - // Not logged in! - throw new IllegalStateException("isInvisible() has been invoked for a guest."); //NOI18N - } - - // Check logged-in first, then invisibility - return this.getLoggedInUser().getUserProfileMode().equals(ProfileMode.INVISIBLE); - } }