* @param userLockReason Lock reason
* @param baseUrl Base URL for all URLs
* <p>
+ * @return Updated (and detached) user instance
+ * <p>
* @throws UserStatusLockedException The account is already locked
* @throws UserStatusUnconfirmedException The account is not confirmed
* @throws UserNotFoundException The user account is not found
*/
- void lockUserAccount (final User user, final String userLockReason, final String baseUrl) throws UserStatusLockedException, UserStatusUnconfirmedException, UserNotFoundException;
+ User lockUserAccount (final User user, final String userLockReason, final String baseUrl) throws UserStatusLockedException, UserStatusUnconfirmedException, UserNotFoundException;
/**
* Unlocks given user account
* @param user User account to be unlocked, must be status LOCKED
* @param baseUrl Base URL for all URLs
* <p>
+ * @return Updated (and detached) user instance
+ * <p>
* @throws UserStatusConfirmedException The account is already locked
* @throws UserStatusUnconfirmedException The account is not confirmed
* @throws UserNotFoundException The user account is not found
*/
- void unlockUserAccount (final User user, final String baseUrl) throws UserStatusConfirmedException, UserStatusUnconfirmedException, UserNotFoundException;
+ User unlockUserAccount (final User user, final String baseUrl) throws UserStatusConfirmedException, UserStatusUnconfirmedException, UserNotFoundException;
/**
* Creates the user instance and links it with the set contact instance