KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jmanage > webui > forms > UserForm


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

16 package org.jmanage.webui.forms;
17
18 import org.jmanage.core.auth.User;
19
20 /**
21  * Date : Jul 27, 2004 11:40:54 PM
22  * @author Shashank
23  */

24 public class UserForm extends BaseForm{
25
26     public static final String JavaDoc FORM_PASSWORD = "$$$$$$$$";
27
28     private String JavaDoc username;
29     private String JavaDoc password;
30     private String JavaDoc confirmPassword;
31     private String JavaDoc role;
32
33     public String JavaDoc getStatus() {
34         if(status == null){
35             status = User.STATUS_ACTIVE;
36         }
37         return status;
38     }
39
40     public void setStatus(String JavaDoc status) {
41         this.status = status;
42     }
43
44     private String JavaDoc status;
45
46     public String JavaDoc getUsername() {
47         return username;
48     }
49
50     public void setUsername(String JavaDoc username) {
51         this.username = username;
52     }
53
54     public String JavaDoc getPassword() {
55         return password;
56     }
57
58     public void setPassword(String JavaDoc password) {
59         this.password = password;
60     }
61
62     public String JavaDoc getConfirmPassword() {
63         return confirmPassword;
64     }
65
66     public void setConfirmPassword(String JavaDoc confirmPassword) {
67         this.confirmPassword = confirmPassword;
68     }
69
70     public String JavaDoc getRole() {
71         return role;
72     }
73
74     public void setRole(String JavaDoc role) {
75         this.role = role;
76     }
77 }
78
Popular Tags