]> git.mxchange.org Git - jjobs-war.git/commitdiff
sorted members
authorRoland Haeder <roland@mxchange.org>
Mon, 15 Feb 2016 22:09:58 +0000 (23:09 +0100)
committerRoland Haeder <roland@mxchange.org>
Mon, 15 Feb 2016 22:09:58 +0000 (23:09 +0100)
src/java/org/mxchange/jjobs/beans/addressbook/AddressbookWebSessionBean.java

index 861e05537073cad3439345f6feb99be2c37f6e36..b17bc22f1d7ef580bb03b9616b90dc6b995203c4 100644 (file)
@@ -34,13 +34,13 @@ import javax.inject.Named;
 import javax.naming.Context;
 import javax.naming.InitialContext;
 import javax.naming.NamingException;
-import org.mxchange.jjobs.beans.login.UserLoginWebSessionController;
 import org.mxchange.addressbook.events.addressbook.AddressbookLoadedEvent;
 import org.mxchange.addressbook.exceptions.AddressbookNameAlreadyUsedException;
 import org.mxchange.addressbook.model.addressbook.Addressbook;
 import org.mxchange.addressbook.model.addressbook.AddressbookSessionBeanRemote;
 import org.mxchange.addressbook.model.addressbook.UserAddressbook;
 import org.mxchange.addressbook.model.addressbook.entry.AddressbookEntry;
+import org.mxchange.jjobs.beans.login.UserLoginWebSessionController;
 import org.mxchange.jusercore.events.login.UserLoggedInEvent;
 import org.mxchange.jusercore.model.user.User;
 
@@ -352,6 +352,14 @@ public class AddressbookWebSessionBean implements AddressbookWebSessionControlle
                //this.addressbookBean.getUserCountMap()
        }
 
+       @Override
+       public boolean isAddressbookLoaded () {
+               return ((this.getAddressbookId() instanceof Long)
+                               && (this.getAddressbookName() instanceof String)
+                               && (!this.getAddressbookName().isEmpty())
+                               && (this.getAddressbookUser() instanceof User));
+       }
+
        @Override
        public boolean isAddressbookNameUsed (final String addressbookName) {
                // Is it zero size?
@@ -398,14 +406,6 @@ public class AddressbookWebSessionBean implements AddressbookWebSessionControlle
                return Objects.equals(this.getAddressbookUser(), this.loginController.getLoggedInUser());
        }
 
-       @Override
-       public boolean isAddressbookLoaded () {
-               return ((this.getAddressbookId() instanceof Long)
-                               && (this.getAddressbookName() instanceof String)
-                               && (!this.getAddressbookName().isEmpty())
-                               && (this.getAddressbookUser() instanceof User));
-       }
-
        /**
         * Initializes the user user's address book list
         */