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;
//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?
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
*/