KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > lutris > airsent > spec > customer > CustomerManager


1 /*
2  * Copyright (c) 1999-2001 Lutris Technologies, Inc. All Rights
3  * Reserved.
4  *
5  * This source code file is distributed by Lutris Technologies, Inc. for
6  * use only by licensed users of product(s) that include this source
7  * file. Use of this source file or the software that uses it is covered
8  * by the terms and conditions of the Lutris Enhydra Development License
9  * Agreement included with this product.
10  *
11  * This Software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
12  * ANY KIND, either express or implied. See the License for the specific terms
13  * governing rights and limitations under the License.
14  *
15  * Contributor(s):
16  *
17  * $Id: CustomerManager.java,v 1.1 2004/08/16 09:33:18 slobodan Exp $
18  */

19
20 package com.lutris.airsent.spec.customer;
21
22 import com.lutris.airsent.spec.AirSentException;
23 import com.lutris.airsent.spec.customer.Customer;
24
25 /**
26  * Interface declaration
27  *
28  *
29  * @author joseph shoop
30  * @version %I%, %G%
31  */

32 public interface CustomerManager {
33
34     /**
35      * Creates a new customer.
36      *
37      *
38      * @return new customer.
39      *
40      * @throws AirSentBusinessException
41      *
42      *
43      */

44     public Customer create() throws AirSentException;
45
46     /**
47      * Finds a customer by business.
48      *
49      *
50      * @param business
51      *
52      * @return Customer
53      *
54      * @throws AirSentBusinessException
55      *
56      *
57      */

58     public Customer findByBusiness(String JavaDoc business)
59         throws AirSentException;
60
61     /**
62      * Gets a customer by login.
63      *
64      *
65      * @param login
66      *
67      * @return Customer
68      *
69      * @throws AirSentBusinessException
70      *
71      *
72      */

73     public Customer findByLogin(String JavaDoc login) throws AirSentException;
74
75     /**
76      * Validates a customer based on login and password.
77      *
78      *
79      * @param login
80      * @param password
81      *
82      * @return Customer
83      *
84      * @throws AirSentBusinessException
85      *
86      *
87      */

88     public Customer validatePassword(String JavaDoc login, String JavaDoc password)
89         throws AirSentException;
90 }
91
92
Popular Tags