📄 adminboardsetform.java
字号:
package com.laoer.bbscs.web.form;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang.*;
import com.laoer.bbscs.comm.BBSCSUtil;
public class AdminBoardSetForm
extends ActionForm {
private String action;
private int addUserPostNum;
private int allowHTML;
private int allowUBB;
private int auditAttach;
private int auditPost;
private String boardName;
private int boardType;
private String bulletin;
private String explains;
private long id;
private int isAuth;
private int isHidden;
private int needPasswd;
private int orders;
private long parentID;
private String passwd;
private int useStat;
public String getAction() {
return action;
}
public void setAction(String action) {
this.action = action;
}
public void setUseStat(int useStat) {
this.useStat = useStat;
}
public void setPasswd(String passwd) {
this.passwd = passwd;
}
public void setParentID(long parentID) {
this.parentID = parentID;
}
public void setOrders(int orders) {
this.orders = orders;
}
public void setNeedPasswd(int needPasswd) {
this.needPasswd = needPasswd;
}
public void setIsHidden(int isHidden) {
this.isHidden = isHidden;
}
public void setIsAuth(int isAuth) {
this.isAuth = isAuth;
}
public void setId(long id) {
this.id = id;
}
public void setExplains(String explains) {
this.explains = explains;
}
public void setBulletin(String bulletin) {
this.bulletin = bulletin;
}
public void setBoardType(int boardType) {
this.boardType = boardType;
}
public void setBoardName(String boardName) {
this.boardName = boardName;
}
public void setAuditPost(int auditPost) {
this.auditPost = auditPost;
}
public void setAuditAttach(int auditAttach) {
this.auditAttach = auditAttach;
}
public void setAllowUBB(int allowUBB) {
this.allowUBB = allowUBB;
}
public void setAllowHTML(int allowHTML) {
this.allowHTML = allowHTML;
}
public void setAddUserPostNum(int addUserPostNum) {
this.addUserPostNum = addUserPostNum;
}
public int getAddUserPostNum() {
return addUserPostNum;
}
public int getAllowHTML() {
return allowHTML;
}
public int getAllowUBB() {
return allowUBB;
}
public int getAuditAttach() {
return auditAttach;
}
public int getAuditPost() {
return auditPost;
}
public String getBoardName() {
return boardName;
}
public int getBoardType() {
return boardType;
}
public String getBulletin() {
return bulletin;
}
public String getExplains() {
return explains;
}
public long getId() {
return id;
}
public int getIsAuth() {
return isAuth;
}
public int getIsHidden() {
return isHidden;
}
public int getNeedPasswd() {
return needPasswd;
}
public int getOrders() {
return orders;
}
public long getParentID() {
return parentID;
}
public String getPasswd() {
return passwd;
}
public int getUseStat() {
return useStat;
}
public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
if (StringUtils.isBlank(action)) {
this.action = "new";
}
httpServletRequest.setAttribute("boardTypes",
BBSCSUtil.getBoardTypeValues(httpServletRequest.getLocale()));
httpServletRequest.setAttribute("useStats",
BBSCSUtil.getBoardUseStatValues(httpServletRequest.getLocale()));
return null;
}
public void reset(ActionMapping actionMapping, HttpServletRequest servletRequest) {
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -