01: /*
02: * Copyright (c) 1999-2001 Lutris Technologies, Inc. All Rights
03: * Reserved.
04: *
05: * This source code file is distributed by Lutris Technologies, Inc. for
06: * use only by licensed users of product(s) that include this source
07: * file. Use of this source file or the software that uses it is covered
08: * by the terms and conditions of the Lutris Enhydra Development License
09: * 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 2006-09-11 12:29:26 sinisa 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 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 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 login, String password)
89: throws AirSentException;
90: }
|