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;
* 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;
}
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
@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
*