From: Roland Häder Date: Wed, 3 Aug 2016 13:47:38 +0000 (+0200) Subject: opps, needs to be PasswordHistory which contains the updated instance as 2 things... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d394de725fb81f6bfcc8e74157b1cd9bbe84fb27;p=juser-lib.git opps, needs to be PasswordHistory which contains the updated instance as 2 things are being returned: password history entry and updated user instance --- diff --git a/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java b/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java index 1ebe729..42a4267 100644 --- a/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java +++ b/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java @@ -25,6 +25,7 @@ import org.mxchange.jusercore.exceptions.UserNotFoundException; import org.mxchange.jusercore.exceptions.UserStatusConfirmedException; import org.mxchange.jusercore.exceptions.UserStatusLockedException; import org.mxchange.jusercore.exceptions.UserStatusUnconfirmedException; +import org.mxchange.jusercore.model.user.password_history.PasswordHistory; /** * An interface for user beans @@ -40,13 +41,13 @@ public interface UserSessionBeanRemote extends Serializable { *

* @param user User instance with updated password *

- * @return Updated user instance + * @return Password history entry with updated user instance * * @throws UserNotFoundException If the user is not found * @throws UserStatusUnconfirmedException If the user status is unconfirmed * @throws UserStatusLockedException If the user status is locked */ - User updateUserPassword (final User user) throws UserNotFoundException, UserStatusUnconfirmedException, UserStatusLockedException; + PasswordHistory updateUserPassword (final User user) throws UserNotFoundException, UserStatusUnconfirmedException, UserStatusLockedException; /** * Changes the user' account status to CONFIRMED if the status is