KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > gumby > test > TestUser


1 package org.sapia.gumby.test;
2
3 import java.util.List JavaDoc;
4
5 /**
6  * @author Yanick Duchesne
7  *
8  * <dl>
9  * <dt><b>Copyright: </b>
10  * <dd>Copyright &#169; 2002-2005 <a HREF="http://www.sapia-oss.org">Sapia Open
11  * Source Software </a>. All Rights Reserved.</dd>
12  * </dt>
13  * <dt><b>License: </b>
14  * <dd>Read the license.txt file of the jar or visit the <a
15  * HREF="http://www.sapia-oss.org/license.html">license page </a> at the Sapia
16  * OSS web site</dd>
17  * </dt>
18  * </dl>
19  */

20 public class TestUser {
21
22   private String JavaDoc firstName, lastName, username, password, role, language;
23   private List JavaDoc permissions;
24   private boolean activated;
25
26   public String JavaDoc getLanguage() {
27     return language;
28   }
29
30   public void setLanguage(String JavaDoc language) {
31     this.language = language;
32   }
33
34   public List JavaDoc getPermissions() {
35     return permissions;
36   }
37
38   public void setPermissions(List JavaDoc permissions) {
39     this.permissions = permissions;
40   }
41
42   public String JavaDoc getRole() {
43     return role;
44   }
45
46   public void setRole(String JavaDoc role) {
47     this.role = role;
48   }
49
50   public boolean isActivated() {
51     return activated;
52   }
53
54   public void setActivated(boolean activated) {
55     this.activated = activated;
56   }
57
58   public String JavaDoc getFirstName() {
59     return firstName;
60   }
61
62   public void setFirstName(String JavaDoc firstName) {
63     this.firstName = firstName;
64   }
65
66   public String JavaDoc getLastName() {
67     return lastName;
68   }
69
70   public void setLastName(String JavaDoc lastName) {
71     this.lastName = lastName;
72   }
73
74   public String JavaDoc getPassword() {
75     return password;
76   }
77
78   public void setPassword(String JavaDoc password) {
79     this.password = password;
80   }
81
82   public String JavaDoc getUsername() {
83     return username;
84   }
85
86   public void setUsername(String JavaDoc username) {
87     this.username = username;
88   }
89
90   public String JavaDoc toString() {
91     return "[ firstName=" + firstName + ", lastName=" + lastName
92         + ", username=" + username + ", password=" + password + ", activated="
93         + activated + ", role=" + role + ", permissions=" + permissions
94         + ", language=" + language + " ]";
95   }
96 }
97
Popular Tags