From 1998d4a8e7e0cc637e2fde0048b3dcce19a9d968 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 22 Jun 2017 22:36:49 +0200 Subject: [PATCH] Continued a bit: - a randomly-generated password is now accepted to show it in mail. - moved to proper package as this is user-related registration MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../register/UserRegistrationSessionBeanRemote.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) rename src/org/mxchange/jusercore/model/{ => user}/register/UserRegistrationSessionBeanRemote.java (82%) diff --git a/src/org/mxchange/jusercore/model/register/UserRegistrationSessionBeanRemote.java b/src/org/mxchange/jusercore/model/user/register/UserRegistrationSessionBeanRemote.java similarity index 82% rename from src/org/mxchange/jusercore/model/register/UserRegistrationSessionBeanRemote.java rename to src/org/mxchange/jusercore/model/user/register/UserRegistrationSessionBeanRemote.java index e701d29..817d05f 100644 --- a/src/org/mxchange/jusercore/model/register/UserRegistrationSessionBeanRemote.java +++ b/src/org/mxchange/jusercore/model/user/register/UserRegistrationSessionBeanRemote.java @@ -14,7 +14,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package org.mxchange.jusercore.model.register; +package org.mxchange.jusercore.model.user.register; import java.io.Serializable; import javax.ejb.Remote; @@ -23,7 +23,7 @@ import org.mxchange.jusercore.exceptions.UserNameAlreadyRegisteredException; import org.mxchange.jusercore.model.user.User; /** - * A remote interface for user registtration + * A remote interface for user registration *

* @author Roland Häder */ @@ -44,8 +44,10 @@ public interface UserRegistrationSessionBeanRemote extends Serializable { /** * Registers given user data, if not yet found *

- * @param user User instance to register - * @param baseUrl Base URL + * @param user User instance to register + * @param baseUrl Base URL + * @param randomPassword A randomly-generated password or NULL if user had + * to enter it. *

* @return The fully registered user account *

@@ -54,7 +56,7 @@ public interface UserRegistrationSessionBeanRemote extends Serializable { * @throws EmailAddressAlreadyRegisteredException If the email address has * already been registered */ - User registerUser (final User user, final String baseUrl) throws UserNameAlreadyRegisteredException, EmailAddressAlreadyRegisteredException; + User registerUser (final User user, final String baseUrl, final String randomPassword) throws UserNameAlreadyRegisteredException, EmailAddressAlreadyRegisteredException; /** * Checks if the user's name is already registered -- 2.39.5