From: Roland Häder Date: Mon, 23 Oct 2017 21:22:08 +0000 (+0200) Subject: Maybe cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5feee5453686595c3783a46724655f761cc4bf12;p=jfinancials-war.git Maybe cherry-pick: - methods had been unified, need to rename here, to - added default constructors, invoking super constructor and initializing list Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/jfinancials/beans/category/FinancialAdminCategoryWebRequestBean.java b/src/java/org/mxchange/jfinancials/beans/category/FinancialAdminCategoryWebRequestBean.java index 8acb6c52..ff82752b 100644 --- a/src/java/org/mxchange/jfinancials/beans/category/FinancialAdminCategoryWebRequestBean.java +++ b/src/java/org/mxchange/jfinancials/beans/category/FinancialAdminCategoryWebRequestBean.java @@ -92,7 +92,7 @@ public class FinancialAdminCategoryWebRequestBean extends BaseFinancialsBean imp category.setCategoryTitle(this.getCategoryTitle()); // Deligate to remote bean - final Category updatedCategory = this.categoryBean.doAdminAddCategory(category); + final Category updatedCategory = this.categoryBean.addProductCategory(category); // Fire event this.categoryAddedEvent.fire(new CategoryAddedEvent(updatedCategory)); diff --git a/src/java/org/mxchange/jfinancials/beans/category/FinancialCategoryWebRequestBean.java b/src/java/org/mxchange/jfinancials/beans/category/FinancialCategoryWebRequestBean.java index 506e99b8..d9d588c9 100644 --- a/src/java/org/mxchange/jfinancials/beans/category/FinancialCategoryWebRequestBean.java +++ b/src/java/org/mxchange/jfinancials/beans/category/FinancialCategoryWebRequestBean.java @@ -20,6 +20,7 @@ import fish.payara.cdi.jsr107.impl.NamedCache; import java.text.MessageFormat; import java.util.Comparator; import java.util.Iterator; +import java.util.LinkedList; import java.util.List; import javax.annotation.PostConstruct; import javax.cache.Cache; @@ -66,6 +67,17 @@ public class FinancialCategoryWebRequestBean extends BaseFinancialsBean implemen @NamedCache (cacheName = "categoryCache") private Cache categoryCache; + /** + * Default constructor + */ + public FinancialCategoryWebRequestBean () { + // Call super constructor + super(); + + // Init list + this.allCategories = new LinkedList<>(); + } + /** * Observes events fired after a new product category has been added *

diff --git a/src/java/org/mxchange/jfinancials/beans/product/FinancialAdminProductWebRequestBean.java b/src/java/org/mxchange/jfinancials/beans/product/FinancialAdminProductWebRequestBean.java index f22a312e..8419a169 100644 --- a/src/java/org/mxchange/jfinancials/beans/product/FinancialAdminProductWebRequestBean.java +++ b/src/java/org/mxchange/jfinancials/beans/product/FinancialAdminProductWebRequestBean.java @@ -105,7 +105,7 @@ public class FinancialAdminProductWebRequestBean extends BaseFinancialsBean impl product.setProductTitle(this.getProductTitle()); // Call bean - final Product updatedProduct = this.productRemoteBean.doAdminAddProduct(product); + final Product updatedProduct = this.productRemoteBean.addGenericProduct(product); // Fire event this.addedProductEvent.fire(new ProductAddedEvent(updatedProduct)); diff --git a/src/java/org/mxchange/jfinancials/beans/product/FinancialProductWebRequestBean.java b/src/java/org/mxchange/jfinancials/beans/product/FinancialProductWebRequestBean.java index 9d9fb532..88da637e 100644 --- a/src/java/org/mxchange/jfinancials/beans/product/FinancialProductWebRequestBean.java +++ b/src/java/org/mxchange/jfinancials/beans/product/FinancialProductWebRequestBean.java @@ -20,6 +20,7 @@ import fish.payara.cdi.jsr107.impl.NamedCache; import java.text.MessageFormat; import java.util.Comparator; import java.util.Iterator; +import java.util.LinkedList; import java.util.List; import javax.annotation.PostConstruct; import javax.cache.Cache; @@ -67,6 +68,17 @@ public class FinancialProductWebRequestBean extends BaseFinancialsBean implement @NamedCache (cacheName = "productCache") private Cache productCache; + /** + * Default constructor + */ + public FinancialProductWebRequestBean () { + // Call super constructor + super(); + + // Init list + this.allProducts = new LinkedList<>(); + } + /** * Observes events fired after a new product has been added *