KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > lutris > airsent > spec > messenger > Messenger


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: Messenger.java,v 1.1 2004/08/16 09:33:18 slobodan Exp $
18  */

19
20 package com.lutris.airsent.spec.messenger;
21
22 import com.lutris.airsent.spec.AirSentException;
23 import com.lutris.airsent.spec.address.Address;
24
25 /**
26  * Messenger interface
27  */

28 public interface Messenger extends java.io.Serializable JavaDoc {
29
30     /**
31      * maximum size for badge
32      */

33     public static int MAX_BADGE = 32;
34
35     /**
36      * maximum size for geocode
37      */

38     public static int MAX_GEOCODE = 32;
39     
40     /**
41      * maximum size for password
42      */

43     public static int MAX_PASSWORD = 32;
44     
45     /**
46      * Get messengers database handle
47      *
48      * @return database id
49      * @exception if an error occurs
50      */

51     public String JavaDoc getHandle()
52         throws AirSentException;
53
54     /**
55      * Get first name.
56      *
57      * @return first name
58      * @exception if an error occurs
59      */

60     public String JavaDoc getFirstName()
61         throws AirSentException;
62
63     /**
64      * Set first name.
65      *
66      * @param first first name
67      * @exception if an error occurs
68      * @exception if business rules are violated
69      */

70     public void setFirstName(String JavaDoc first)
71         throws AirSentException;
72
73     /**
74      * Get last name.
75      *
76      * @return last name
77      * @exception if an error occurs
78      */

79     public String JavaDoc getLastName()
80         throws AirSentException;
81
82     /**
83      * Set last name.
84      *
85      * @param last
86      * @exception if an error occurs
87      * @exception if business rules are violated
88      */

89     public void setLastName(String JavaDoc last)
90         throws AirSentException;
91
92     /**
93      * Gets the address.
94      *
95      * @return address
96      * @exception if an error occurs
97      */

98     public Address getAddress()
99         throws AirSentException;
100
101     /**
102      * Get badge.
103      *
104      * @return badge
105      * @exception if an error occurs
106      */

107     public String JavaDoc getBadge()
108         throws AirSentException;
109
110     /**
111      * Set the badge
112      *
113      * @exception if an error occurs
114      * @exception if business rules are violated
115      */

116     public void setBadge(String JavaDoc badge)
117         throws AirSentException;
118
119     /**
120      * Get password.
121      *
122      * @return password
123      * @exception if an error occurs
124      */

125     public String JavaDoc getPassword()
126         throws AirSentException;
127
128     /**
129      * Set password.
130      *
131      * @exception if an error occurs
132      * @exception if business rules are violated
133      */

134     public void setPassword(String JavaDoc password)
135         throws AirSentException;
136
137     /**
138      * Get email.
139      *
140      * @return email address
141      * @exception if an error occurs
142      */

143     public String JavaDoc getEmail()
144         throws AirSentException;
145
146     /**
147      * Set Email.
148      *
149      * @param email
150      * @exception if an error occurs
151      * @exception if business rules are violated
152      */

153     public void setEmail(String JavaDoc email)
154         throws AirSentException;
155
156     /**
157      * Gets the geocode. NOT currently used.
158      *
159      * @return code
160      * @exception if an error occurs
161      */

162     public String JavaDoc getGeocode()
163         throws AirSentException;
164
165     /**
166      * Saves the messenger.
167      *
168      * @exception if an error occurs
169      */

170     public void save()
171         throws AirSentException;
172
173     /**
174      * Deletes the messenger.
175      *
176      * @exception if an error occurs
177      */

178     public void delete()
179         throws AirSentException;
180
181 }
182
183
Popular Tags