KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jdon > security > UserModel


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

15
16 package com.jdon.security;
17
18 import com.jdon.controller.model.Model;
19
20 /**
21  * need cooperate with JdonSD's JdonSecurity.jar
22  *
23  */

24 public class UserModel extends Model{
25
26   protected String JavaDoc userId;
27   protected String JavaDoc password;
28   protected String JavaDoc username;
29   protected String JavaDoc email;
30   protected String JavaDoc roleName;
31
32   public UserModel(String JavaDoc username){
33     this.username = username;
34
35   }
36
37   public UserModel(){
38
39   }
40
41
42
43   public String JavaDoc getUserId() {
44     return userId;
45   }
46
47   public void setUserId(String JavaDoc userId) {
48     this.userId = userId;
49   }
50
51   public String JavaDoc getPassword() {
52     return password;
53   }
54
55   public void setPassword(String JavaDoc password) {
56     this.password = password;
57   }
58
59   public String JavaDoc getEmail() {
60     return email;
61   }
62
63   public void setEmail(String JavaDoc email) {
64     this.email = email;
65   }
66   public String JavaDoc getUsername() {
67     return username;
68   }
69   public void setUsername(String JavaDoc username) {
70     this.username = username;
71   }
72   public String JavaDoc getRoleName() {
73     return roleName;
74   }
75   public void setRoleName(String JavaDoc roleName) {
76     this.roleName = roleName;
77   }
78
79 }
80
Popular Tags