KickJava   Java API By Example, From Geeks To Geeks.

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


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: MessengerManager.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.messenger.Messenger;
24
25 /**
26  * Messenger factory class.
27  *
28  *
29  * @author
30  * @version %I%, %G%
31  */

32 public interface MessengerManager {
33
34     /**
35      * Creates an empty messenger.
36      *
37      *
38      * @return Messenger
39      *
40      * @throws AirSentException
41      *
42      *
43      */

44     public Messenger create() throws AirSentException;
45
46
47     public Messenger create(String JavaDoc id) throws AirSentException;
48
49     /**
50      * Find a Messenger by its badge.
51      *
52      *
53      * @param badge
54      *
55      * @return Messenger
56      *
57      * @throws AirSentException
58      *
59      *
60      */

61     public Messenger findByBadge(String JavaDoc badge)
62         throws AirSentException;
63
64     /**
65      * Validate a messengers password.
66      *
67      *
68      * @param badge
69      * @param password
70      *
71      * @return Messenger
72      *
73      * @throws AirSentException
74      *
75      *
76      */

77     public Messenger validatePassword(String JavaDoc badge, String JavaDoc password)
78         throws AirSentException;
79
80     /**
81      * Find a messenger by proximity using a geocode. NOT currently used.
82      *
83      *
84      * @param geocode
85      *
86      * @return Messenger
87      *
88      * @throws AirSentException
89      *
90      *
91      */

92     public Messenger findByProximity(String JavaDoc geocode)
93         throws AirSentException;
94
95     /**
96      * Get all the messengers.
97      *
98      *
99      * @return Messenger[]
100      *
101      * @throws AirSentException
102      *
103      *
104      */

105     public Messenger[] findAll() throws AirSentException;
106 }
107
108
109
110
Popular Tags