KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > struts > webapp > example > Subscription


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

18
19
20 package org.apache.struts.webapp.example;
21
22
23 /**
24  * <p>A <strong>Subscription</strong> which is stored, along with the
25  * associated {@link User}, in a {@link UserDatabase}.</p>
26  *
27  * @version $Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $
28  */

29
30 public interface Subscription {
31
32
33     // ------------------------------------------------------------- Properties
34

35
36     /**
37      * Return the auto-connect flag.
38      */

39     public boolean getAutoConnect();
40
41
42     /**
43      * Set the auto-connect flag.
44      *
45      * @param autoConnect The new auto-connect flag
46      */

47     public void setAutoConnect(boolean autoConnect);
48
49
50     /**
51      * Return the host name.
52      */

53     public String JavaDoc getHost();
54
55
56     /**
57      * Return the password.
58      */

59     public String JavaDoc getPassword();
60
61
62     /**
63      * Set the password.
64      *
65      * @param password The new password
66      */

67     public void setPassword(String JavaDoc password);
68
69
70     /**
71      * Return the subscription type.
72      */

73     public String JavaDoc getType();
74
75
76     /**
77      * Set the subscription type.
78      *
79      * @param type The new subscription type
80      */

81     public void setType(String JavaDoc type);
82
83
84     /**
85      * Return the {@link User} owning this Subscription.
86      */

87     public User getUser();
88
89
90     /**
91      * Return the username.
92      */

93     public String JavaDoc getUsername();
94
95
96     /**
97      * Set the username.
98      *
99      * @param username The new username
100      */

101     public void setUsername(String JavaDoc username);
102
103
104 }
105
Popular Tags