From: Roland Haeder Date: Mon, 14 Sep 2015 06:26:16 +0000 (+0200) Subject: Moved admin method to admin interface X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1051537283a59c8dcba710dd188c10751aa73db2;p=jproduct-lib.git Moved admin method to admin interface Signed-off-by:Roland Häder --- 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 *