?? _replybean.java
字號(hào):
/*
* ReplyBean.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 (javayou@gmail.com)
* http://dlog4j.sourceforge.net
*
*/
package com.liusoft.dlog4j.base;
import java.util.Date;
import com.liusoft.dlog4j.beans.UserBean;
import com.liusoft.dlog4j.search.SearchEnabled;
/**
* 評(píng)論對(duì)象的基類(lèi)
*
* @author Winter Lau
*/
public abstract class _ReplyBean extends _MultipleSiteEnabledBean implements
SearchEnabled {
protected String author; // 評(píng)論者名稱(chēng)
protected String authorURL; // 評(píng)論者網(wǎng)址
protected String authorEmail; // 評(píng)論者郵箱
protected String content; // 評(píng)論內(nèi)容
protected Date replyTime; // 評(píng)論時(shí)間
protected ClientInfo client; // 客戶(hù)端信息
protected int status; // 該條評(píng)論信息的狀態(tài),例如已刪除之類(lèi)的
protected int ownerOnly; //是否只允許發(fā)文人和評(píng)論者查閱
protected UserBean user;
/**
* 返回評(píng)論的對(duì)象編號(hào)
*
* @return
*/
public abstract int getParentId();
public UserBean getUser() {
return user;
}
public void setUser(UserBean user) {
this.user = user;
}
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public Date getReplyTime() {
return replyTime;
}
public void setReplyTime(Date replyTime) {
this.replyTime = replyTime;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public String getAuthorURL() {
return authorURL;
}
public void setAuthorURL(String authorURL) {
this.authorURL = authorURL;
}
public ClientInfo getClient() {
if(client==null)
client = new ClientInfo();
return client;
}
public void setClient(ClientInfo client) {
this.client = client;
}
public String getAuthorEmail() {
return authorEmail;
}
public void setAuthorEmail(String authorEmail) {
this.authorEmail = authorEmail;
}
public int getOwnerOnly() {
return ownerOnly;
}
public void setOwnerOnly(int ownerOnly) {
this.ownerOnly = ownerOnly;
}
/** *** The methods below is for search proxy **** */
public String getKeywordField() {
return "id";
}
public String[] getStoreFields() {
return new String[] { "site.id", "site.friendlyName", "author",
"replyTime", "user.id", "user.nickname" };
}
public String[] getIndexFields() {
return new String[] { "content" };
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -