01: /*
02: * Copyright (C) 2001, 2002 Robert MacGrogan
03: *
04: * This library is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License as published by the Free Software Foundation; either
07: * version 2.1 of the License, or (at your option) any later version.
08: *
09: * This library is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12: * Lesser General Public License for more details.
13: *
14: * You should have received a copy of the GNU Lesser General Public
15: * License along with this library; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17: *
18: *
19: * $Archive: SourceJammer$
20: * $FileName: User.java$
21: * $FileID: 4506$
22: *
23: * Last change:
24: * $AuthorName: Rob MacGrogan$
25: * $Date: 4/23/03 5:20 PM$
26: * $Comment: Replaced GPL header with LGPL header.$
27: */
28:
29: package org.sourcejammer.server.security;
30:
31: /**
32: * Title: $FileName: User.java$
33: * @version $VerNum: 3$
34: * @author $AuthorName: Rob MacGrogan$<br><br>
35: *
36: * $Description: $<br>
37: * $KeyWordsOff: $
38: */
39: public class User {
40:
41: private String msUserName;
42: private String msFullName;
43: private String msPassword;
44: private String msUserID;
45: private boolean mbIsAnonymous = false;
46: private boolean mbIsAdmin = false;
47:
48: public User() {
49: }
50:
51: public void setUserName(String s) {
52: msUserName = s;
53: }
54:
55: public String getUserName() {
56: return msUserName;
57: }
58:
59: public void setFullName(String s) {
60: msFullName = s;
61: }
62:
63: public String getFullName() {
64: return msFullName;
65: }
66:
67: public void setPassword(String s) {
68: msPassword = s;
69: }
70:
71: public String getPassword() {
72: return msPassword;
73: }
74:
75: public void setUserID(String s) {
76: msUserID = s;
77: }
78:
79: public String getUserID() {
80: return msUserID;
81: }
82:
83: public void setAnonymous(boolean b) {
84: mbIsAnonymous = b;
85: }
86:
87: public boolean isAnonymous() {
88: return mbIsAnonymous;
89: }
90:
91: public void setAdmin(boolean b) {
92: mbIsAdmin = b;
93: }
94:
95: public boolean isAdmin() {
96: return mbIsAdmin;
97: }
98:
99: }
|