X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Forg%2Fmxchange%2Fjshopcore%2Fmodel%2Fproduct%2FProductSessionBeanRemote.java;h=a644d745324d0c8c258af6226106e0e60047fae0;hb=42f309299ed8ff01eaf5b605183bab1df23e6fa0;hp=da1aea38b63183e1bb8ff58c99d9386218dc91f1;hpb=664fafccb6e7b7c274dade1fbcd4c703f5ebc5b3;p=jcustomer-lib.git diff --git a/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java index da1aea3..a644d74 100644 --- a/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java @@ -17,41 +17,21 @@ package org.mxchange.jshopcore.model.product; import java.io.Serializable; -import java.util.Deque; +import java.util.List; import javax.ejb.Remote; -import org.mxchange.jshopcore.exceptions.CannotAddProductException; -import org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException; /** * An interface for non-admin purposes - * + *

* @author Roland Haeder */ @Remote public interface ProductSessionBeanRemote extends Serializable { - /** - * Adds given product to database. This method is typically used in admin - * area. - * - * @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, CannotAddProductException; - - /** - * Some "getter" for all products. This method is typically used in admin - * area. - * - * @return A Deque of all products - */ - public Deque getAllProducts (); - /** * Some "getter" for a linked list of only available products - * + *

* @return Only available products */ - public Deque getAvailableProducts (); + List getAvailableProducts (); }