From: Roland Häder Date: Mon, 23 Oct 2017 19:46:52 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9e6862cc03b1d3a16f043224a17c4ee21863e913;p=jproduct-lib.git Continued: - "get" is for pure getters, better use "all" for this kind method of methods - "doAdminFoo" is old way, just "addSomeFoo()" is fine Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jproduct/model/category/AdminCategorySessionBeanRemote.java b/src/org/mxchange/jproduct/model/category/AdminCategorySessionBeanRemote.java index e2e00a7..50bf98c 100644 --- a/src/org/mxchange/jproduct/model/category/AdminCategorySessionBeanRemote.java +++ b/src/org/mxchange/jproduct/model/category/AdminCategorySessionBeanRemote.java @@ -37,6 +37,6 @@ public interface AdminCategorySessionBeanRemote extends Serializable { *

* @throws CategoryAlreadyAddedException If the category cannot be added */ - Category doAdminAddCategory (final Category category) throws CategoryAlreadyAddedException; + Category addProductCategory (final Category category) throws CategoryAlreadyAddedException; } diff --git a/src/org/mxchange/jproduct/model/product/AdminProductSessionBeanRemote.java b/src/org/mxchange/jproduct/model/product/AdminProductSessionBeanRemote.java index 8c3c179..346184c 100644 --- a/src/org/mxchange/jproduct/model/product/AdminProductSessionBeanRemote.java +++ b/src/org/mxchange/jproduct/model/product/AdminProductSessionBeanRemote.java @@ -37,6 +37,6 @@ public interface AdminProductSessionBeanRemote extends Serializable { *

* @throws ProductAlreadyAddedException If something unexpected happened */ - Product doAdminAddProduct (final Product product) throws ProductAlreadyAddedException; + Product addGenericProduct (final Product product) throws ProductAlreadyAddedException; } diff --git a/src/org/mxchange/jproduct/model/product/ProductSessionBeanRemote.java b/src/org/mxchange/jproduct/model/product/ProductSessionBeanRemote.java index f3ff691..89b6061 100644 --- a/src/org/mxchange/jproduct/model/product/ProductSessionBeanRemote.java +++ b/src/org/mxchange/jproduct/model/product/ProductSessionBeanRemote.java @@ -40,6 +40,6 @@ public interface ProductSessionBeanRemote extends Serializable { *

* @return Only available products */ - List getAvailableProducts (); + List allAvailableProducts (); }