01: /*
02: * $Id: Subscription.java 471754 2006-11-06 14:55:09Z husted $
03: *
04: * Licensed to the Apache Software Foundation (ASF) under one
05: * or more contributor license agreements. See the NOTICE file
06: * distributed with this work for additional information
07: * regarding copyright ownership. The ASF licenses this file
08: * to you under the Apache License, Version 2.0 (the
09: * "License"); you may not use this file except in compliance
10: * with the License. You may obtain a copy of the License at
11: *
12: * http://www.apache.org/licenses/LICENSE-2.0
13: *
14: * Unless required by applicable law or agreed to in writing,
15: * software distributed under the License is distributed on an
16: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17: * KIND, either express or implied. See the License for the
18: * specific language governing permissions and limitations
19: * under the License.
20: */
21:
22: package org.apache.struts.webapp.example;
23:
24: /**
25: * <p>A <strong>Subscription</strong> which is stored, along with the
26: * associated {@link User}, in a {@link UserDatabase}.</p>
27: *
28: * @author Craig R. McClanahan
29: * @version $Rev: 471754 $ $Date: 2006-11-06 08:55:09 -0600 (Mon, 06 Nov 2006) $
30: */
31:
32: public interface Subscription {
33:
34: // ------------------------------------------------------------- Properties
35:
36: /**
37: * Return the auto-connect flag.
38: */
39: public boolean getAutoConnect();
40:
41: /**
42: * Set the auto-connect flag.
43: *
44: * @param autoConnect The new auto-connect flag
45: */
46: public void setAutoConnect(boolean autoConnect);
47:
48: /**
49: * Return the host name.
50: */
51: public String getHost();
52:
53: /**
54: * Return the password.
55: */
56: public String getPassword();
57:
58: /**
59: * Set the password.
60: *
61: * @param password The new password
62: */
63: public void setPassword(String password);
64:
65: /**
66: * Return the subscription type.
67: */
68: public String getType();
69:
70: /**
71: * Set the subscription type.
72: *
73: * @param type The new subscription type
74: */
75: public void setType(String type);
76:
77: /**
78: * Return the {@link User} owning this Subscription.
79: */
80: public User getUser();
81:
82: /**
83: * Return the username.
84: */
85: public String getUsername();
86:
87: /**
88: * Set the username.
89: *
90: * @param username The new username
91: */
92: public void setUsername(String username);
93:
94: }
|