+++ /dev/null
-/*
- * Copyright (C) 2015 Roland Haeder
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jcore.model.contact.gender;
-
-import java.io.Serializable;
-import java.util.List;
-import javax.ejb.Remote;
-
-/**
- * A remote interface for static shop data
- *
- * @author Roland Haeder<roland@mxchange.org>
- */
-@Remote
-public interface GenderSessionBeanRemote extends Serializable {
-
- /**
- * Getter for all genders as array
- *
- * @return All genders as array
- */
- public Gender[] allGenders ();
-
- /**
- * All selectable genders. This excludes UNKNOWN
- *
- * @return Selectable gender for the user
- */
- public List<Gender> selectableGenders ();
-}
--- /dev/null
+/*
+ * Copyright (C) 2015 Roland Haeder
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcore.model.contact.gender;
+
+import java.io.Serializable;
+import java.util.List;
+import javax.ejb.Remote;
+
+/**
+ * A remote interface for static shop data
+ *
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+@Remote
+public interface GenderStatefulBeanRemote extends Serializable {
+
+ /**
+ * Getter for all genders as array
+ *
+ * @return All genders as array
+ */
+ public Gender[] allGenders ();
+
+ /**
+ * All selectable genders. This excludes UNKNOWN
+ *
+ * @return Selectable gender for the user
+ */
+ public List<Gender> selectableGenders ();
+}
package org.mxchange.jshopcore.model.basket;
import java.io.Serializable;
-import java.util.Map;
import javax.ejb.Remote;
-import org.mxchange.jshopcore.exceptions.BasketItemAlreadyAddedException;
/**
* An interface for a basket bean
*/
@Remote
public interface BasketSessionBeanRemote extends Serializable {
-
- /**
- * Adds given item instance to this basket
- *
- * @param item Item instance to add
- * @throws org.mxchange.jshopcore.exceptions.BasketItemAlreadyAddedException If the item as already been added
- */
- public void addItem (final AddableBasketItem item) throws BasketItemAlreadyAddedException;
-
- /**
- * Checks if the basket is empty
- *
- * @return Whether the basket is empty
- */
- public boolean isEmpty ();
-
- /**
- * Checks whether the given product as already been added. If the product's
- * item id number was found in basket, the corresponding item instance will
- * be set
- *
- * @param item Item instance to check
- * @return Whether the given item has been found
- */
- public boolean isAdded (final AddableBasketItem item);
-
- /**
- * Some "getter" for all entries in this basket
- *
- * @return Map on all basket items
- */
- public Map<Long, AddableBasketItem> getAll ();
-
- /**
- * Getter for last entry
- *
- * @return Last added item in basket
- */
- public AddableBasketItem getLast ();
-
- /**
- * Getter for last num rows
- *
- * @return Last num rows
- */
- public int getLastNumRows ();
}
import java.io.Serializable;
import java.rmi.RemoteException;
import javax.ejb.Remote;
+import org.mxchange.jshopcore.exceptions.CannotAddCategoryException;
import org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException;
/**
* @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;
+ public void doAdminAddCategory (final Category category) throws RemoteException, 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;
/**
*
* @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;
+ public void doAdminAddCategory (final Category category) throws CategoryTitleAlreadyUsedException, CannotAddCategoryException;
/**
* Some "getter" for a linked list of all categories
import java.io.Serializable;
import java.util.Deque;
import javax.ejb.Remote;
+import org.mxchange.jshopcore.exceptions.CannotAddProductException;
import org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException;
/**
*
* @param product Product instance to add
* @throws org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException If the given product title is already used
+ * @throws org.mxchange.jshopcore.exceptions.CannotAddProductException If the product cannot be added
*/
- public void doAdminAddProduct (final Product product) throws ProductTitleAlreadyUsedException;
+ public void doAdminAddProduct (final Product product) throws ProductTitleAlreadyUsedException, CannotAddProductException;
/**
* Some "getter" for all products. This method is typically used in admin