⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 userconfigmgr.java

📁 源码/软件简介: 云网论坛1.1RC国际版是采用JSP开发的集论坛、CMS(网站内容管理系统)、博客、聊天室、商城、交友、语音灌水等于一体的门户式社区。拥有CWBBS ( Cloud Web BBS
💻 JAVA
字号:
package com.redmoon.blog;

import javax.servlet.http.HttpServletRequest;
import cn.js.fan.util.ErrMsgException;
import cn.js.fan.util.ResKeyException;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2005</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class UserConfigMgr {
    public UserConfigMgr() {
    }

    public boolean create(HttpServletRequest request) throws
            ErrMsgException {
        com.redmoon.forum.Privilege pvg = new com.redmoon.forum.Privilege();
        if (pvg.isUserLogin(request)) {
            UserConfigForm ucf = new UserConfigForm(request);
            ucf.checkCreate();
            UserConfigDb ucd = ucf.getUserConfigDb();
            return ucd.create();
        } else
            throw new ErrMsgException("您尚未登陆!");
    }

    public boolean modify(HttpServletRequest request) throws
            ErrMsgException, ResKeyException {
        com.redmoon.forum.Privilege pvg = new com.redmoon.forum.Privilege();
        if (pvg.isUserLogin(request)) {
            UserConfigForm ucf = new UserConfigForm(request);
            ucf.checkModify();
            UserConfigDb ucd = ucf.getUserConfigDb();
            return ucd.save();
        } else
            throw new ErrMsgException("您尚未登陆!");
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -