/**
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, version 2.1, dated February 1999.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the latest version of the GNU Lesser General
* Public License as published by the Free Software Foundation;
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program (LICENSE.txt); if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
package org.jamwiki.model;
import java.sql.Timestamp;
import org.jamwiki.utils.WikiLogger;
/**
* Provides an object representing Wiki-specific information about a user of
* the Wiki.
*/
public class WikiUser {
private static final WikiLogger logger = WikiLogger.getLogger(WikiUser.class.getName());
private Timestamp createDate = new Timestamp(System.currentTimeMillis());
private String createIpAddress = "0.0.0.0";
private String defaultLocale = null;
private String displayName = null;
private Timestamp lastLoginDate = new Timestamp(System.currentTimeMillis());
private String lastLoginIpAddress = "0.0.0.0";
private String username = null;
private int userId = -1;
private String password = null;
/**
*
*/
protected WikiUser() {
}
/**
*
*/
public WikiUser(String username) {
this.username = username;
}
/**
*
*/
public Timestamp getCreateDate() {
return this.createDate;
}
/**
*
*/
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
/**
*
*/
public String getCreateIpAddress() {
return this.createIpAddress;
}
/**
*
*/
public void setCreateIpAddress(String createIpAddress) {
this.createIpAddress = createIpAddress;
}
/**
*
*/
public String getDefaultLocale() {
return this.defaultLocale;
}
/**
*
*/
public void setDefaultLocale(String defaultLocale) {
this.defaultLocale = defaultLocale;
}
/**
*
*/
public String getDisplayName() {
return this.displayName;
}
/**
*
*/
public void setDisplayName(String displayName) {
this.displayName = displayName;
}
/**
*
*/
public Timestamp getLastLoginDate() {
return this.lastLoginDate;
}
/**
*
*/
public void setLastLoginDate(Timestamp lastLoginDate) {
this.lastLoginDate = lastLoginDate;
}
/**
*
*/
public String getLastLoginIpAddress() {
return this.lastLoginIpAddress;
}
/**
*
*/
public void setLastLoginIpAddress(String lastLoginIpAddress) {
this.lastLoginIpAddress = lastLoginIpAddress;
}
/**
*
*/
public int getUserId() {
return this.userId;
}
/**
*
*/
public void setUserId(int userId) {
this.userId = userId;
}
/**
*
*/
public String getPassword() {
return password;
}
/**
*
*/
public void setPassword(String password) {
this.password = password;
}
/**
*
*/
public String getUsername() {
return username;
}
}
|