From f95dc4d5323de047743c4bd3f1c60f8cf7dce8d4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 6 Aug 2017 23:27:53 +0200 Subject: [PATCH] moved to new project jproduct-lib MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../AdminCategorySessionBeanRemote.java | 46 ---------------- .../category/CategorySessionBeanRemote.java | 39 -------------- .../AdminProductSessionBeanRemote.java | 54 ------------------- .../product/ProductSessionBeanRemote.java | 39 -------------- 4 files changed, 178 deletions(-) delete mode 100644 src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java delete mode 100644 src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java delete mode 100644 src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java delete mode 100644 src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java diff --git a/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java b/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java deleted file mode 100644 index dcc2b87..0000000 --- a/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2016, 2017 Roland Häder - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * 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; - -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. - *

- * @author Roland Häder - */ -@Remote -public interface AdminCategorySessionBeanRemote extends Serializable { - - /** - * Adds given category data from request to database - *

- * @param category Category instance - *

- * @return Updated category instance - *

- * @throws CategoryTitleAlreadyUsedException If the given title is already - * used - * @throws CannotAddCategoryException If the category cannot be added - */ - Category doAdminAddCategory (final Category category) throws CategoryTitleAlreadyUsedException, CannotAddCategoryException; - -} diff --git a/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java b/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java deleted file mode 100644 index fc1cfa3..0000000 --- a/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2016, 2017 Roland Häder - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * 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; - -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 - *

- * @author Roland Häder - */ -@Remote -public interface CategorySessionBeanRemote extends Serializable { - - /** - * Some "getter" for a linked list of all categories - *

- * @return All categories - */ - List getAllCategories (); - -} diff --git a/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java deleted file mode 100644 index 8e926ff..0000000 --- a/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2016, 2017 Roland Häder - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * 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; - -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 - *

- * @author Roland Häder - */ -@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 - *

- * @param product Product instance - *

- * @return Updated product instance - *

- * @throws ProductTitleAlreadyUsedException If the given product title is - * already used - * @throws CannotAddProductException If something unexpected happened - */ - Product doAdminAddProduct (final Product product) throws ProductTitleAlreadyUsedException, CannotAddProductException; - -} diff --git a/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java deleted file mode 100644 index c77b206..0000000 --- a/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2016, 2017 Roland Häder - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * 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; - -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 - *

- * @author Roland Häder - */ -@Remote -public interface ProductSessionBeanRemote extends Serializable { - - /** - * Some "getter" for a linked list of only available products - *

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