package org.mxchange.jshopcore.model.category;
import java.io.Serializable;
-import java.util.Deque;
+import java.util.List;
import javax.ejb.Remote;
-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
- */
- public void doAdminAddCategory (final Category category) throws CategoryTitleAlreadyUsedException;
-
/**
* Some "getter" for a linked list of all categories
*
* @return All categories
*/
- public Deque<Category> getAllCategories ();
+ public List<Category> getAllCategories ();
}