From: Roland Häder Date: Wed, 12 Jul 2017 21:46:54 +0000 (+0200) Subject: user->login, not login->user X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5b6f9b40724b53dcce0ba1e3dce670033beb39a0;p=juser-login-lib.git user->login, not login->user Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/juserlogincore/model/login/user/UserLoginSessionBeanRemote.java b/src/org/mxchange/juserlogincore/model/login/user/UserLoginSessionBeanRemote.java deleted file mode 100644 index 4d2cc0c..0000000 --- a/src/org/mxchange/juserlogincore/model/login/user/UserLoginSessionBeanRemote.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2016, 2017 Roland Häder - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.mxchange.juserlogincore.model.login.user; - -import java.io.Serializable; -import javax.ejb.Remote; -import org.mxchange.jusercore.exceptions.UserNotFoundException; -import org.mxchange.jusercore.exceptions.UserStatusLockedException; -import org.mxchange.jusercore.exceptions.UserStatusUnconfirmedException; -import org.mxchange.jusercore.model.user.User; -import org.mxchange.juserlogincore.container.login.LoginContainer; -import org.mxchange.juserlogincore.exceptions.UserPasswordMismatchException; - -/** - * A remote interface for user login - *

- * @author Roland Häder - */ -@Remote -public interface UserLoginSessionBeanRemote extends Serializable { - - /** - * Validates if the user is a confirmed account and returns the full user - * instance - *

- * @param container Login container holding user instance and clear-text password - *

- * @return Full confirmed user account - *

- * @throws org.mxchange.jusercore.exceptions.UserNotFoundException If the - * user account was not found - * @throws org.mxchange.jusercore.exceptions.UserStatusLockedException If - * the user account is locked - * @throws org.mxchange.jusercore.exceptions.UserStatusUnconfirmedException - * If the user account is unconfirmed - * @throws org.mxchange.jusercore.exceptions.UserPasswordMismatchException - * If the password is not matching - */ - User validateUserAccountStatus (final LoginContainer container) throws UserNotFoundException, UserStatusLockedException, UserStatusUnconfirmedException, UserPasswordMismatchException; -} diff --git a/src/org/mxchange/juserlogincore/model/user/login/UserLoginSessionBeanRemote.java b/src/org/mxchange/juserlogincore/model/user/login/UserLoginSessionBeanRemote.java new file mode 100644 index 0000000..1c323ef --- /dev/null +++ b/src/org/mxchange/juserlogincore/model/user/login/UserLoginSessionBeanRemote.java @@ -0,0 +1,54 @@ +/* + * Copyright (C) 2016, 2017 Roland Häder + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.mxchange.juserlogincore.model.user.login; + +import java.io.Serializable; +import javax.ejb.Remote; +import org.mxchange.jusercore.exceptions.UserNotFoundException; +import org.mxchange.jusercore.exceptions.UserStatusLockedException; +import org.mxchange.jusercore.exceptions.UserStatusUnconfirmedException; +import org.mxchange.jusercore.model.user.User; +import org.mxchange.juserlogincore.container.login.LoginContainer; +import org.mxchange.juserlogincore.exceptions.UserPasswordMismatchException; + +/** + * A remote interface for user login + *

+ * @author Roland Häder + */ +@Remote +public interface UserLoginSessionBeanRemote extends Serializable { + + /** + * Validates if the user is a confirmed account and returns the full user + * instance + *

+ * @param container Login container holding user instance and clear-text password + *

+ * @return Full confirmed user account + *

+ * @throws org.mxchange.jusercore.exceptions.UserNotFoundException If the + * user account was not found + * @throws org.mxchange.jusercore.exceptions.UserStatusLockedException If + * the user account is locked + * @throws org.mxchange.jusercore.exceptions.UserStatusUnconfirmedException + * If the user account is unconfirmed + * @throws org.mxchange.jusercore.exceptions.UserPasswordMismatchException + * If the password is not matching + */ + User validateUserAccountStatus (final LoginContainer container) throws UserNotFoundException, UserStatusLockedException, UserStatusUnconfirmedException, UserPasswordMismatchException; +}