01: /*
02: * Created on 2004-10-22
03: *
04: * TODO To change the template for this generated file go to
05: * Window - Preferences - Java - Code Style - Code Templates
06: */
07: package com.ibatis.jpetstore.service;
08:
09: import java.util.List;
10:
11: import com.ibatis.common.util.PaginatedList;
12: import com.ibatis.jpetstore.domain.Category;
13: import com.ibatis.jpetstore.domain.Item;
14: import com.ibatis.jpetstore.domain.Product;
15:
16: /**
17: * @author peter.cheng TODO To change the template for this generated type
18: * comment go to Window - Preferences - Java - Code Style - Code
19: * Templates
20: */
21: public interface CatalogService {
22: /* CATEGORY */
23:
24: public List getCategoryList();
25:
26: public Category getCategory(String categoryId);
27:
28: /* PRODUCT */
29:
30: public Product getProduct(String productId);
31:
32: public PaginatedList getProductListByCategory(String categoryId);
33:
34: public PaginatedList searchProductList(String keywords);
35:
36: /* ITEM */
37:
38: public PaginatedList getItemListByProduct(String productId);
39:
40: public Item getItem(String itemId);
41:
42: public boolean isItemInStock(String itemId);
43:
44: }
|