X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Fjava%2Forg%2Fmxchange%2Fjusercore%2Fmodel%2Flogin%2FAddressbookUserLoginSessionBean.java;h=54d0ecbb1ac37627c54a50bf5c69de980ad7c7d7;hb=14b925a93801ca75662fba6814cf88e7e9c44291;hp=e46ec09dd607d54511f7e8c75a491b4715948b28;hpb=f71c7f4f8558a62921d44716c56139c4a371b4b2;p=pizzaservice-mailer-ejb.git diff --git a/src/java/org/mxchange/jusercore/model/login/AddressbookUserLoginSessionBean.java b/src/java/org/mxchange/jusercore/model/login/AddressbookUserLoginSessionBean.java index e46ec09..54d0ecb 100644 --- a/src/java/org/mxchange/jusercore/model/login/AddressbookUserLoginSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/login/AddressbookUserLoginSessionBean.java @@ -1,17 +1,17 @@ /* - * Copyright (C) 2016 Roland Haeder + * Copyright (C) 2016 Roland Häder * * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * GNU Affero General Public License for more details. * - * You should have received a copy of the GNU General Public License + * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ package org.mxchange.jusercore.model.login; @@ -32,11 +32,11 @@ import org.mxchange.jusercore.model.user.UserUtils; import org.mxchange.jusercore.model.user.status.UserAccountStatus; /** - * A session bean for user logins + * A session EJB for user logins *

- * @author Roland Haeder + * @author Roland Häder */ -@Stateless (name = "login", mappedName = "ejb/stateless-addressbook-login", description = "A bean handling the user login for Addressbook project") +@Stateless (name = "login", description = "A bean handling the user login for Addressbook project") public class AddressbookUserLoginSessionBean extends BaseDatabaseBean implements UserLoginSessionBeanRemote { /** @@ -45,13 +45,13 @@ public class AddressbookUserLoginSessionBean extends BaseDatabaseBean implements private static final long serialVersionUID = 21_785_978_127_581_965L; /** - * Registration bean + * Registration EJB */ @EJB private UserRegistrationSessionBeanRemote registerBean; /** - * User bean + * User EJB */ @EJB private UserSessionBeanRemote userBean; @@ -59,7 +59,7 @@ public class AddressbookUserLoginSessionBean extends BaseDatabaseBean implements @Override public User validateUserAccountStatus (final LoginContainer container) throws UserNotFoundException, UserStatusLockedException, UserStatusUnconfirmedException, UserPasswordMismatchException { // Trace message - this.getLoggerBeanLocal().logTrace(MessageFormat.format("loginUser: container={0} - CALLED!", container)); //NOI18N + this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.loginUser: container={1} - CALLED!", this.getClass().getSimpleName(), container)); //NOI18N // Check some beans assert (this.userBean instanceof UserSessionBeanRemote) : "this.userBean is not set"; //NOI18N @@ -105,7 +105,7 @@ public class AddressbookUserLoginSessionBean extends BaseDatabaseBean implements } // Trace message - this.getLoggerBeanLocal().logTrace(MessageFormat.format("loginUser: updatedUser={0} - EXIT!", updatedUser)); //NOI18N + this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.loginUser: updatedUser={1} - EXIT!", this.getClass().getSimpleName(), updatedUser)); //NOI18N // Return it return updatedUser; @@ -116,9 +116,9 @@ public class AddressbookUserLoginSessionBean extends BaseDatabaseBean implements * not match, the first one is the one from the calling bean/controller, the * second is the from database. *

- * @param container Container instance holding the user instance and - * unencrypted password - * @param updatedUser User instance found for given user name + * @param container Container instance holding the user instance and + * clear-text password + * @param updatedUser Updated user instance found for given user name *

* @return Whether the password matches */ @@ -138,4 +138,5 @@ public class AddressbookUserLoginSessionBean extends BaseDatabaseBean implements // Is it the same same password? return UserUtils.ifPasswordMatches(container, updatedUser); } + }