View Javadoc
1   package info.ejava.examples.ejb.cdisales.bl;
2   
3   import java.util.List;
4   
5   import info.ejava.examples.ejb.cdisales.bo.Member;
6   import info.ejava.examples.ejb.cdisales.bo.Product;
7   import info.ejava.examples.ejb.cdisales.ejb.InvalidProduct;
8   
9   public interface ProductCatalog {
10      Product addProduct(Product product) throws InvalidProduct;
11      List<Product> getProductsForSale(Product template, int offset, int limit);
12      List<Product> getBuyerProducts(Member buyer, int offset, int limit);
13      List<Product> getSellerProducts(Member seller, int offset, int limit);
14      int remove(Product product);
15  }