View Javadoc
1   /*
2    * 
3    * $Revision: 1.8 $
4    * $Date: 2005/03/15 21:16:21 $
5    *
6    * ====================================================================
7    * struts-it
8    * Copyright (C) 2004-2005 - Manfred Wolff and the strutsit community
9    * 
10   * Licensed under the Apache License, Version 2.0 (the "License");
11   * you may not use this file except in compliance with the License.
12   * You may obtain a copy of the License at
13   * 
14   *      http://www.apache.org/licenses/LICENSE-2.0
15   * 
16   * Unless required by applicable law or agreed to in writing, software
17   * distributed under the License is distributed on an "AS IS" BASIS,
18   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19   * See the License for the specific language governing permissions and
20   * limitations under the License.
21   *
22   * Projekt       : struts-it solutions for webbased projects
23   * Part          : demo application for the struts-it architecture
24   * Created       : 26.02.2005 mwolff
25   */
26  package org.struts.velocity.demo.login;
27  
28  import javax.servlet.http.HttpServletRequest;
29  
30  import org.apache.struts.action.ActionMapping;
31  import org.apache.struts.validator.ValidatorForm;
32  
33  /***
34   * Demonstrates:
35   * <ul>
36   * <li></li>
37   * </ul>
38   *  
39   * @author <a href="mailto:wolff@struts-it.de">Manfred Wolff</a>
40   * @since JDK 1.4
41   * @version $Revision: 1.8 $
42   */
43  public class AddAccountForm extends ValidatorForm {
44  
45      /***
46       * VersionUID, because super class enhanced serializable
47       */
48      private static final long serialVersionUID = 1L;
49  
50      /// Prename of the account owner
51      private String prename;
52  
53      /// Name of the account owner
54      private String name;
55  
56      /// email of the account owner
57      private String email;
58  
59      /// login-name of the account owner
60      private String loginName;
61  
62      /// login-name of the account owner
63      private String password;
64  
65      /***
66       * @return Returns the email.
67       */
68      public String getEmail() {
69          return email;
70      }
71  
72      /***
73       * @param email
74       *            The email to set.
75       */
76      public void setEmail(String email) {
77          this.email = email;
78      }
79  
80      /***
81       * @return Returns the loginName.
82       */
83      public String getLoginName() {
84          return loginName;
85      }
86  
87      /***
88       * @param loginName
89       *            The loginName to set.
90       */
91      public void setLoginName(String loginName) {
92          this.loginName = loginName;
93      }
94  
95      /***
96       * @return Returns the name.
97       */
98      public String getName() {
99          return name;
100     }
101 
102     /***
103      * @param name
104      *            The name to set.
105      */
106     public void setName(String name) {
107         this.name = name;
108     }
109 
110     /***
111      * @return Returns the prename.
112      */
113     public String getPrename() {
114         return prename;
115     }
116 
117     /***
118      * @param prename
119      *            The prename to set.
120      */
121     public void setPrename(String prename) {
122         this.prename = prename;
123     }
124 
125     /***
126      * @return Returns the password.
127      */
128     public String getPassword() {
129         return password;
130     }
131 
132     /***
133      * @param password
134      *            The password to set.
135      */
136     public void setPassword(String password) {
137         this.password = password;
138     }
139 
140     /***
141      * Resets the form
142      */
143     public void reset(ActionMapping mapping, HttpServletRequest request) {
144         setLoginName("");
145         setPassword("");
146     }
147 
148 }