From 1051537283a59c8dcba710dd188c10751aa73db2 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 14 Sep 2015 08:26:16 +0200 Subject: [PATCH] =?utf8?q?Moved=20admin=20method=20to=20admin=20interface?= =?utf8?q?=20Signed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../category/AdminCategorySessionBeanRemote.java | 4 +--- .../model/category/CategorySessionBeanRemote.java | 12 ------------ 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java b/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java index 6217ca0..27273d5 100644 --- a/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java @@ -17,7 +17,6 @@ package org.mxchange.jshopcore.model.category; import java.io.Serializable; -import java.rmi.RemoteException; import javax.ejb.Remote; import org.mxchange.jshopcore.exceptions.CannotAddCategoryException; import org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException; @@ -34,9 +33,8 @@ public interface AdminCategorySessionBeanRemote extends Serializable { * Adds given category data from request to database * * @param category Category instance - * @throws java.rmi.RemoteException If something unexpected happened * @throws org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException If the given title is already used * @throws org.mxchange.jshopcore.exceptions.CannotAddCategoryException If the category cannot be added */ - public void doAdminAddCategory (final Category category) throws RemoteException, CategoryTitleAlreadyUsedException, CannotAddCategoryException; + public void 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 index 875a094..5194f4a 100644 --- a/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java @@ -19,8 +19,6 @@ package org.mxchange.jshopcore.model.category; import java.io.Serializable; import java.util.Deque; import javax.ejb.Remote; -import org.mxchange.jshopcore.exceptions.CannotAddCategoryException; -import org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException; /** * A remote-call interface for the shop @@ -30,16 +28,6 @@ import org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException; @Remote public interface CategorySessionBeanRemote extends Serializable { - /** - * Adds given category to database. This method is intended to be used in - * admin area. - * - * @param category Category instance - * @throws org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException If the given category title is already used - * @throws org.mxchange.jshopcore.exceptions.CannotAddCategoryException If the category cannot be added - */ - public void doAdminAddCategory (final Category category) throws CategoryTitleAlreadyUsedException, CannotAddCategoryException; - /** * Some "getter" for a linked list of all categories * -- 2.39.5