From 5c0b8c781a116d9b67b442208b56f9d4819a3169 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 | 123 +++++------ .../localization/bundle_de_DE.properties | 9 + .../localization/bundle_en_US.properties | 9 + web/WEB-INF/faces-config.xml | 20 ++ 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(+), 65 deletions(-) create mode 100644 web/admin/user/admin_user_export.xhtml diff --git a/nbproject/faces-config.NavData b/nbproject/faces-config.NavData index afc94824..b4c79d0e 100644 --- a/nbproject/faces-config.NavData +++ b/nbproject/faces-config.NavData @@ -2,67 +2,68 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/java/org/mxchange/localization/bundle_de_DE.properties b/src/java/org/mxchange/localization/bundle_de_DE.properties index 851f3bb4..233fbc16 100644 --- a/src/java/org/mxchange/localization/bundle_de_DE.properties +++ b/src/java/org/mxchange/localization/bundle_de_DE.properties @@ -546,3 +546,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 4959551d..42fcf218 100644 --- a/src/java/org/mxchange/localization/bundle_en_US.properties +++ b/src/java/org/mxchange/localization/bundle_en_US.properties @@ -547,3 +547,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 4739537d..327f149d 100644 --- a/web/WEB-INF/faces-config.xml +++ b/web/WEB-INF/faces-config.xml @@ -87,6 +87,12 @@ admin_list_mobile_provider /admin/mobile_provider/admin_mobile_provider_list.xhtml + + admin_export_user + /admin/user/admin_user_export.xhtml + + + exception /exception.xhtml @@ -385,6 +391,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 + +