* <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;
*/
boolean ifUserIdExists (final Long userId);
+ /**
+ * Checks if given user name is already used
+ * <p>
+ * @param userName User name to check
+ * <p>
+ * @return Whether given user name is found
+ */
+ boolean ifUserNameExists (final String userName);
+
/**
* Checks if given user exists
* <p>