]> git.mxchange.org Git - addressbook-ejb.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Sun, 9 Jul 2017 08:35:33 +0000 (10:35 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 9 Jul 2017 08:37:09 +0000 (10:37 +0200)
- returned managed instance so the web controller (backing bean in your web
  application) can continue to use it (mostly fire an event)

Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jusercore/model/user/resendlink/AddressbookResendLinkSessionBean.java

index 70ed7203565ccc2504ae135d4ec8725c15ad7052..32c43528a285172b2f0b5dfa6c8b7b46d1c687f5 100644 (file)
@@ -64,7 +64,7 @@ public class AddressbookResendLinkSessionBean extends BaseAddressbookDatabaseBea
        }
 
        @Override
-       public void resendConfirmationLink (final User user, final Locale locale, final String baseUrl) throws UserNotFoundException, UserStatusConfirmedException, UserStatusLockedException {
+       public User resendConfirmationLink (final User user, final Locale locale, final String baseUrl) throws UserNotFoundException, UserStatusConfirmedException, UserStatusLockedException {
                // Log trace message
                this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.resendConfirmationLink: user={1},locale={2},baseUrl={3} - CALLED!", this.getClass().getSimpleName(), user, locale, baseUrl)); //NOI18N
 
@@ -109,7 +109,10 @@ public class AddressbookResendLinkSessionBean extends BaseAddressbookDatabaseBea
                this.sendEmail("Resend user confirmation link", "user_resend_confirmation_link",  user, baseUrl, null); //NOI18N
 
                // Log trace message
-               this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.resendConfirmationLink: EXIT!", this.getClass().getSimpleName())); //NOI18N
+               this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.resendConfirmationLink: managedUser={1} - EXIT!", this.getClass().getSimpleName(), managedUser)); //NOI18N
+
+               // Return updated instance
+               return managedUser;
        }
 
 }