]> git.mxchange.org Git - jproduct-lib.git/commitdiff
Moved admin method to admin interface
authorRoland Haeder <roland@mxchange.org>
Mon, 14 Sep 2015 06:26:16 +0000 (08:26 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 14 Sep 2015 06:26:16 +0000 (08:26 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java
src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java

index 6217ca0b483c657a87074b60c14bab442781054a..27273d59f82c21813b399f3a62947bd1deb3b0ad 100644 (file)
@@ -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;
 }
index 875a094d1fc79a6107a576ed5b321fe11e794544..5194f4a1a9e00bd50158e608a0f8c9a0d58ea927 100644 (file)
@@ -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
         *