From 6d95c1c85d5f4e6219f1818eec4b12bf48274840 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 | 127 ++++++------ .../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, 299 insertions(+), 67 deletions(-) create mode 100644 web/admin/user/admin_user_export.xhtml diff --git a/nbproject/faces-config.NavData b/nbproject/faces-config.NavData index 81e62719..c81a6cbb 100644 --- a/nbproject/faces-config.NavData +++ b/nbproject/faces-config.NavData @@ -2,70 +2,71 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/java/org/mxchange/localization/bundle_de_DE.properties b/src/java/org/mxchange/localization/bundle_de_DE.properties index 1d45e2cb..badc84db 100644 --- a/src/java/org/mxchange/localization/bundle_de_DE.properties +++ b/src/java/org/mxchange/localization/bundle_de_DE.properties @@ -580,3 +580,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 dc922c60..54a4c14f 100644 --- a/src/java/org/mxchange/localization/bundle_en_US.properties +++ b/src/java/org/mxchange/localization/bundle_en_US.properties @@ -578,3 +578,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 bae43f53..8bde2fa7 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 @@ -391,6 +395,20 @@ /admin/contact/admin_contact_list.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 + +