KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > lucane > common > concepts > UserConcept


1 /*
2  * Lucane - a collaborative platform
3  * Copyright (C) 2003 Vincent Fiack <vfiack@mail15.com>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  */

19
20 package org.lucane.common.concepts;
21
22 //links : user <-> group
23
public class UserConcept extends Concept
24 {
25     private String JavaDoc passwd; //md5 hash
26
private String JavaDoc realName;
27     private String JavaDoc mailAddress;
28     private String JavaDoc language;
29     private boolean locked;
30     private String JavaDoc startupPlugin;
31
32     public UserConcept(String JavaDoc name)
33     {
34         super(name, "");
35     }
36
37     public UserConcept(String JavaDoc name, String JavaDoc passwd, String JavaDoc realName, String JavaDoc mailAddress,
38             String JavaDoc language, boolean locked, String JavaDoc startupPlugin)
39     {
40         this(name);
41         this.passwd = passwd;
42         this.realName = realName;
43         this.mailAddress = mailAddress;
44         this.language = language;
45         this.locked = locked;
46         this.startupPlugin = startupPlugin;
47     }
48     
49     public void setPassword(String JavaDoc password)
50     {
51         this.passwd = password;
52     }
53     
54     public String JavaDoc getPassword()
55     {
56         return this.passwd;
57     }
58     
59     public void setRealName(String JavaDoc realName)
60     {
61         this.realName = realName;
62     }
63     
64     public String JavaDoc getRealName()
65     {
66         return this.realName;
67     }
68     
69     public void setMailAddress(String JavaDoc mailAddress)
70     {
71         this.mailAddress = mailAddress;
72     }
73     
74     public String JavaDoc getMailAddress()
75     {
76         return this.mailAddress;
77     }
78         
79     public void setLanguage(String JavaDoc language)
80     {
81         this.language = language;
82     }
83     
84     public String JavaDoc getLanguage()
85     {
86         return this.language;
87     }
88     
89     public void setLocked(boolean locked)
90     {
91         this.locked = locked;
92     }
93     
94     public boolean isLocked()
95     {
96         return this.locked;
97     }
98     
99     public String JavaDoc getStartupPlugin()
100     {
101         return this.startupPlugin;
102     }
103     
104     //--
105

106     public boolean equals(Object JavaDoc o)
107     {
108         if(o instanceof UserConcept)
109             return this.name.equals(((UserConcept)o).name);
110         
111         return false;
112     }
113 }
114
Popular Tags