@Remote
public interface UserSessionBeanRemote extends Serializable {
+ /**
+ * Creates the user instance and links it with the set contact instance
+ * <p>
+ * @param user User instance to
+ * <p>
+ * @return Updated user instance
+ * <p>
+ * @throws
+ * org.mxchange.jusercore.exceptions.UserNameAlreadyRegisteredException When
+ * the user name is already used
+ * @throws
+ * org.mxchange.jusercore.exceptions.EmailAddressAlreadyRegisteredException
+ * When the email address is already used
+ */
+ User linkUser (final User user) throws UserNameAlreadyRegisteredException, EmailAddressAlreadyRegisteredException;
+
/**
* Updates entiity from given user instance and returns updated instance.
* <p>
* <p>
* @return User instance
*
- * @throws org.mxchange.jusercore.exceptions.UserNotFoundException If the user is not found
+ * @throws org.mxchange.jusercore.exceptions.UserNotFoundException If the
+ * user is not found
*/
User findUserById (final Long userId) throws UserNotFoundException;
* <p>
* @return Updated user instance
* <p>
- * @throws org.mxchange.jusercore.exceptions.UserNameAlreadyRegisteredException When the user name is already used
- * @throws org.mxchange.jusercore.exceptions.EmailAddressAlreadyRegisteredException When the email address is already used
+ * @throws
+ * org.mxchange.jusercore.exceptions.UserNameAlreadyRegisteredException When
+ * the user name is already used
+ * @throws
+ * org.mxchange.jusercore.exceptions.EmailAddressAlreadyRegisteredException
+ * When the email address is already used
*/
User addUser (final User user) throws UserNameAlreadyRegisteredException, EmailAddressAlreadyRegisteredException;