From 116b9f48368d615be1562a5ebca35cab82649778 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 13 Mar 2018 23:05:44 +0100 Subject: [PATCH] Please cherry-pick/rename: - Headquarter is enough for bean name (please rename) - removed some no longer recommended business methods - removed no longer used private methods - made some local variables final which helps the Java compiler in optimization of resulting byte-code - added session EJB for user activity - other improvements (?) - changed/updated copyright to Free Software Foundation MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- src/java/log4j2.xml | 2 +- .../contact/PizzaAdminContactSessionBean.java | 4 +- .../contact/PizzaContactSessionBean.java | 123 +---------- .../PizzaAdminContactPhoneSessionBean.java | 4 +- .../PizzaAdminBusinessDataSessionBean.java | 14 +- .../PizzaBusinessDataSessionBean.java | 4 +- .../PizzaAdminBranchOfficeSessionBean.java | 5 +- .../PizzaBranchOfficeSessionBean.java | 4 +- .../PizzaAdminDepartmentSessionBean.java | 20 +- .../PizzaDepartmentSessionBean.java | 4 +- .../PizzaAdminEmployeeSessionBean.java | 209 +++++++++++++++++- .../employee/PizzaEmployeeSessionBean.java | 6 +- .../PizzaAdminHeadquarterSessionBean.java} | 50 ++--- .../PizzaHeadquarterSessionBean.java} | 12 +- .../PizzaAdminOpeningTimesSessionBean.java | 4 +- .../PizzaOpeningTimesSessionBean.java | 4 +- .../data/PizzaAdminCountrySingletonBean.java | 2 +- .../model/data/PizzaCountrySingletonBean.java | 4 +- .../PizzaAdminMobileProviderSessionBean.java | 4 +- .../PizzaMobileProviderSingletonBean.java | 4 +- .../phone/PizzaAdminPhoneSessionBean.java | 4 +- .../phone/PizzaPhoneSessionBean.java | 4 +- .../PizzaAdminProductCategorySessionBean.java | 143 ++++++++++++ .../PizzaProductCategorySessionBean.java | 65 ++++++ .../PizzaAdminGenericProductSessionBean.java | 158 +++++++++++++ .../PizzaGenericProductSessionBean.java | 76 +++++++ .../jshopreceipt/receipt/PdfReceiptBean.java | 2 +- .../jshopreceipt/receipt/ReceiptFactory.java | 2 +- .../model/user/PizzaAdminUserSessionBean.java | 8 +- .../model/user/PizzaUserSessionBean.java | 75 +------ .../PizzaUserActivityLogMessageBean.java | 4 +- .../PizzaUserActivitySessionBean.java | 2 +- .../PizzaUserEmailChangeSessionBean.java | 4 +- .../PizzaUserPasswordHistorySessionBean.java | 4 +- .../user/login/PizzaUserLoginSessionBean.java | 5 +- .../PizzaUserRegistrationSessionBean.java | 4 +- .../PizzaResendLinkSessionBean.java | 4 +- .../enterprise/BasePizzaEnterpriseBean.java | 2 +- .../model/basket/PizzaBasketSessionBean.java | 4 +- .../PizzaAdminCategorySessionBean.java | 138 ------------ .../category/PizzaCategorySessionBean.java | 74 ------- .../checkout/PizzaCheckoutMessageBean.java | 2 +- .../PizzaAdminCustomerSessionBean.java | 4 +- .../customer/PizzaCustomerSessionBean.java | 4 +- .../product/PizzaAdminProductSessionBean.java | 165 -------------- .../product/PizzaProductSessionBean.java | 105 --------- 46 files changed, 776 insertions(+), 769 deletions(-) rename src/java/org/mxchange/jcontactsbusiness/model/{headquarters/PizzaAdminHeadquartersSessionBean.java => headquarter/PizzaAdminHeadquarterSessionBean.java} (67%) rename src/java/org/mxchange/jcontactsbusiness/model/{headquarters/PizzaHeadquartersSessionBean.java => headquarter/PizzaHeadquarterSessionBean.java} (77%) create mode 100644 src/java/org/mxchange/jproduct/model/category/PizzaAdminProductCategorySessionBean.java create mode 100644 src/java/org/mxchange/jproduct/model/category/PizzaProductCategorySessionBean.java create mode 100644 src/java/org/mxchange/jproduct/model/product/PizzaAdminGenericProductSessionBean.java create mode 100644 src/java/org/mxchange/jproduct/model/product/PizzaGenericProductSessionBean.java delete mode 100644 src/java/org/mxchange/pizzaapplication/model/category/PizzaAdminCategorySessionBean.java delete mode 100644 src/java/org/mxchange/pizzaapplication/model/category/PizzaCategorySessionBean.java delete mode 100644 src/java/org/mxchange/pizzaapplication/model/product/PizzaAdminProductSessionBean.java delete mode 100644 src/java/org/mxchange/pizzaapplication/model/product/PizzaProductSessionBean.java diff --git a/src/java/log4j2.xml b/src/java/log4j2.xml index 98e9a65..90439ed 100644 --- a/src/java/log4j2.xml +++ b/src/java/log4j2.xml @@ -1,6 +1,6 @@