KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > johnmammen > betterpetshop > service > PetshopManager


1 /*
2 Copyright 2004 John S. Mammen
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8     http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */

16 package johnmammen.betterpetshop.service;
17
18
19 import java.sql.SQLException JavaDoc;
20 import java.util.Map JavaDoc;
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 /**
34  * @author admin
35  *
36  */

37 public interface PetshopManager{
38
39     /**
40      * @param favCategory
41      * @return
42      */

43     public String JavaDoc getBannerPath(String JavaDoc favCategory);
44
45     /**
46      * @param signOn
47      * @return
48      */

49     //public UseraccountBean login(IUserLogin signOn);
50
public ICustomer authenticate(IUserLogin signOn);
51
52     /**
53      * @param userID
54      * @return
55      */

56     public ICustomer accountInfo(String JavaDoc userID);
57
58     /**
59      * @param newcustomer
60      * @param userLogin
61      */

62     public boolean add(ICustomer newcustomer, IUserLogin userLogin);
63
64     /**
65      * @param customer
66      */

67     public void updateAccount(ICustomer customer);
68
69     /**
70      * @return
71      * @throws SQLException
72      */

73     public IProduct[] getProducts () throws SQLException JavaDoc ;
74
75     /**
76      * @param prodid
77      * @return
78      */

79     public IItem[] getItemsByProduct(String JavaDoc prodid);
80
81     /**
82      * @param itemID
83      * @return
84      */

85     public IItem getItem(String JavaDoc itemID);
86
87     /**
88      * @param orderInfo
89      * @param cart
90      * @return
91      */

92     public String JavaDoc addOrder(Map JavaDoc orderInfo, IShoppingCart cart);
93
94     /**
95      * @param catid
96      * @return
97      * @throws DataAccessException
98      */

99     public IProduct[] findByCategory(String JavaDoc catid) throws DataAccessException;
100
101     /**
102      * @param searchText
103      * @return
104      */

105     public IProduct[] findBySearchCriteria(String JavaDoc searchText);
106
107     /**
108      * @param csvItemList
109      * @return
110      */

111     public IInventory[] getInventory(String JavaDoc csvItemList);
112
113 }
Popular Tags