1 16 package johnmammen.betterpetshop.service; 17 18 19 import java.sql.SQLException ; 20 import java.util.Map ; 21 22 23 import org.apache.tapestry.pets.domain.model.ICustomer; 24 import org.apache.tapestry.pets.domain.model.IInventory; 25 import org.apache.tapestry.pets.domain.model.IItem; 26 import org.apache.tapestry.pets.domain.model.IProduct; 27 import org.apache.tapestry.pets.domain.model.IShoppingCart; 28 import org.apache.tapestry.pets.domain.model.IUserLogin; 29 30 import org.springframework.dao.DataAccessException; 31 32 33 37 public interface PetshopManager{ 38 39 43 public String getBannerPath(String favCategory); 44 45 49 public ICustomer authenticate(IUserLogin signOn); 51 52 56 public ICustomer accountInfo(String userID); 57 58 62 public boolean add(ICustomer newcustomer, IUserLogin userLogin); 63 64 67 public void updateAccount(ICustomer customer); 68 69 73 public IProduct[] getProducts () throws SQLException ; 74 75 79 public IItem[] getItemsByProduct(String prodid); 80 81 85 public IItem getItem(String itemID); 86 87 92 public String addOrder(Map orderInfo, IShoppingCart cart); 93 94 99 public IProduct[] findByCategory(String catid) throws DataAccessException; 100 101 105 public IProduct[] findBySearchCriteria(String searchText); 106 107 111 public IInventory[] getInventory(String csvItemList); 112 113 } | Popular Tags |