From 215b6e8a145bc5b3c9307df1dc105eeac81b0118 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 14 Oct 2017 01:19:40 +0200 Subject: [PATCH] Continued: - moved to proper package, same as core - moved+renamed getAllProducts() -> allProducts() into general remote interface MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../category/AdminCategorySessionBeanRemote.java | 3 +-- .../model/category/CategorySessionBeanRemote.java | 5 ++--- .../model/product/AdminProductSessionBeanRemote.java | 11 +---------- .../model/product/ProductSessionBeanRemote.java | 10 ++++++++-- 4 files changed, 12 insertions(+), 17 deletions(-) rename src/org/mxchange/{jshopcore => jproduct}/model/category/AdminCategorySessionBeanRemote.java (93%) rename src/org/mxchange/{jshopcore => jproduct}/model/category/CategorySessionBeanRemote.java (88%) rename src/org/mxchange/{jshopcore => jproduct}/model/product/AdminProductSessionBeanRemote.java (85%) rename src/org/mxchange/{jshopcore => jproduct}/model/product/ProductSessionBeanRemote.java (87%) diff --git a/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java b/src/org/mxchange/jproduct/model/category/AdminCategorySessionBeanRemote.java similarity index 93% rename from src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java rename to src/org/mxchange/jproduct/model/category/AdminCategorySessionBeanRemote.java index dcc2b87..0abd8a9 100644 --- a/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java +++ b/src/org/mxchange/jproduct/model/category/AdminCategorySessionBeanRemote.java @@ -14,13 +14,12 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package org.mxchange.jshopcore.model.category; +package org.mxchange.jproduct.model.category; import java.io.Serializable; import javax.ejb.Remote; import org.mxchange.jproduct.exceptions.CannotAddCategoryException; import org.mxchange.jproduct.exceptions.CategoryTitleAlreadyUsedException; -import org.mxchange.jproduct.model.category.Category; /** * An interface for categories for "ADMIN" role. diff --git a/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java b/src/org/mxchange/jproduct/model/category/CategorySessionBeanRemote.java similarity index 88% rename from src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java rename to src/org/mxchange/jproduct/model/category/CategorySessionBeanRemote.java index fc1cfa3..2f991b5 100644 --- a/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java +++ b/src/org/mxchange/jproduct/model/category/CategorySessionBeanRemote.java @@ -14,12 +14,11 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package org.mxchange.jshopcore.model.category; +package org.mxchange.jproduct.model.category; import java.io.Serializable; import java.util.List; import javax.ejb.Remote; -import org.mxchange.jproduct.model.category.Category; /** * A remote-call interface for the shop @@ -34,6 +33,6 @@ public interface CategorySessionBeanRemote extends Serializable { *

* @return All categories */ - List getAllCategories (); + List allCategories (); } diff --git a/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java b/src/org/mxchange/jproduct/model/product/AdminProductSessionBeanRemote.java similarity index 85% rename from src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java rename to src/org/mxchange/jproduct/model/product/AdminProductSessionBeanRemote.java index 8e926ff..a4224af 100644 --- a/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java +++ b/src/org/mxchange/jproduct/model/product/AdminProductSessionBeanRemote.java @@ -14,14 +14,12 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package org.mxchange.jshopcore.model.product; +package org.mxchange.jproduct.model.product; import java.io.Serializable; -import java.util.List; import javax.ejb.Remote; import org.mxchange.jproduct.exceptions.CannotAddProductException; import org.mxchange.jproduct.exceptions.ProductTitleAlreadyUsedException; -import org.mxchange.jproduct.model.product.Product; /** * Product interface for "ADMIN" role @@ -31,13 +29,6 @@ import org.mxchange.jproduct.model.product.Product; @Remote public interface AdminProductSessionBeanRemote extends Serializable { - /** - * Some "getter" for a linked list of all products - *

- * @return All products - */ - List getAllProducts (); - /** * Adds given product data from request to database *

diff --git a/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java b/src/org/mxchange/jproduct/model/product/ProductSessionBeanRemote.java similarity index 87% rename from src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java rename to src/org/mxchange/jproduct/model/product/ProductSessionBeanRemote.java index c77b206..f3ff691 100644 --- a/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java +++ b/src/org/mxchange/jproduct/model/product/ProductSessionBeanRemote.java @@ -14,12 +14,11 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package org.mxchange.jshopcore.model.product; +package org.mxchange.jproduct.model.product; import java.io.Serializable; import java.util.List; import javax.ejb.Remote; -import org.mxchange.jproduct.model.product.Product; /** * An interface for non-administrative purposes @@ -29,6 +28,13 @@ import org.mxchange.jproduct.model.product.Product; @Remote public interface ProductSessionBeanRemote extends Serializable { + /** + * Returns a list of all products + *

+ * @return All products + */ + List allProducts (); + /** * Some "getter" for a linked list of only available products *

-- 2.39.5