From: Roland Haeder Date: Mon, 15 Feb 2016 22:09:58 +0000 (+0100) Subject: sorted members X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=619e3a2c3ea4cf476cf60e61c482bf609f645855;p=jjobs-war.git sorted members --- diff --git a/src/java/org/mxchange/jjobs/beans/addressbook/AddressbookWebSessionBean.java b/src/java/org/mxchange/jjobs/beans/addressbook/AddressbookWebSessionBean.java index 861e0553..b17bc22f 100644 --- a/src/java/org/mxchange/jjobs/beans/addressbook/AddressbookWebSessionBean.java +++ b/src/java/org/mxchange/jjobs/beans/addressbook/AddressbookWebSessionBean.java @@ -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 */