From fbe7e9cba9f40f461991427a81294c9b8dac8c61 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 19 Aug 2017 20:53:28 +0200 Subject: [PATCH] Please cherry-pick: - added administrative and general backing bean for company employees + added JNDI lookup, still at wrong place - Employees have an instance back to business basic data which makes it impossible for creation (no fancy AJAX stuff now) of business basic data with founder and/or contact person - separated package of businessdata to business/basicdata so above business/company_employee package is nicely possible MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- ...PizzaAdminBusinessDataWebRequestBean.java} | 142 +++++++++++++++--- ...dminBusinessDataWebRequestController.java} | 13 +- .../PizzaBusinessDataWebSessionBean.java | 61 ++++---- ...PizzaBusinessDataWebSessionController.java | 11 +- ...zzaAdminCompanyEmployeeWebRequestBean.java | 74 +++++++++ ...inCompanyEmployeeWebRequestController.java | 28 ++++ .../PizzaCompanyEmployeeWebRequestBean.java | 101 +++++++++++++ ...zaCompanyEmployeeWebSessionController.java | 28 ++++ .../admin_form_business_basic_data.tpl | 44 +----- 9 files changed, 402 insertions(+), 100 deletions(-) rename src/java/org/mxchange/pizzaapplication/beans/{businessdata/PizzaAdminBusinessDataWebSessionBean.java => business/basicdata/PizzaAdminBusinessDataWebRequestBean.java} (66%) rename src/java/org/mxchange/pizzaapplication/beans/{businessdata/PizzaAdminBusinessDataWebSessionController.java => business/basicdata/PizzaAdminBusinessDataWebRequestController.java} (70%) rename src/java/org/mxchange/pizzaapplication/beans/{businessdata => business/basicdata}/PizzaBusinessDataWebSessionBean.java (82%) rename src/java/org/mxchange/pizzaapplication/beans/{businessdata => business/basicdata}/PizzaBusinessDataWebSessionController.java (75%) create mode 100644 src/java/org/mxchange/pizzaapplication/beans/business/employee/PizzaAdminCompanyEmployeeWebRequestBean.java create mode 100644 src/java/org/mxchange/pizzaapplication/beans/business/employee/PizzaAdminCompanyEmployeeWebRequestController.java create mode 100644 src/java/org/mxchange/pizzaapplication/beans/business/employee/PizzaCompanyEmployeeWebRequestBean.java create mode 100644 src/java/org/mxchange/pizzaapplication/beans/business/employee/PizzaCompanyEmployeeWebSessionController.java diff --git a/src/java/org/mxchange/pizzaapplication/beans/businessdata/PizzaAdminBusinessDataWebSessionBean.java b/src/java/org/mxchange/pizzaapplication/beans/business/basicdata/PizzaAdminBusinessDataWebRequestBean.java similarity index 66% rename from src/java/org/mxchange/pizzaapplication/beans/businessdata/PizzaAdminBusinessDataWebSessionBean.java rename to src/java/org/mxchange/pizzaapplication/beans/business/basicdata/PizzaAdminBusinessDataWebRequestBean.java index 95c9b6fc..95f9b848 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/businessdata/PizzaAdminBusinessDataWebSessionBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/business/basicdata/PizzaAdminBusinessDataWebRequestBean.java @@ -14,9 +14,8 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ -package org.mxchange.pizzaapplication.beans.businessdata; +package org.mxchange.pizzaapplication.beans.business.basicdata; -import java.util.List; import javax.annotation.PostConstruct; import javax.enterprise.context.SessionScoped; import javax.faces.view.facelets.FaceletException; @@ -24,10 +23,12 @@ import javax.inject.Named; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; -import org.mxchange.jcontactsbusiness.basicdata.BusinessBasicData; +import org.mxchange.jcontactsbusiness.basicdata.AdminBusinessDataSessionBeanRemote; +import org.mxchange.jcontactsbusiness.employee.Employee; +import org.mxchange.jcontactsbusiness.headquarters.HeadQuartersData; import org.mxchange.jcountry.data.Country; +import org.mxchange.jusercore.model.user.User; import org.mxchange.pizzaapplication.beans.BasePizzaController; -import org.mxchange.jcontactsbusiness.basicdata.AdminBusinessDataSessionBeanRemote; /** * An administrative business contact bean (controller) @@ -36,7 +37,7 @@ import org.mxchange.jcontactsbusiness.basicdata.AdminBusinessDataSessionBeanRemo */ @Named ("adminBusinessDataController") @SessionScoped -public class PizzaAdminBusinessDataWebSessionBean extends BasePizzaController implements PizzaAdminBusinessDataWebSessionController { +public class PizzaAdminBusinessDataWebRequestBean extends BasePizzaController implements PizzaAdminBusinessDataWebRequestController { /** * Serial number @@ -49,25 +50,45 @@ public class PizzaAdminBusinessDataWebSessionBean extends BasePizzaController im private AdminBusinessDataSessionBeanRemote adminBusinessDataBean; /** - * A list of all registered companies (globally) + * Comments for this company */ - private List businessContacts; + private String companyComments; /** - * Comments for this company + * An employee as contact person with this company */ - private String companyComments; + private Employee companyContactEmployee; /** * Companies (main) email address (example: info@company.example) */ private String companyEmailAddress; + /** + * Head quarter data for this company + */ + private HeadQuartersData companyHeadQuarters; + /** * Company name */ private String companyName; + /** + * Tax number + */ + private String companyTaxNumber; + + /** + * Web site URL + */ + private String companyWebsiteUrl; + + /** + * Owning user instance (which this company is assigned to) + */ + private User contactCompanyUserOwner; + /** * Area code for fax number */ @@ -101,17 +122,11 @@ public class PizzaAdminBusinessDataWebSessionBean extends BasePizzaController im /** * Constructor */ - public PizzaAdminBusinessDataWebSessionBean () { + public PizzaAdminBusinessDataWebRequestBean () { // Call super constructor super(); } - @Override - @SuppressWarnings ("ReturnOfCollectionOrArrayField") - public List allBusinessContacts () { - return this.businessContacts; - } - /** * Getter for comments *

@@ -130,6 +145,24 @@ public class PizzaAdminBusinessDataWebSessionBean extends BasePizzaController im this.companyComments = companyComments; } + /** + * Getter for employee as contact person + *

+ * @return Employee as contact person + */ + public Employee getCompanyContactEmployee () { + return this.companyContactEmployee; + } + + /** + * Setter for employee as contact person + *

+ * @param companyContactEmployee Employee as contact person + */ + public void setCompanyContactEmployee (final Employee companyContactEmployee) { + this.companyContactEmployee = companyContactEmployee; + } + /** * Getter for company's (main) email address *

@@ -148,6 +181,24 @@ public class PizzaAdminBusinessDataWebSessionBean extends BasePizzaController im this.companyEmailAddress = companyEmailAddress; } + /** + * Getter for headquarters data + *

+ * @return Headquarters data + */ + public HeadQuartersData getCompanyHeadQuarters () { + return this.companyHeadQuarters; + } + + /** + * Setter for headquarters data + *

+ * @param companyHeadQuarters Headquarters data + */ + public void setCompanyHeadQuarters (final HeadQuartersData companyHeadQuarters) { + this.companyHeadQuarters = companyHeadQuarters; + } + /** * Getter for company name *

@@ -166,6 +217,60 @@ public class PizzaAdminBusinessDataWebSessionBean extends BasePizzaController im this.companyName = companyName; } + /** + * Getter for company tax number + *

+ * @return Company tax number + */ + public String getCompanyTaxNumber () { + return this.companyTaxNumber; + } + + /** + * Setter for company tax number + *

+ * @param companyTaxNumber Company tax number + */ + public void setCompanyTaxNumber (final String companyTaxNumber) { + this.companyTaxNumber = companyTaxNumber; + } + + /** + * Getter for company web site URL + *

+ * @return Company web site URL + */ + public String getCompanyWebsiteUrl () { + return this.companyWebsiteUrl; + } + + /** + * Getter for company web site URL + *

+ * @param companyWebsiteUrl Company web site URL + */ + public void setCompanyWebsiteUrl (final String companyWebsiteUrl) { + this.companyWebsiteUrl = companyWebsiteUrl; + } + + /** + * Getter for owning user instance + *

+ * @return Owning user instance + */ + public User getContactCompanyUserOwner () { + return this.contactCompanyUserOwner; + } + + /** + * Setter for owning user instance + *

+ * @param contactCompanyUserOwner Owning user instance + */ + public void setContactCompanyUserOwner (final User contactCompanyUserOwner) { + this.contactCompanyUserOwner = contactCompanyUserOwner; + } + /** * Getter for fax number's area code *

@@ -285,14 +390,11 @@ public class PizzaAdminBusinessDataWebSessionBean extends BasePizzaController im Context context = new InitialContext(); // Try to lookup - this.adminBusinessDataBean = (AdminBusinessDataSessionBeanRemote) context.lookup("java:global/pizzaapplication-ejb/adminBusinessData!org.mxchange.jcontactsbusiness.basicdata.BusinessDataAdminSessionBeanRemote"); //NOI18N + this.adminBusinessDataBean = (AdminBusinessDataSessionBeanRemote) context.lookup("java:global/jfinancials-ejb/adminBusinessData!org.mxchange.jcontactsbusiness.basicdata.BusinessDataAdminSessionBeanRemote"); //NOI18N } catch (final NamingException e) { // Throw again throw new FaceletException(e); } - - // Init user's contact list - this.businessContacts = this.adminBusinessDataBean.allBusinessContacts(); } } diff --git a/src/java/org/mxchange/pizzaapplication/beans/businessdata/PizzaAdminBusinessDataWebSessionController.java b/src/java/org/mxchange/pizzaapplication/beans/business/basicdata/PizzaAdminBusinessDataWebRequestController.java similarity index 70% rename from src/java/org/mxchange/pizzaapplication/beans/businessdata/PizzaAdminBusinessDataWebSessionController.java rename to src/java/org/mxchange/pizzaapplication/beans/business/basicdata/PizzaAdminBusinessDataWebRequestController.java index 6ace790b..7b2e8147 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/businessdata/PizzaAdminBusinessDataWebSessionController.java +++ b/src/java/org/mxchange/pizzaapplication/beans/business/basicdata/PizzaAdminBusinessDataWebRequestController.java @@ -14,24 +14,15 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ -package org.mxchange.pizzaapplication.beans.businessdata; +package org.mxchange.pizzaapplication.beans.business.basicdata; import java.io.Serializable; -import java.util.List; -import org.mxchange.jcontactsbusiness.basicdata.BusinessBasicData; /** * An interface for session-scoped financial controller *

* @author Roland Häder */ -public interface PizzaAdminBusinessDataWebSessionController extends Serializable { - - /** - * Returns a list of all business contacts - *

- * @return A list of all business contacts - */ - List allBusinessContacts (); +public interface PizzaAdminBusinessDataWebRequestController extends Serializable { } diff --git a/src/java/org/mxchange/pizzaapplication/beans/businessdata/PizzaBusinessDataWebSessionBean.java b/src/java/org/mxchange/pizzaapplication/beans/business/basicdata/PizzaBusinessDataWebSessionBean.java similarity index 82% rename from src/java/org/mxchange/pizzaapplication/beans/businessdata/PizzaBusinessDataWebSessionBean.java rename to src/java/org/mxchange/pizzaapplication/beans/business/basicdata/PizzaBusinessDataWebSessionBean.java index c6dae5d5..cb060dd3 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/businessdata/PizzaBusinessDataWebSessionBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/business/basicdata/PizzaBusinessDataWebSessionBean.java @@ -14,19 +14,23 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ -package org.mxchange.pizzaapplication.beans.businessdata; +package org.mxchange.pizzaapplication.beans.business.basicdata; +import java.util.List; import javax.annotation.PostConstruct; import javax.enterprise.context.SessionScoped; import javax.faces.view.facelets.FaceletException; +import javax.inject.Inject; import javax.inject.Named; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; +import org.mxchange.jcontactsbusiness.basicdata.AdminBusinessDataSessionBeanRemote; +import org.mxchange.jcontactsbusiness.basicdata.BusinessBasicData; import org.mxchange.jcontactsbusiness.basicdata.BusinessDataSessionBeanRemote; -import org.mxchange.jcontactsbusiness.employee.Employee; import org.mxchange.jcountry.data.Country; import org.mxchange.pizzaapplication.beans.BasePizzaController; +import org.mxchange.pizzaapplication.beans.user.login.PizzaUserLoginWebSessionController; /** * A business contact bean (controller) @@ -45,17 +49,22 @@ public class PizzaBusinessDataWebSessionBean extends BasePizzaController impleme /** * Remote contact bean */ - private BusinessDataSessionBeanRemote businessDataBean; + private AdminBusinessDataSessionBeanRemote adminBusinessDataBean; /** - * Comments for this company + * A list of all registered companies (globally) */ - private String companyComments; + private List businessContacts; + + /** + * Remote contact bean + */ + private BusinessDataSessionBeanRemote businessDataBean; /** - * An employee as contact person with this company + * Comments for this company */ - private Employee companyContactEmployee; + private String companyComments; /** * Companies (main) email address (example: info@company.example) @@ -97,6 +106,12 @@ public class PizzaBusinessDataWebSessionBean extends BasePizzaController impleme */ private Long landLineNumber; + /** + * User instance + */ + @Inject + private PizzaUserLoginWebSessionController userLoginController; + /** * Constructor */ @@ -105,6 +120,12 @@ public class PizzaBusinessDataWebSessionBean extends BasePizzaController impleme super(); } + @Override + @SuppressWarnings ("ReturnOfCollectionOrArrayField") + public List allBusinessContacts () { + return this.businessContacts; + } + /** * Getter for comments *

@@ -123,24 +144,6 @@ public class PizzaBusinessDataWebSessionBean extends BasePizzaController impleme this.companyComments = companyComments; } - /** - * Getter for employee as contact person - *

- * @return Employee as contact person - */ - public Employee getCompanyContactEmployee () { - return this.companyContactEmployee; - } - - /** - * Setter for employee as contact person - *

- * @param companyContactEmployee Employee as contact person - */ - public void setCompanyContactEmployee (final Employee companyContactEmployee) { - this.companyContactEmployee = companyContactEmployee; - } - /** * Getter for company's (main) email address *

@@ -296,11 +299,17 @@ public class PizzaBusinessDataWebSessionBean extends BasePizzaController impleme Context context = new InitialContext(); // Try to lookup - this.businessDataBean = (BusinessDataSessionBeanRemote) context.lookup("java:global/pizzaapplication-ejb/businessData!org.mxchange.jcontactsbusiness.basicdata.BusinessDataSessionBeanRemote"); //NOI18N + this.businessDataBean = (BusinessDataSessionBeanRemote) context.lookup("java:global/jfinancials-ejb/businessData!org.mxchange.jcontactsbusiness.basicdata.BusinessDataSessionBeanRemote"); //NOI18N + + // Try to lookup + this.adminBusinessDataBean = (AdminBusinessDataSessionBeanRemote) context.lookup("java:global/jfinancials-ejb/adminBusinessData!org.mxchange.jcontactsbusiness.basicdata.BusinessDataAdminSessionBeanRemote"); //NOI18N } catch (final NamingException e) { // Throw again throw new FaceletException(e); } + + // Init user's contact list + this.businessContacts = this.adminBusinessDataBean.allBusinessContacts(); } } diff --git a/src/java/org/mxchange/pizzaapplication/beans/businessdata/PizzaBusinessDataWebSessionController.java b/src/java/org/mxchange/pizzaapplication/beans/business/basicdata/PizzaBusinessDataWebSessionController.java similarity index 75% rename from src/java/org/mxchange/pizzaapplication/beans/businessdata/PizzaBusinessDataWebSessionController.java rename to src/java/org/mxchange/pizzaapplication/beans/business/basicdata/PizzaBusinessDataWebSessionController.java index eade4895..8d38ab73 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/businessdata/PizzaBusinessDataWebSessionController.java +++ b/src/java/org/mxchange/pizzaapplication/beans/business/basicdata/PizzaBusinessDataWebSessionController.java @@ -14,9 +14,11 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ -package org.mxchange.pizzaapplication.beans.businessdata; +package org.mxchange.pizzaapplication.beans.business.basicdata; import java.io.Serializable; +import java.util.List; +import org.mxchange.jcontactsbusiness.basicdata.BusinessBasicData; /** * An interface for session-scoped financial controller @@ -25,4 +27,11 @@ import java.io.Serializable; */ public interface PizzaBusinessDataWebSessionController extends Serializable { + /** + * Returns a list of all business contacts + *

+ * @return A list of all business contacts + */ + List allBusinessContacts (); + } diff --git a/src/java/org/mxchange/pizzaapplication/beans/business/employee/PizzaAdminCompanyEmployeeWebRequestBean.java b/src/java/org/mxchange/pizzaapplication/beans/business/employee/PizzaAdminCompanyEmployeeWebRequestBean.java new file mode 100644 index 00000000..8ca9eb0a --- /dev/null +++ b/src/java/org/mxchange/pizzaapplication/beans/business/employee/PizzaAdminCompanyEmployeeWebRequestBean.java @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2017 RRoland Häder + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +package org.mxchange.pizzaapplication.beans.business.employee; + +import javax.annotation.PostConstruct; +import javax.enterprise.context.RequestScoped; +import javax.faces.view.facelets.FaceletException; +import javax.inject.Named; +import javax.naming.Context; +import javax.naming.InitialContext; +import javax.naming.NamingException; +import org.mxchange.jcontactsbusiness.employee.AdminCompanyEmployeeSessionBeanRemote; +import org.mxchange.pizzaapplication.beans.BasePizzaController; + +/** + * A request-scoped bean for administrative purposes for company employees. + *

+ * @author Roland Häder + */ +@Named ("adminCompanyEmployeeController") +@RequestScoped +public class PizzaAdminCompanyEmployeeWebRequestBean extends BasePizzaController implements PizzaAdminCompanyEmployeeWebRequestController { + + /** + * Serial number + */ + private static final long serialVersionUID = 12_886_968_547_360L; + + /** + * EJB for administrative company employee purposes + */ + private AdminCompanyEmployeeSessionBeanRemote adminCompanyEmployeeBean; + + /** + * Default constructor + */ + public PizzaAdminCompanyEmployeeWebRequestBean () { + // Call super constructor + super(); + } + + /** + * Initialization method + */ + @PostConstruct + public void init () { + // Try it + try { + // Get initial context + Context context = new InitialContext(); + + // Try to lookup + this.adminCompanyEmployeeBean = (AdminCompanyEmployeeSessionBeanRemote) context.lookup("java:global/jfinancials-ejb/adminCompanyEmployee!org.mxchange.jcontactsbusiness.employee.AdminCompanyEmployeeSessionBeanRemote"); //NOI18N + } catch (final NamingException e) { + // Throw again + throw new FaceletException(e); + } + } + +} diff --git a/src/java/org/mxchange/pizzaapplication/beans/business/employee/PizzaAdminCompanyEmployeeWebRequestController.java b/src/java/org/mxchange/pizzaapplication/beans/business/employee/PizzaAdminCompanyEmployeeWebRequestController.java new file mode 100644 index 00000000..57332082 --- /dev/null +++ b/src/java/org/mxchange/pizzaapplication/beans/business/employee/PizzaAdminCompanyEmployeeWebRequestController.java @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2017 Roland Häder + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +package org.mxchange.pizzaapplication.beans.business.employee; + +import java.io.Serializable; + +/** + * An interface for request-scoped administrative company employee beans + *

+ * @author Roland Häder + */ +public interface PizzaAdminCompanyEmployeeWebRequestController extends Serializable { + +} diff --git a/src/java/org/mxchange/pizzaapplication/beans/business/employee/PizzaCompanyEmployeeWebRequestBean.java b/src/java/org/mxchange/pizzaapplication/beans/business/employee/PizzaCompanyEmployeeWebRequestBean.java new file mode 100644 index 00000000..82c5adf4 --- /dev/null +++ b/src/java/org/mxchange/pizzaapplication/beans/business/employee/PizzaCompanyEmployeeWebRequestBean.java @@ -0,0 +1,101 @@ +/* + * Copyright (C) 2017 RRoland Häder + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +package org.mxchange.pizzaapplication.beans.business.employee; + +import java.util.LinkedList; +import java.util.List; +import javax.annotation.PostConstruct; +import javax.enterprise.context.SessionScoped; +import javax.faces.view.facelets.FaceletException; +import javax.inject.Named; +import javax.naming.Context; +import javax.naming.InitialContext; +import javax.naming.NamingException; +import org.mxchange.jcontactsbusiness.employee.CompanyEmployeeSessionBeanRemote; +import org.mxchange.jcontactsbusiness.employee.Employee; +import org.mxchange.pizzaapplication.beans.BasePizzaController; + +/** + * A request-scoped bean for general purposes for company employees. + *

+ * @author Roland Häder + */ +@Named ("companyEmployeeController") +@SessionScoped +public class PizzaCompanyEmployeeWebRequestBean extends BasePizzaController implements PizzaCompanyEmployeeWebSessionController { + + /** + * Serial number + */ + private static final long serialVersionUID = 12_886_968_547_361L; + + /** + * EJB for general company employee purposes + */ + private CompanyEmployeeSessionBeanRemote companyEmployeeBean; + + /** + * List of all company employees + */ + private final List companyEmployees; + + /** + * Default constructor + */ + public PizzaCompanyEmployeeWebRequestBean () { + // Call super constructor + super(); + + // Init list instance + this.companyEmployees = new LinkedList<>(); + } + + /** + * Returns a list of all company employees + *

+ * @return List of all company employees + */ + @SuppressWarnings ("ReturnOfCollectionOrArrayField") + public List allCompanyEmployees () { + return this.companyEmployees; + } + + /** + * Initialization method + */ + @PostConstruct + public void init () { + // Try it + try { + // Get initial context + Context context = new InitialContext(); + + // Try to lookup + this.companyEmployeeBean = (CompanyEmployeeSessionBeanRemote) context.lookup("java:global/jfinancials-ejb/adminCompanyEmployee!org.mxchange.jcontactsbusiness.employee.CompanyEmployeeSessionBeanRemote"); //NOI18N + } catch (final NamingException e) { + // Throw again + throw new FaceletException(e); + } + + // Get all entries from remote bean + List employees = this.companyEmployeeBean.allCompanyEmployees(); + + // Copy it to main list + this.companyEmployees.addAll(employees); + } + +} diff --git a/src/java/org/mxchange/pizzaapplication/beans/business/employee/PizzaCompanyEmployeeWebSessionController.java b/src/java/org/mxchange/pizzaapplication/beans/business/employee/PizzaCompanyEmployeeWebSessionController.java new file mode 100644 index 00000000..cf39402e --- /dev/null +++ b/src/java/org/mxchange/pizzaapplication/beans/business/employee/PizzaCompanyEmployeeWebSessionController.java @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2017 Roland Häder + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +package org.mxchange.pizzaapplication.beans.business.employee; + +import java.io.Serializable; + +/** + * An interface for request-scoped general company employee beans + *

+ * @author Roland Häder + */ +public interface PizzaCompanyEmployeeWebSessionController extends Serializable { + +} diff --git a/web/WEB-INF/templates/admin/business_basic_data/admin_form_business_basic_data.tpl b/web/WEB-INF/templates/admin/business_basic_data/admin_form_business_basic_data.tpl index 0daf0e55..23ea3bbd 100644 --- a/web/WEB-INF/templates/admin/business_basic_data/admin_form_business_basic_data.tpl +++ b/web/WEB-INF/templates/admin/business_basic_data/admin_form_business_basic_data.tpl @@ -46,46 +46,6 @@ - -

- -
- -
- - - - - -
- -
- - - - - - - -
- -
- -
- - - - - -
- -
-
- - - - -
@@ -143,7 +103,7 @@ - +
@@ -163,7 +123,7 @@ - + -- 2.39.5