From fcb47b3c44a5046a8dae01e8a3af1362aa9f9dcc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 31 May 2016 17:19:55 +0200 Subject: [PATCH] Continued a bit: - added user data export (currently with contact data) - user name is only shown/exported when enabled as requirement in project MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- nbproject/faces-config.NavData | 151 +++++++------- .../localization/bundle_de_DE.properties | 9 + .../localization/bundle_en_US.properties | 9 + web/WEB-INF/faces-config.xml | 18 ++ web/WEB-INF/templates/admin/admin_menu.tpl | 1 + web/admin/user/admin_user_export.xhtml | 192 ++++++++++++++++++ web/admin/user/admin_user_show.xhtml | 10 +- 7 files changed, 311 insertions(+), 79 deletions(-) create mode 100644 web/admin/user/admin_user_export.xhtml diff --git a/nbproject/faces-config.NavData b/nbproject/faces-config.NavData index 664fffd5..f046ee6d 100644 --- a/nbproject/faces-config.NavData +++ b/nbproject/faces-config.NavData @@ -2,81 +2,82 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/java/org/mxchange/localization/bundle_de_DE.properties b/src/java/org/mxchange/localization/bundle_de_DE.properties index 1a440f21..d4c9cd22 100644 --- a/src/java/org/mxchange/localization/bundle_de_DE.properties +++ b/src/java/org/mxchange/localization/bundle_de_DE.properties @@ -552,3 +552,12 @@ GUEST_CONTACT_DATA_CITY_REQUIRED=Bitte geben Sie Ihren Wohnort ein. GUEST_CONTACT_DATA_BIRTHDAY_REQUIRED=Bitte geben Sie Ihr Geburtsdatum ein. FIELD_GENDER_REQUIRED=Bitte w\u00e4hlen Sie eine Anrede aus. ADMIN_PERSONAL_DATA_TITLE=Titel: +LINK_ADMIN_EXPORT_USER=Benutzerdaten exportieren +LINK_ADMIN_EXPORT_USER_TITLE=Exportiert alle Benutzerdaten (und Kontaktdaten). +PAGE_TITLE_ADMIN_EXPORT_USER=Benutzerdaten exportieren +CONTENT_TITLE_ADMIN_EXPORT_USER=Benutzerdaten exportieren: +ADMIN_EXPORT_USER_ID=Benutzer-Id +ADMIN_EXPORT_USER_ACCOUNT_STATUS=Accountstatus +ADMIN_EXPORT_USERS_TITLE=Export der Benutzerdaten starten: +ADMIN_EXPORT_USERS_TIMEOUT_WARNING=Bei sehr gro\u00dfen Datenmengen kann es eventuell zu Zeit\u00fcberschreitungen kommen. Daher sollten Sie besser seitenweise exportieren. +BUTTON_ADMIN_EXPORT_USERS_XLS=Benutzerdaten als Excel-Datei diff --git a/src/java/org/mxchange/localization/bundle_en_US.properties b/src/java/org/mxchange/localization/bundle_en_US.properties index f73ab467..072794e0 100644 --- a/src/java/org/mxchange/localization/bundle_en_US.properties +++ b/src/java/org/mxchange/localization/bundle_en_US.properties @@ -536,3 +536,12 @@ GUEST_CONTACT_DATA_CITY_REQUIRED=Please enter your city. GUEST_CONTACT_DATA_BIRTHDAY_REQUIRED=Please enter your birthday. FIELD_GENDER_REQUIRED=Please select a salutation. ADMIN_PERSONAL_DATA_TITLE=Title: +LINK_ADMIN_EXPORT_USER=Export user data +LINK_ADMIN_EXPORT_USER_TITLE=Exports all user and contact data. +PAGE_TITLE_ADMIN_EXPORT_USER=Export user data +CONTENT_TITLE_ADMIN_EXPORT_USER=Export user data: +ADMIN_EXPORT_USER_ID=User id +ADMIN_EXPORT_USER_ACCOUNT_STATUS=Account status +ADMIN_EXPORT_USERS_TITLE=Start export of user data: +ADMIN_EXPORT_USERS_TIMEOUT_WARNING=Big data amount may lead to timeouts. You should then try to export each page separately. +BUTTON_ADMIN_EXPORT_USERS_XLS=User data as Excel file diff --git a/web/WEB-INF/faces-config.xml b/web/WEB-INF/faces-config.xml index 4525889d..9f933d4b 100644 --- a/web/WEB-INF/faces-config.xml +++ b/web/WEB-INF/faces-config.xml @@ -87,6 +87,10 @@ admin_list_mobile_provider /admin/mobile_provider/admin_mobile_provider_list.xhtml + + admin_export_user + /admin/user/admin_user_export.xhtml + /user/login.xhtml @@ -480,6 +484,20 @@ /admin/contact/admin_contact_show.xhtml + + /admin/contact/admin_contact_export.xhtml + + admin_show_contact + /admin/contact/admin_contact_show.xhtml + + + + /admin/user/admin_user_export.xhtml + + admin_show_user + /admin/user/admin_user_show.xhtml + +