import org.mxchange.jusercore.exceptions.EmailAddressAlreadyRegisteredException;
import org.mxchange.jusercore.exceptions.UserNameAlreadyRegisteredException;
import org.mxchange.jusercore.exceptions.UserNotFoundException;
+import org.mxchange.jusercore.exceptions.UserStatusConfirmedException;
+import org.mxchange.jusercore.exceptions.UserStatusLockedException;
/**
* An interface for user beans
@Remote
public interface UserSessionBeanRemote extends Serializable {
+ /**
+ * Changes the user' account status to CONFIRMED if the status is
+ * UNCONFIRMED, else propper exceptions are thrown.
+ * <p>
+ * @param user Unconfirmed user instance
+ * @param baseUrl Base URL
+ * <p>
+ * @return Updated user instance
+ * <p>
+ * @throws UserStatusConfirmedException If the user account is confirmed
+ * @throws UserStatusLockedException If the user account is locked
+ */
+ User confirmAccount (final User user, final String baseUrl) throws UserStatusConfirmedException, UserStatusLockedException;
+
/**
* Generates random user name that is available.
* <p>