001: /**
002: * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, version 2.1, dated February 1999.
003: *
004: * This program is free software; you can redistribute it and/or modify
005: * it under the terms of the latest version of the GNU Lesser General
006: * Public License as published by the Free Software Foundation;
007: *
008: * This program is distributed in the hope that it will be useful,
009: * but WITHOUT ANY WARRANTY; without even the implied warranty of
010: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
011: * GNU Lesser General Public License for more details.
012: *
013: * You should have received a copy of the GNU Lesser General Public License
014: * along with this program (LICENSE.txt); if not, write to the Free Software
015: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
016: */package org.jamwiki.model;
017:
018: import org.jamwiki.WikiBase;
019: import org.jamwiki.utils.WikiLogger;
020:
021: /**
022: * Provides an object representing basic information about a user that is not
023: * Wiki-specific.
024: */
025: public class WikiUserInfo {
026:
027: private String email = null;
028: private String encodedPassword = null;
029: private String firstName = null;
030: private String lastName = null;
031: private int userId = -1;
032: private String username = null;
033: private static final WikiLogger logger = WikiLogger
034: .getLogger(WikiUserInfo.class.getName());
035:
036: /**
037: *
038: */
039: public WikiUserInfo() {
040: }
041:
042: /**
043: *
044: */
045: public String getEmail() {
046: return this .email;
047: }
048:
049: /**
050: *
051: */
052: public void setEmail(String email) {
053: this .email = email;
054: }
055:
056: /**
057: *
058: */
059: public String getEncodedPassword() {
060: return this .encodedPassword;
061: }
062:
063: /**
064: *
065: */
066: public void setEncodedPassword(String encodedPassword) {
067: this .encodedPassword = encodedPassword;
068: }
069:
070: /**
071: *
072: */
073: public String getFirstName() {
074: return this .firstName;
075: }
076:
077: /**
078: *
079: */
080: public void setFirstName(String firstName) {
081: this .firstName = firstName;
082: }
083:
084: /**
085: *
086: */
087: public String getLastName() {
088: return this .lastName;
089: }
090:
091: /**
092: *
093: */
094: public void setLastName(String lastName) {
095: this .lastName = lastName;
096: }
097:
098: /**
099: *
100: */
101: public int getUserId() {
102: return this .userId;
103: }
104:
105: /**
106: *
107: */
108: public void setUserId(int userId) {
109: this .userId = userId;
110: }
111:
112: /**
113: *
114: */
115: public String getUsername() {
116: return this .username;
117: }
118:
119: /**
120: *
121: */
122: public void setUsername(String username) {
123: this .username = username;
124: }
125:
126: /**
127: *
128: */
129: public boolean isWriteable() {
130: return WikiBase.getUserHandler().isWriteable();
131: }
132: }
|