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
// 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);
- }
}