?? userform.java
字號:
/*
* UserForm.java
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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 Library General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* Author: Winter Lau
* http://dlog4j.sourceforge.net
*
*/
package com.liusoft.dlog4j.upgrade;
import java.util.Date;
import java.util.List;
/**
* DLOG4J 2.0 的用戶
* @author liudong
*/
public class UserForm {
// --------------------------------------------------------- Instance Variables
/** email property */
private String email;
/** name property */
private String loginName;
private String password;
private String displayName;
private String homePage;
private String resume;
private int loginCount;
private Date regTime;
private Date lastTime; //最后一次登錄的時間
private String lastAddr; //最后一次登錄的IP地址
private int userRole = 0;
private List logs;
private int logCount;
private List replies;
private int replyCount;
private int bookMarkCount; //此字段不對應數據庫,而是由getLoginUser標簽設置該字段的值
protected int id;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
/**
* 如果用戶是密友則該屬性為擁有特權(查看與添加)的分類
* 如果用戶是好友則該屬性是用戶可添加日記的分類
* 多個分類使用逗號格開,例如 1,4,5
*/
private String cats;
public String getDisplayName() {
return displayName;
}
public String getEmail() {
return email;
}
public String getHomePage() {
return homePage;
}
public Date getLastTime() {
return lastTime;
}
public int getLoginCount() {
return loginCount;
}
public String getPassword() {
return password;
}
public String getCryptPassword() {
return StringUtils.encrypt(password);
}
public void setCryptPassword(String pwd) {
System.out.println("crypt password="+pwd);
password = StringUtils.decrypt(pwd);
System.out.println("password="+password);
}
public Date getRegTime() {
return regTime;
}
public String getResume() {
return resume;
}
public int getUserRole() {
return userRole;
}
public void setDisplayName(String string) {
displayName = string;
}
public void setEmail(String string) {
email = string;
}
public void setHomePage(String string) {
homePage = string;
}
public void setLastTime(Date date) {
lastTime = date;
}
public void setLoginCount(int i) {
loginCount = i;
}
public void setPassword(String string) {
password = string;
}
public void setRegTime(Date date) {
regTime = date;
}
public void setResume(String string) {
resume = string;
}
public void setUserRole(int i) {
userRole = i;
}
public List getLogs() {
return logs;
}
public int getLogCount(){
return logCount;
}
public List getReplies() {
return replies;
}
public void setLogs(List list) {
logs = list;
}
public void setReplies(List list) {
replies = list;
}
public String getLoginName() {
return loginName;
}
public void setLoginName(String string) {
loginName = string;
}
public int getReplyCount() {
return replyCount;
}
public void setLogCount(int i) {
logCount = i;
}
public String getLastAddr() {
return lastAddr;
}
public void setLastAddr(String lastAddr) {
this.lastAddr = lastAddr;
}
public void setReplyCount(int i) {
replyCount = i;
}
public String getCats() {
return cats;
}
public void setCats(String cats) {
this.cats = cats;
}
public int getBookMarkCount() {
return bookMarkCount;
}
public void setBookMarkCount(int bookMarkCount) {
this.bookMarkCount = bookMarkCount;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -