]> git.mxchange.org Git - juser-login-lib.git/commitdiff
user->login, not login->user
authorRoland Häder <roland@mxchange.org>
Wed, 12 Jul 2017 21:46:54 +0000 (23:46 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 12 Jul 2017 21:46:54 +0000 (23:46 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/juserlogincore/model/login/user/UserLoginSessionBeanRemote.java [deleted file]
src/org/mxchange/juserlogincore/model/user/login/UserLoginSessionBeanRemote.java [new file with mode: 0644]

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 (file)
index 4d2cc0c..0000000
+++ /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 <http://www.gnu.org/licenses/>.
- */
-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
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-@Remote
-public interface UserLoginSessionBeanRemote extends Serializable {
-
-       /**
-        * Validates if the user is a confirmed account and returns the full user
-        * instance
-        * <p>
-        * @param container Login container holding user instance and clear-text password
-        * <p>
-        * @return Full confirmed user account
-        * <p>
-        * @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 (file)
index 0000000..1c323ef
--- /dev/null
@@ -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 <http://www.gnu.org/licenses/>.
+ */
+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
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+@Remote
+public interface UserLoginSessionBeanRemote extends Serializable {
+
+       /**
+        * Validates if the user is a confirmed account and returns the full user
+        * instance
+        * <p>
+        * @param container Login container holding user instance and clear-text password
+        * <p>
+        * @return Full confirmed user account
+        * <p>
+        * @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;
+}