From 3349a66b436b5f0a6d68a2ba859137ed292b0c6f Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 15 Feb 2016 20:12:19 +0100 Subject: [PATCH] sorted members --- .../beans/login/UserLoginWebSessionBean.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) 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); - } } -- 2.39.5