]> git.mxchange.org Git - jjobs-war.git/commitdiff
added missing language i18n strings + show logout form only to logged-in users ...
authorRoland Häder <roland@mxchange.org>
Fri, 10 Jun 2016 13:01:57 +0000 (15:01 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 7 Aug 2016 12:01:00 +0000 (14:01 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jjobs/beans/login/JobsUserLoginWebSessionBean.java
src/java/org/mxchange/jjobs/beans/login/JobsUserLoginWebSessionController.java

index a0c6aba1acdcd76a8860ea6456e7f361d9f9f6d5..899d64f986a3b9718c85c3e2d1c7a6c78dd9766b 100644 (file)
@@ -314,6 +314,7 @@ public class JobsUserLoginWebSessionBean extends BaseJobsController implements J
 
                // Trace message
                // NOISY-DEBUG System.out.println(MessageFormat.format("JobsUserLoginWebSessionBean:isUserLoggedIn: this.userLoggedIn={0} - EXIT!", this.userLoggedIn));
+
                // Return it
                return this.userLoggedIn;
        }
index c99df24576cd212826c78da362e599f284ff003b..3a131e88783849a72df549da46452d8beb6d62fc 100644 (file)
@@ -62,12 +62,27 @@ public interface JobsUserLoginWebSessionController extends Serializable {
         */
        void setTemplateType (final String templateType);
 
+       /**
+        * Logout for administrator area. If a logged-in user instance exists, it is
+        * being logged-out, too.
+        * <p>
+        * @return Outcome (should be redirected)
+        */
+       String doAdminLogout ();
+
        /**
         * Logins the user, if the account is found, confirmed and unlocked.
         * <p>
         * @return Redirect target
         */
-       String doLogin ();
+       String doUserLogin ();
+
+       /**
+        * Logout for current user by invalidating the current session.
+        * <p>
+        * @return Outcome (should be redirected)
+        */
+       String doUserLogout ();
 
        /**
         * Getter for logged-in user instance