]> git.mxchange.org Git - jjobs-war.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Fri, 26 Aug 2016 08:45:29 +0000 (10:45 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 28 Aug 2016 18:46:16 +0000 (20:46 +0200)
- added methods to controller to expand activity type for admin and user respectivly
- renamed user-registration-event method to have "User" in it as this is explicity for users
- renamed user-logout-event observer method to have "Event" as suffix
- fixed template, no user here (copy-paste mistake)
- also add new event to controller's list
- added missing i18n strings for user activity log
- added missing navigation rule

Signed-off-by: Roland Häder <roland@mxchange.org>
15 files changed:
src/java/org/mxchange/jjobs/beans/contact/JobsContactWebSessionBean.java
src/java/org/mxchange/jjobs/beans/contact/JobsContactWebSessionController.java
src/java/org/mxchange/jjobs/beans/localization/JobsLocalizationSessionBean.java
src/java/org/mxchange/jjobs/beans/localization/JobsLocalizationSessionController.java
src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebRequestBean.java
src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebRequestController.java
src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionBean.java
src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionController.java
src/java/org/mxchange/jjobs/beans/user/activity/JobsUserActivityWebApplicationBean.java
src/java/org/mxchange/jjobs/beans/user/activity/JobsUserActivityWebApplicationController.java
src/java/org/mxchange/jjobs/validator/user/JobsUserIdValidator.java
src/java/org/mxchange/localization/bundle_de_DE.properties
src/java/org/mxchange/localization/bundle_en_US.properties
web/WEB-INF/faces-config.xml
web/admin/user/admin_user_activity_log.xhtml

index 6108f6d2f22df28e1bde8752922b7f840ff87fc5..37fab8eab635083210b4a7f51b4b0a3bec69d0ce 100644 (file)
@@ -452,7 +452,7 @@ public class JobsContactWebSessionBean extends BaseJobsController implements Job
        }
 
        @Override
-       public void afterRegistrationEvent (@Observes final UserRegisteredEvent event) {
+       public void afterUserRegistrationEvent (@Observes final UserRegisteredEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
index 7a98cc3199137dd9c8e2eb32a6acfc2769483cad..525f6e6b0b8a710c74b8d4d6857a6d29414f7b80 100644 (file)
@@ -126,7 +126,7 @@ public interface JobsContactWebSessionController extends Serializable {
         * <p>
         * @param event User registration event
         */
-       void afterRegistrationEvent (final UserRegisteredEvent event);
+       void afterUserRegistrationEvent (final UserRegisteredEvent event);
 
        /**
         * Observes events being fired when an administrator has added a new
index c6eb7c4e76b15233c915fcd8bcaae72385b77560..941da4bc30665897a795cf7123b1a8d3535fbfab 100644 (file)
@@ -25,6 +25,7 @@ import javax.faces.context.FacesContext;
 import javax.inject.Named;
 import org.mxchange.jjobs.beans.BaseJobsController;
 import org.mxchange.jusercore.events.login.UserLoggedInEvent;
+import org.mxchange.jusercore.events.logout.ObserveableUserLogoutEvent;
 
 /**
  * A session bean for handling localization/internationalization changes. This
@@ -65,8 +66,29 @@ public class JobsLocalizationSessionBean extends BaseJobsController implements J
                        throw new IllegalArgumentException(MessageFormat.format("userId of user={0} is not valid: {1}", event.getLoggedInUser(), event.getLoggedInUser().getUserId())); //NOI18N
                }
 
-               // Set locale here
-               this.setLocale(event.getLoggedInUser().getUserLocale());
+               // Is the locale set?
+               if (event.getLoggedInUser().getUserLocale() instanceof Locale) {
+                       // Set locale here
+                       this.setLocale(event.getLoggedInUser().getUserLocale());
+               }
+       }
+
+       @Override
+       public void afterUserLogoutEvent (@Observes final ObserveableUserLogoutEvent event) {
+               // event should not be null
+               if (null == event) {
+                       // Throw NPE
+                       throw new NullPointerException("event is null"); //NOI18N
+               } else if (event.getLoggedOutUser() == null) {
+                       // Throw NPE again
+                       throw new NullPointerException("event.loggedOutUser is null"); //NOI18N
+               } else if (event.getLoggedOutUser().getUserId() == null) {
+                       // userId is null
+                       throw new NullPointerException("event.loggedOutUser.userId is null"); //NOI18N
+               } else if (event.getLoggedOutUser().getUserId() < 1) {
+                       // Not avalid id
+                       throw new IllegalArgumentException(MessageFormat.format("userId of user={0} is not valid: {1}", event.getLoggedOutUser(), event.getLoggedOutUser().getUserId())); //NOI18N
+               }
 
                // Trace message
                //* NOISY-DEBUG: */ System.out.println("LandingLocalizationSessionBean:afterUserLogin - EXIT!"); //NOI18N
index 37612465e23dc8f2eca0c1b844f0e4094c984eac..2787da6be86269366ce2f5cfbd2091c230d25ef6 100644 (file)
@@ -19,6 +19,7 @@ package org.mxchange.jjobs.beans.localization;
 import java.io.Serializable;
 import java.util.Locale;
 import org.mxchange.jusercore.events.login.UserLoggedInEvent;
+import org.mxchange.jusercore.events.logout.ObserveableUserLogoutEvent;
 
 /**
  * An interface for localization change beans
@@ -34,6 +35,13 @@ public interface JobsLocalizationSessionController extends Serializable {
         */
        void afterUserLoginEvent (final UserLoggedInEvent event);
 
+       /**
+        * Event observer for logged-out user
+        * <p>
+        * @param event Event instance
+        */
+       void afterUserLogoutEvent (final ObserveableUserLogoutEvent event);
+
        /**
         * Getter for locale
         * <p>
index 19e7b17a2bb3346371ff75a7b70110edca9a65e6..f8158ea5452fa9381bb880fa1c89dd9989064212 100644 (file)
@@ -310,10 +310,7 @@ public class JobsAdminUserWebRequestBean extends BaseJobsController implements J
        }
 
        @Override
-       public void afterRegistrationEvent (@Observes final UserRegisteredEvent event) {
-               // Trace message
-               //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("UserWebBean:afterRegistration: event={0} - CALLED!", event)); //NOI18N
-
+       public void afterUserRegistrationEvent (@Observes final UserRegisteredEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
index fd466e4c5b722262f257f7c4b594ef0f7b89ffd8..2a99cf3258be5b734a3f418a1dbea069193323b6 100644 (file)
@@ -32,7 +32,7 @@ public interface JobsAdminUserWebRequestController extends Serializable {
         * <p>
         * @param event User registration event
         */
-       void afterRegistrationEvent (final UserRegisteredEvent event);
+       void afterUserRegistrationEvent (final UserRegisteredEvent event);
 
        /**
         * Adds user instance to database by preparing a complete user instance and
index 84dcdc21aef52f76ba82962b7c1a8585d242a2ba..ee16e15b9066fcbbdf338a43da2a1648ed617918 100644 (file)
@@ -289,7 +289,7 @@ public class JobsUserWebSessionBean extends BaseJobsController implements JobsUs
        }
 
        @Override
-       public void afterRegistrationEvent (@Observes final UserRegisteredEvent event) {
+       public void afterUserRegistrationEvent (@Observes final UserRegisteredEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
index 0ecb8096aafba8ee2a7c8c3128e9109a791e29ce..e1c241827c7f3a45f55a404c2c3c93ecf2e3f169 100644 (file)
@@ -108,7 +108,7 @@ public interface JobsUserWebSessionController extends Serializable {
         * <p>
         * @param event User registration event
         */
-       void afterRegistrationEvent (final UserRegisteredEvent event);
+       void afterUserRegistrationEvent (final UserRegisteredEvent event);
 
        /**
         * Event observer for logged-in user
index 722385d4c58abba0f0d30bf58cb8aae2b6ae7a65..6dbd5476d8254ecd598f19e655d7407cca03d8a0 100644 (file)
@@ -35,6 +35,7 @@ import org.mxchange.jjobs.beans.BaseJobsController;
 import org.mxchange.jjobs.beans.helper.JobsWebViewHelperController;
 import org.mxchange.jusercore.events.confirmation.UserConfirmedAccountEvent;
 import org.mxchange.jusercore.events.login.UserLoggedInEvent;
+import org.mxchange.jusercore.events.logout.ObserveableUserLogoutEvent;
 import org.mxchange.jusercore.events.registration.UserRegisteredEvent;
 import org.mxchange.jusercore.events.resendlink.UserResendLinkAccountEvent;
 import org.mxchange.jusercore.events.user.add.AdminAddedUserEvent;
@@ -125,6 +126,9 @@ public class JobsUserActivityWebApplicationBean extends BaseJobsController imple
 
                // Call bean to add it
                this.userActivityBean.addUserActivityLog(userActivity);
+
+               // Add to cache, too
+               this.usersActivity.get(user).add(userActivity);
        }
 
        @Override
@@ -158,6 +162,9 @@ public class JobsUserActivityWebApplicationBean extends BaseJobsController imple
 
                // Call bean to add it
                this.userActivityBean.addUserActivityLog(userActivity);
+
+               // Add to cache, too
+               this.usersActivity.get(user).add(userActivity);
        }
 
        @Override
@@ -265,27 +272,6 @@ public class JobsUserActivityWebApplicationBean extends BaseJobsController imple
                this.addUserActivity(event.getUpdatedUser(), "ADMIN_UPDATED_USER_PERSONAL_DATA"); //NOI18N
        }
 
-       @Override
-       public void afterRegistrationEvent (@Observes final UserRegisteredEvent event) {
-               // event should not be null
-               if (null == event) {
-                       // Throw NPE
-                       throw new NullPointerException("event is null"); //NOI18N
-               } else if (event.getRegisteredUser() == null) {
-                       // Throw NPE again
-                       throw new NullPointerException("event.registeredUser is null"); //NOI18N
-               } else if (event.getRegisteredUser().getUserId() == null) {
-                       // userId is null
-                       throw new NullPointerException("event.registeredUser.userId is null"); //NOI18N
-               } else if (event.getRegisteredUser().getUserId() < 1) {
-                       // Not avalid id
-                       throw new IllegalArgumentException(MessageFormat.format("userId of user={0} is not valid: {1}", event.getRegisteredUser(), event.getRegisteredUser().getUserId())); //NOI18N
-               }
-
-               // Update user list
-               this.addUserActivity(event.getRegisteredUser(), "USER_REGISTERED_NEW_ACCOUNT"); //NOI18N
-       }
-
        @Override
        public void afterUserConfirmedAccountEvent (@Observes final UserConfirmedAccountEvent event) {
                // event should not be null
@@ -328,13 +314,55 @@ public class JobsUserActivityWebApplicationBean extends BaseJobsController imple
                this.addUserActivity(event.getLoggedInUser(), "USER_LOGGED_IN"); //NOI18N
        }
 
+       @Override
+       public void afterUserLogoutEvent (@Observes final ObserveableUserLogoutEvent event) {
+               // event should not be null
+               if (null == event) {
+                       // Throw NPE
+                       throw new NullPointerException("event is null"); //NOI18N
+               } else if (event.getLoggedOutUser()== null) {
+                       // Throw NPE again
+                       throw new NullPointerException("event.loggedOutUser is null"); //NOI18N
+               } else if (event.getLoggedOutUser().getUserId() == null) {
+                       // userId is null
+                       throw new NullPointerException("event.loggedOutUser.userId is null"); //NOI18N
+               } else if (event.getLoggedOutUser().getUserId() < 1) {
+                       // Not avalid id
+                       throw new IllegalArgumentException(MessageFormat.format("userId of user={0} is not valid: {1}", event.getLoggedOutUser(), event.getLoggedOutUser().getUserId())); //NOI18N
+               }
+
+               // Update user list
+               this.addUserActivity(event.getLoggedOutUser(), "USER_LOGGED_OUT"); //NOI18N
+       }
+
+       @Override
+       public void afterUserRegistrationEvent (@Observes final UserRegisteredEvent event) {
+               // event should not be null
+               if (null == event) {
+                       // Throw NPE
+                       throw new NullPointerException("event is null"); //NOI18N
+               } else if (event.getRegisteredUser() == null) {
+                       // Throw NPE again
+                       throw new NullPointerException("event.registeredUser is null"); //NOI18N
+               } else if (event.getRegisteredUser().getUserId() == null) {
+                       // userId is null
+                       throw new NullPointerException("event.registeredUser.userId is null"); //NOI18N
+               } else if (event.getRegisteredUser().getUserId() < 1) {
+                       // Not avalid id
+                       throw new IllegalArgumentException(MessageFormat.format("userId of user={0} is not valid: {1}", event.getRegisteredUser(), event.getRegisteredUser().getUserId())); //NOI18N
+               }
+
+               // Update user list
+               this.addUserActivity(event.getRegisteredUser(), "USER_REGISTERED_NEW_ACCOUNT"); //NOI18N
+       }
+
        @Override
        public void afterUserResendConfirmationLinkEvent (@Observes final UserResendLinkAccountEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
                        throw new NullPointerException("event is null"); //NOI18N
-               } else if (event.getResendLinkUser()== null) {
+               } else if (event.getResendLinkUser() == null) {
                        // Throw NPE again
                        throw new NullPointerException("event.resendLinkUser is null"); //NOI18N
                } else if (event.getResendLinkUser().getUserId() == null) {
@@ -399,13 +427,13 @@ public class JobsUserActivityWebApplicationBean extends BaseJobsController imple
                // beanHelper.user should be set and valid
                if (null == user) {
                        // Is not set
-                       throw new NullPointerException("this.beanHelper.user is null");
+                       throw new NullPointerException("this.beanHelper.user is null"); //NOI18N
                } else if (user.getUserId() == null) {
                        // Throw NPE again
-                       throw new NullPointerException("this.beanHelper.user.userId is null");
+                       throw new NullPointerException("this.beanHelper.user.userId is null"); //NOI18N
                } else if (user.getUserId() < 1) {
                        // Invalid id number
-                       throw new IllegalArgumentException(MessageFormat.format("this.beanHelper.user.userId={0} is not valid", user.getUserId()));
+                       throw new IllegalArgumentException(MessageFormat.format("this.beanHelper.user.userId={0} is not valid", user.getUserId())); //NOI18N
                }
 
                // Init list
@@ -421,6 +449,36 @@ public class JobsUserActivityWebApplicationBean extends BaseJobsController imple
                return list;
        }
 
+       @Override
+       public String expandAdminActivityType (final String activityType) {
+               // Is it valid?
+               if (null == activityType) {
+                       // Throw NPE
+                       throw new NullPointerException("activityType is null"); //NOI18N
+               } else if (activityType.isEmpty()) {
+                       // Is empty
+                       throw new IllegalArgumentException("activityType is empty"); //NOI18N
+               }
+
+               // Expand it
+               return "ADMIN_ACTIVITY_" + activityType; //NOI18N
+       }
+
+       @Override
+       public String expandUserActivityType (final String activityType) {
+               // Is it valid?
+               if (null == activityType) {
+                       // Throw NPE
+                       throw new NullPointerException("activityType is null"); //NOI18N
+               } else if (activityType.isEmpty()) {
+                       // Is empty
+                       throw new IllegalArgumentException("activityType is empty"); //NOI18N
+               }
+
+               // Expand it
+               return "USER_ACTIVITY_" + activityType; //NOI18N
+       }
+
        /**
         * Post-constructor method
         */
index c576b632e245bf950a77203b28a0e8535299c9c1..4bc30ada88b2c1f412ff7556b8cbb4d5f00fa029 100644 (file)
@@ -21,6 +21,7 @@ import java.util.List;
 import javax.ejb.Local;
 import org.mxchange.jusercore.events.confirmation.UserConfirmedAccountEvent;
 import org.mxchange.jusercore.events.login.UserLoggedInEvent;
+import org.mxchange.jusercore.events.logout.ObserveableUserLogoutEvent;
 import org.mxchange.jusercore.events.registration.UserRegisteredEvent;
 import org.mxchange.jusercore.events.resendlink.UserResendLinkAccountEvent;
 import org.mxchange.jusercore.events.user.add.AdminAddedUserEvent;
@@ -83,6 +84,13 @@ public interface JobsUserActivityWebApplicationController extends Serializable {
         */
        void afterUserConfirmedAccountEvent (final UserConfirmedAccountEvent event);
 
+       /**
+        * Event observer for logged-out user
+        * <p>
+        * @param event Event instance
+        */
+       void afterUserLogoutEvent (final ObserveableUserLogoutEvent event);
+
        /**
         * Method being call after user's password has been updated (and history
         * entry has been created).
@@ -103,7 +111,7 @@ public interface JobsUserActivityWebApplicationController extends Serializable {
         * <p>
         * @param event Event being fired
         */
-       void afterRegistrationEvent (final UserRegisteredEvent event);
+       void afterUserRegistrationEvent (final UserRegisteredEvent event);
 
        /**
         * Event observer for logged-in user
@@ -141,6 +149,24 @@ public interface JobsUserActivityWebApplicationController extends Serializable {
         * <p>
         * @return List of user's activity log
         */
-       List<LogableUserActivity> allCurrentUsersActivityLog();
+       List<LogableUserActivity> allCurrentUsersActivityLog ();
+
+       /**
+        * Expands given activity type into a i18n string for administrators
+        * <p>
+        * @param activityType Activity type
+        * <p>
+        * @return Expanded i18n string
+        */
+       String expandAdminActivityType (final String activityType);
+
+       /**
+        * Expands given activity type into a i18n string for users
+        * <p>
+        * @param activityType Activity type
+        * <p>
+        * @return Expanded i18n string
+        */
+       String expandUserActivityType (final String activityType);
 
 }
index 27f7011e389ee5bdede2ba4d905c3305b2d2b68f..2afa843fc8a6456afe642ba9b5850ce585c398f1 100644 (file)
@@ -90,9 +90,9 @@ public class JobsUserIdValidator extends BaseLongValidator implements Validator
         * <p>
         * @param event User registration event
         */
-       public void afterRegistrationEvent (@Observes final UserRegisteredEvent event) {
+       public void afterUserRegistrationEvent (@Observes final UserRegisteredEvent event) {
                // Trace message
-               this.loggerBeanLocal.logTrace(MessageFormat.format("UserIdValidator:afterRegistrationEvent: event={0} - CALLED!", event)); //NOI18N
+               this.loggerBeanLocal.logTrace(MessageFormat.format("UserIdValidator:afterUserRegistrationEvent: event={0} - CALLED!", event)); //NOI18N
 
                // event should not be null
                if (null == event) {
@@ -113,13 +113,13 @@ public class JobsUserIdValidator extends BaseLongValidator implements Validator
                User registeredUser = event.getRegisteredUser();
 
                // Debug message
-               this.loggerBeanLocal.logDebug(MessageFormat.format("UserIdValidator:afterRegistrationEvent: registeredUser={0}", registeredUser)); //NOI18N
+               this.loggerBeanLocal.logDebug(MessageFormat.format("UserIdValidator:afterUserRegistrationEvent: registeredUser={0}", registeredUser)); //NOI18N
 
                // Update cache
                JobsUserIdValidator.cachedStatus.add(registeredUser.getUserId());
 
                // Trace message
-               this.loggerBeanLocal.logTrace("UserIdValidator:afterRegistrationEvent: EXIT!"); //NOI18N
+               this.loggerBeanLocal.logTrace("UserIdValidator:afterUserRegistrationEvent: EXIT!"); //NOI18N
        }
 
        @Override
index 9e2e6036abe7c375a4ad3ebf46e89fb073fd5774..8df49098e0c15e4d8cdbb71edc30575fea3c7847 100644 (file)
@@ -738,3 +738,32 @@ CONTENT_TITLE_ADMIN_RESEND_USER_CONFIRMATION_LINK=Neuen Best\u00e4tigungslink ve
 ADMIN_SHOW_USER_ID=Benutzer-Id:
 TABLE_SUMMARY_ADMIN_LIST_USER_ACTIVITY_LOG=Diese Tabelle enth\u00e4lt die Aktivit\u00e4ten des ausgew\u00e4hlten Benutzeraccounts.
 ADMIN_LINK_SHOW_USER_ACTIVITY_LOG=Aktivit\u00e4ten des Benutzers auflisten
+PAGE_TITLE_ADMIN_USER_ACTIVITY_LOG=Logbuch Benutzeraktivit\u00e4ten
+CONTENT_TITLE_ADMIN_USER_ACTIVITY_LOG=Logbuch Benutzeraktivit\u00e4ten:
+ADMIN_LIST_USER_ACTIVIRY_LOG_MESSAGE=Nachricht an Benutzer:
+ADMIN_LIST_USER_ACTIVIRY_LOG_TYPE=Aktivit\u00e4t:
+ADMIN_LIST_USER_ACTIVITY_LOG_TIMESTAMP=Zeitmarke:
+ADMIN_ACTIVITY_ADMIN_LINKED_USER_ACCOUNT=Kontaktdaten mit Benutzeraccount verlinkt.
+USER_ACTIVITY_ADMIN_LINKED_USER_ACCOUNT=Ihr Account wurde aus bestehenden Kontaktdaten erstellt.
+ADMIN_ACTIVITY_ADMIN_LOCKED_USER_ACCOUNT=Benutzer wurde vom Administrator gesperrt.
+USER_ACTIVITY_ADMIN_LOCKED_USER_ACCOUNT=Ihr Account wurde vom Administrator geperrt.
+ADMIN_ACTIVITY_ADMIN_UNLOCKED_USER_ACCOUNT=Benutzeraccount wurde vom Administrator freigegeben.
+USER_ACTIVITY_ADMIN_UNLOCKED_USER_ACCOUNT=Ihr Account wurde vom Administrator wieder freigegeben.
+ADMIN_ACTIVITY_ADMIN_UPDATED_USER_PERSONAL_DATA=Pers\u00f6nliche Daten des Benutzers vom Administrator ge\u00e4ndert.
+USER_ACTIVITY_ADMIN_UPDATED_USER_PERSONAL_DATA=Ihre pers\u00f6nlichen Daten wurden vom Administrator ge\u00e4ndert.
+ADMIN_ACTIVITY_USER_REGISTERED_NEW_ACCOUNT=Ein neuer Benutzer hat sich registriert.
+USER_ACTIVITY_USER_REGISTERED_NEW_ACCOUNT=Sie haben sich an dieser Webseite registriert.
+ADMIN_ACTIVITY_USER_CONFIRMED_ACCOUNT=Benutzer hat Account best\u00e4tigt.
+USER_ACTIVITY_USER_CONFIRMED_ACCOUNT=Sie haben Ihren Account best\u00e4tigt.
+ADMIN_ACTIVITY_USER_LOGGED_IN=Benutzer hat sich eingeloggt.
+USER_ACTIVITY_USER_LOGGED_IN=Sie haben sich eingeloggt.
+ADMIN_ACTIVITY_USER_RESEND_CONFIRMATION_LINK=Benutzer hat neuen Best\u00e4tigungslink angefordert.
+USER_ACTIVITY_USER_RESEND_CONFIRMATION_LINK=Sie haben einen neuen Best\u00e4tigungslink angefordert.
+ADMIN_ACTIVITY_USER_UPDATED_PASSWORD=Benutzer hat sein Zugangspasswort ge\u00e4ndert.
+USER_ACTIVITY_USER_UPDATED_PASSWORD=Sie haben Ihr Zugangspasswort ge\u00e4ndert.
+ADMIN_ACTIVITY_USER_UPDATED_PERSONAL_DATA=Benutzer hat pers\u00f6nliche Daten ge\u00e4ndert.
+USER_ACTIVITY_USER_UPDATED_PERSONAL_DATA=Sie haben Ihre pers\u00f6nlichen Daten ge\u00e4ndert.
+ADMIN_ACTIVITY_ADMIN_ADDED_USER_ACCOUNT=Administrator hat neues Benutzeraccount angelegt.
+USER_ACTIVITY_ADMIN_ADDED_USER_ACCOUNT=Ein Administrator hat Ihren Benutzeracciunt angelegt.
+ADMIN_ACTIVITY_USER_LOGGED_OUT=Benutzer hat sich ausgeloggt.
+USER_ACTIVITY_USER_LOGGED_OUT=Sie haben sich ausgeloggt.
index fc84a6fe016a672f4b0df5acfc9e3e184c6ee0b4..93e0f3b30e2f4031ec3b17c7559af4f38f65efa3 100644 (file)
@@ -739,3 +739,32 @@ CONTENT_TITLE_ADMIN_RESEND_USER_CONFIRMATION_LINK=Send new confirmation link:
 ADMIN_SHOW_USER_ID=User id:
 TABLE_SUMMARY_ADMIN_LIST_USER_ACTIVITY_LOG=This table shows choosen user's activity log.
 ADMIN_LINK_SHOW_USER_ACTIVITY_LOG=List user's actitivy log
+PAGE_TITLE_ADMIN_USER_ACTIVITY_LOG=Logfile of user activity
+CONTENT_TITLE_ADMIN_USER_ACTIVITY_LOG=Logfile of user activity:
+ADMIN_LIST_USER_ACTIVIRY_LOG_MESSAGE=Message to user:
+ADMIN_LIST_USER_ACTIVIRY_LOG_TYPE=Activity:
+ADMIN_LIST_USER_ACTIVITY_LOG_TIMESTAMP=Timestamp:
+ADMIN_ACTIVITY_ADMIN_LINKED_USER_ACCOUNT=Contact data linked with user account.
+USER_ACTIVITY_ADMIN_LINKED_USER_ACCOUNT=Your account has been created with existing contact data.
+ADMIN_ACTIVITY_ADMIN_LOCKED_USER_ACCOUNT=User was locked by administrator.
+USER_ACTIVITY_ADMIN_LOCKED_USER_ACCOUNT=Your account has been locked by an administrator.
+ADMIN_ACTIVITY_ADMIN_UNLOCKED_USER_ACCOUNT=User was unlocked by an administrator.
+USER_ACTIVITY_ADMIN_UNLOCKED_USER_ACCOUNT=Your account has been unlocked by an administrator.
+ADMIN_ACTIVITY_ADMIN_UPDATED_USER_PERSONAL_DATA=Personal data of the user was changed by administrator.
+USER_ACTIVITY_ADMIN_UPDATED_USER_PERSONAL_DATA=Your personal data has been changed by an administrator.
+ADMIN_ACTIVITY_USER_REGISTERED_NEW_ACCOUNT=A new user has registered.
+USER_ACTIVITY_USER_REGISTERED_NEW_ACCOUNT=You have registered with this website.
+ADMIN_ACTIVITY_USER_CONFIRMED_ACCOUNT=User has confirmed account.
+ADMIN_ACTIVITY_USER_LOGGED_IN=User has logged in.
+USER_ACTIVITY_USER_CONFIRMED_ACCOUNT=You have confirmed your user account.
+USER_ACTIVITY_USER_LOGGED_IN=You have logged in.
+ADMIN_ACTIVITY_USER_RESEND_CONFIRMATION_LINK=User has requested new confirmation link.
+USER_ACTIVITY_USER_RESEND_CONFIRMATION_LINK=You have requested a new confirmation link.
+ADMIN_ACTIVITY_USER_UPDATED_PASSWORD=User has changed account password.
+USER_ACTIVITY_USER_UPDATED_PASSWORD=You have changed your account password.
+ADMIN_ACTIVITY_USER_UPDATED_PERSONAL_DATA=User has changed personal data.
+USER_ACTIVITY_USER_UPDATED_PERSONAL_DATA=You have changed your personal data.
+ADMIN_ACTIVITY_ADMIN_ADDED_USER_ACCOUNT=An administrator has created a new user account.
+USER_ACTIVITY_ADMIN_ADDED_USER_ACCOUNT=An aministrator has created your new user account.
+ADMIN_ACTIVITY_USER_LOGGED_OUT=User has logged out.
+USER_ACTIVITY_USER_LOGGED_OUT=You have logged out.
index 0d3ed4ef6d1e076847cf5bd169ed6b656f376982..982cd10c665c9ff9e61fb066a9dcdb814c7ce622 100644 (file)
                        <to-view-id>/admin/mobile_provider/admin_mobile_provider_show.xhtml</to-view-id>
                </navigation-case>
        </navigation-rule>
+
        <navigation-rule>
                <from-view-id>/admin/user/admin_user_list.xhtml</from-view-id>
                <navigation-case>
                        <to-view-id>/admin/user/admin_user_show.xhtml</to-view-id>
                </navigation-case>
        </navigation-rule>
+       <navigation-rule>
+               <from-view-id>/admin/user/admin_user_activity_log.xhtml</from-view-id>
+               <navigation-case>
+                       <from-outcome>admin_show_user</from-outcome>
+                       <to-view-id>/admin/user/admin_user_show.xhtml</to-view-id>
+               </navigation-case>
+       </navigation-rule>
        <!--
        <factory>
                <exception-handler-factory>
index 1e5002bc93ccb6a719316cd55fff83b3322704d7..8ef87ad64cf0477dc4dc4ed22034f55440a57bed 100644 (file)
@@ -37,7 +37,7 @@
                                                <h:outputText value="#{msg.ADMIN_LIST_USER_ID}" />
                                        </f:facet>
 
-                                       <h:link outcome="admin_show_user" title="#{msg.ADMIN_LINK_SHOW_USER_TITLE}" value="#{user.userId}">
+                                       <h:link outcome="admin_show_user" title="#{msg.ADMIN_LINK_SHOW_USER_TITLE}" value="#{userActivity.activityUser.userId}">
                                                <f:param name="userId" value="#{userActivity.activityUser.userId}" />
                                        </h:link>
                                </h:column>
@@ -89,7 +89,7 @@
                                                <h:outputText value="#{msg.ADMIN_LIST_USER_ACTIVIRY_LOG_TYPE}" />
                                        </f:facet>
 
-                                       <h:outputText value="#{msg['ADMIN_ACTIVITY_' + userActivity.activityType]}" />
+                                       <h:outputText value="#{msg[userActivityController.expandAdminActivityType(userActivity.activityType)]}" />
                                </h:column>
 
                                <h:column>