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));
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;
@NamedCache (cacheName = "categoryCache")
private Cache<Long, Category> 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
* <p>
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));
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;
@NamedCache (cacheName = "productCache")
private Cache<Long, Product> 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
* <p>