From ef1e75ddf8388f136cfdd88f08faf877d01bcc87 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 3 Jun 2017 18:23:46 +0200 Subject: [PATCH] Continued a bit: - remote interface for resending confirmation link is now generic - updated copyright - updated jar(s) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- lib/juser-core.jar | Bin 84624 -> 84647 bytes .../UserEmailChangeSessionBeanRemote.java | 2 +- .../login/UserLoginSessionBeanRemote.java | 2 +- .../UserRegistrationSessionBeanRemote.java | 2 +- .../ResendLinkSessionBeanRemote.java | 52 ++++++++++++++++++ .../user/AdminUserSessionBeanRemote.java | 2 +- .../model/user/UserSessionBeanRemote.java | 2 +- .../UserPasswordHistorySessionBeanRemote.java | 2 +- 8 files changed, 58 insertions(+), 6 deletions(-) create mode 100644 src/org/mxchange/jusercore/model/resendlink/ResendLinkSessionBeanRemote.java diff --git a/lib/juser-core.jar b/lib/juser-core.jar index aa8a72393fba606d8e39c915068e9ea7ca5faf74..fd411f914c67a74da6daa0cce6a4534883b0b9ca 100644 GIT binary patch delta 4319 zcmZ`+33yc16+UMs^M)iZ8-*ZbA&@i+16hDTNC;WUN+1N6vYWIirL2;OWle*Eq9B1Q zJa&izib@EMHWXwNt;Iq^0A*2@6p=+sp%hvb`}N%OUM9nICf}F2|5^Y4-uK?U@71lg zyt&%qS6XcL@&V`oFlxoom4312vK2@7q*S0B#U@=W5tz$R_)3l^c6GA#hiM;oXumASAQ)u5xqr*R|mr})EJYs6N%VCG#h~+Zlel+ zOE*riS@InnE+?V4Z<}z**`maX#zns3jz#YlZi*F8E8$#FtCaBAqNMW}WE~zvHAUd` zmmsoQf39Ulpug%^5PdGWvc~?vdV`n5-s(L?Vb6%b)w<_;&<%^f?AKy?v6DXn_~WX< zQCj>!RK&W_5V5ptfViBh+S4C1Bj(HWF-LtjW z@Jt+Oc&?Tm)!JEzUeG-YC$B_a{(i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GTuGb9Mkq+rgPnTgXS zxRQyFOHh)9b0j#DWejC!V}. + */ +package org.mxchange.jusercore.model.resendlink; + +import java.io.Serializable; +import java.util.Locale; +import javax.ejb.Remote; +import org.mxchange.jusercore.exceptions.UserNotFoundException; +import org.mxchange.jusercore.exceptions.UserStatusConfirmedException; +import org.mxchange.jusercore.exceptions.UserStatusLockedException; +import org.mxchange.jusercore.model.user.User; + +/** + * A remote interface for resending confirmation link. + *

+ * @author Roland Häder + */ +@Remote +public interface ResendLinkSessionBeanRemote extends Serializable { + + /** + * Send confirmation link out to given user and returns a proper redirection + * target. The user's account status should be UNCONFIRMED and should + * contain a confirmation key. After confirmation the account's status + * should be changed to CONFIRMED and the key removed (nulled). + *

+ * @param user User instance + * @param locale Locale instance + * @param baseUrl Base URL + * + * @throws UserNotFoundException If the user's account was not found + * @throws UserStatusLockedException If the user's account is locked + * @throws UserStatusConfirmedException If the user's account is already + * confirmed + */ + void resendConfirmationLink (final User user, final Locale locale, final String baseUrl) throws UserNotFoundException, UserStatusLockedException, UserStatusConfirmedException; + +} diff --git a/src/org/mxchange/jusercore/model/user/AdminUserSessionBeanRemote.java b/src/org/mxchange/jusercore/model/user/AdminUserSessionBeanRemote.java index c921db0..c19070d 100644 --- a/src/org/mxchange/jusercore/model/user/AdminUserSessionBeanRemote.java +++ b/src/org/mxchange/jusercore/model/user/AdminUserSessionBeanRemote.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016 Roland Häder + * Copyright (C) 2016, 2017 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 diff --git a/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java b/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java index 3956150..f590661 100644 --- a/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java +++ b/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016 Roland Häder + * Copyright (C) 2016, 2017 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 diff --git a/src/org/mxchange/jusercore/model/user/password_history/UserPasswordHistorySessionBeanRemote.java b/src/org/mxchange/jusercore/model/user/password_history/UserPasswordHistorySessionBeanRemote.java index 3ff58f8..9ecce09 100644 --- a/src/org/mxchange/jusercore/model/user/password_history/UserPasswordHistorySessionBeanRemote.java +++ b/src/org/mxchange/jusercore/model/user/password_history/UserPasswordHistorySessionBeanRemote.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016 Roland Häder + * Copyright (C) 2016, 2017 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 -- 2.39.5