亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mvnforumforumxml.java

?? java servlet著名論壇源代碼
?? JAVA
字號:
/*
 * $Header: /cvsroot/mvnforum/mvnforum/src/com/mvnforum/admin/importexport/mvnforum/MvnForumForumXML.java,v 1.2 2004/01/18 19:13:11 minhnn Exp $
 * $Author: minhnn $
 * $Revision: 1.2 $
 * $Date: 2004/01/18 19:13:11 $
 *
 * ====================================================================
 *
 * Copyright (C) 2002-2004 by MyVietnam.net
 *
 * 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 any later version.
 *
 * All copyright notices regarding mvnForum MUST remain intact
 * in the scripts and in the outputted HTML.
 * The "powered by" text/logo with a link back to
 * http://www.mvnForum.com and http://www.MyVietnam.net in the
 * footer of the pages MUST remain visible when the pages
 * are viewed on the internet or intranet.
 *
 * 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 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.
 *
 * Support can be obtained from support forums at:
 * http://www.mvnForum.com/mvnforum/index
 *
 * Correspondence and Marketing Questions can be sent to:
 * info@MyVietnam.net
 *
 * @author: Igor Manic   imanic@users.sourceforge.net
 */
package com.mvnforum.admin.importexport.mvnforum;

import com.mvnforum.admin.ForumXML;
import net.myvietnam.mvncore.exception.*;

/**
 * @author <a href="mailto:imanic@users.sourceforge.net">Igor Manic</a>
 * @version $Revision: 1.2 $, $Date: 2004/01/18 19:13:11 $
 * <br/>
 * <code>MvnForumForumXML</code> class encapsulates processing of
 * forums' definitions found in the backup XML file. It implements
 * methods to be called from XML parsing routine, adds some additional
 * processing and checking, and calls corresponding methods of
 * <code>ForumXML</code> and other neccessary classes in order to perform
 * the actual creation of a forum, as well as other related items (like
 * forum watches).
 */
public class MvnForumForumXML {

    private ForumXML forumXML=null;
    private boolean forumCreated=false;
    private MvnForumCategoryXML parentCategory=null;

    String lastPostMemberName  =null;
    String forumName           =null;
    String forumDesc           =null;
    String forumCreationDate   =null;
    String forumModifiedDate   =null;
    String forumLastPostDate   =null;
    String forumOrder          =null;
    String forumType           =null;
    String forumFormatOption   =null;
    String forumOption         =null;
    String forumStatus         =null;
    String forumModerationMode =null;
    String forumPassword       =null;
    String forumThreadCount    =null;
    String forumPostCount      =null;

    public MvnForumForumXML() {
        super();
        forumXML=new ForumXML();
        forumCreated=false;
        parentCategory=null;
    }

    public int getForumID() {
        return forumXML.getForumID();
    }

    public void setForumID(String id) {
        forumXML.setForumID(id);
    }

    /**
     * This method simply calls <code>setForumID()</code>.
     * It's defined only to avoid property-setter problems with digester
     * (since it doesn't seem to recognize <code>setForumID()</code> as a setter
     * method for <code>forumID</code> property).
     */
    public void setForumId(String id) {
        setForumID(id);
    }

    public int getParentCategoryID() {
        return forumXML.getParentCategoryID(); //==parentCategory.getCategoryID();
    }

    public void setParentCategory(Object o)
    throws ForeignKeyNotFoundException {
        if (o instanceof MvnForumCategoryXML) {
            parentCategory=(MvnForumCategoryXML)o;
            /* warning: parent category might not be added to database yet, so
             * we don't have parentCategoryID now, and can't do this here:
             * forumXML.setParentCategoryID(parentCategory.getCategoryID());
             */
        } else {
            throw new ForeignKeyNotFoundException("Can't find parent category.");
        }
    }

    public void setForumLastPostMemberName(String value) {
        lastPostMemberName=value;
    }

    public void setForumName(String value) {
        forumName=value;
    }

    public void setForumDesc(String value) {
        forumDesc=value;
    }

    public void setForumCreationDate(String value) {
        forumCreationDate=value;
    }

    public void setForumModifiedDate(String value) {
        forumModifiedDate=value;
    }

    public void setForumLastPostDate(String value) {
        forumLastPostDate=value;
    }

    public void setForumOrder(String value) {
        forumOrder=value;
    }

    public void setForumType(String value) {
        forumType=value;
    }

    public void setForumFormatOption(String value) {
        forumFormatOption=value;
    }

    public void setForumOption(String value) {
        forumOption=value;
    }

    public void setForumStatus(String value) {
        forumStatus=value;
    }

    public void setForumModerationMode(String value) {
        forumModerationMode=value;
    }

    public void setForumPassword(String value) {
        forumPassword=value;
    }

    public void setForumThreadCount(String value) {
        forumThreadCount=value;
    }

    public void setForumPostCount(String value) {
        forumPostCount=value;
    }


    public void addForum() throws CreateException, DuplicateKeyException,
    ObjectNotFoundException, DatabaseException, ForeignKeyNotFoundException, BadInputException {
        /* First, check if the digester already called this method.
         * It will happen even under normal circumstances, if this forum has
         * subelements that need it already be defined, so they first call
         * this method to create forum before creating data that refer him.
         */
        if (forumCreated) return;
        /* Second, create parent category if it's not yet created. */
        if (parentCategory!=null) {
            parentCategory.addCategory();
            forumXML.setParentCategoryID(parentCategory.getCategoryID());
        }

        ImportMvnForum.addMessage("Adding forum \""+forumName+"\".");
        forumXML.addForum(lastPostMemberName, forumName, forumDesc,
                          forumCreationDate, forumModifiedDate, forumLastPostDate,
                          forumOrder, forumType, forumFormatOption,
                          forumOption, forumStatus, forumModerationMode,
                          forumPassword, forumThreadCount, forumPostCount);
        forumCreated=true;

        if (parentCategory!=null) {
            parentCategory.updateAddedForum(this);
        }
    }

    public void addMemberForumPermission(String memberName, String forumPermission)
    throws CreateException, DuplicateKeyException, ObjectNotFoundException,
    DatabaseException, ForeignKeyNotFoundException, BadInputException {
        if ( (!forumCreated) || (forumXML.getForumID()<0) ) {
            addForum();
        }
        ImportMvnForum.addMessage("Adding forum-specific permission for member \""+memberName+"\".");
        forumXML.addMemberForumPermission(memberName, forumPermission);
    }

    public void addGroupForumPermission(String groupName, String forumPermission)
    throws CreateException, DuplicateKeyException, ObjectNotFoundException,
    DatabaseException, ForeignKeyNotFoundException, BadInputException {
        if ( (!forumCreated) || (forumXML.getForumID()<0) ) {
            addForum();
        }
        ImportMvnForum.addMessage("Adding forum-specific permission for group \""+groupName+"\".");
        forumXML.addGroupForumPermission(groupName, forumPermission);
    }

    public void addForumWatch(String memberName,
                String watchType, String watchOption,
                String watchStatus, String watchCreationDate,
                String watchLastSentDate, String watchEndDate)
    throws CreateException, DuplicateKeyException, ObjectNotFoundException,
    DatabaseException, ForeignKeyNotFoundException, BadInputException {
        if ( (!forumCreated) || (forumXML.getForumID()<0) ) {
            addForum();
        }
        ImportMvnForum.addMessage("Adding forum watch for member \""+memberName+"\".");
        forumXML.addForumWatch(memberName,
                    watchType, watchOption, watchStatus,
                    watchCreationDate, watchLastSentDate, watchEndDate);
    }

    public void updateAddedThread(MvnForumThreadXML subThread) {
        if ((!forumCreated) || (forumXML.getForumID()<0)) return; //todo Igor: process this error
        //do nothing; MVN Forum XML already has correct final values for these:
        //forumXML.increaseThreadCount();
        if (parentCategory!=null) {
            parentCategory.updateAddedThread(subThread);
        }
    }

    public void updateAddedPost(MvnForumPostXML subPost, String postUsername, String postCreationDate) {
        if ((!forumCreated) || (forumXML.getForumID()<0)) return; //todo Igor: process this error
        //do nothing; MVN Forum XML already has correct final values for these:
        //forumXML.increasePostCount();
        //forumXML.updateLastPostMemberName(postUsername);
        //forumXML.updateLastPostDate(postCreationDate);
        if (parentCategory!=null) {
            parentCategory.updateAddedPost(subPost);
        }
    }

    public void updateAddedAttachment(MvnForumAttachmentXML subAttachment) {
        if ((!forumCreated) || (forumXML.getForumID()<0)) return; //todo Igor: process this error
        //do nothing; MVN Forum XML already has correct final values for these:
        // //check what is needed to be updated
        if (parentCategory!=null) {
            parentCategory.updateAddedAttachment(subAttachment);
        }
    }


}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美狂野另类xxxxoooo| 91性感美女视频| 日韩精品一区在线观看| 美女网站视频久久| 精品国产免费人成电影在线观看四季| 狠狠色伊人亚洲综合成人| 久久久久久97三级| 成人黄色在线看| 亚洲综合激情另类小说区| 欧美三级电影在线观看| 六月丁香综合在线视频| 久久精品亚洲一区二区三区浴池 | 亚洲午夜在线电影| 91.麻豆视频| 国产高清久久久| 一区二区三区在线视频免费观看| 欧美无乱码久久久免费午夜一区| 秋霞av亚洲一区二区三| 久久久91精品国产一区二区精品 | 美日韩一区二区| 国产亚洲欧洲一区高清在线观看| 成人性生交大片免费看中文| 亚洲精品精品亚洲| 欧美电影免费观看高清完整版在 | 国产高清不卡一区| 亚洲精品欧美激情| 日韩一区二区三区在线| 成人在线视频一区二区| 亚洲国产欧美在线| 久久久99久久| 91精品国产入口| 99re热视频这里只精品| 日韩精品视频网站| 国产精品高潮呻吟| 日韩一区二区三区免费看| 丁香啪啪综合成人亚洲小说| 午夜婷婷国产麻豆精品| 中文字幕中文乱码欧美一区二区| 欧美人与z0zoxxxx视频| 9l国产精品久久久久麻豆| 美女视频黄 久久| 亚洲综合久久久| 欧美国产成人精品| 精品国产一区二区亚洲人成毛片| 99re热视频这里只精品| 国产麻豆日韩欧美久久| 欧美性猛交xxxx乱大交退制版 | 久久99精品久久久| 精品粉嫩超白一线天av| 色久综合一二码| 成人免费av资源| 久久精品国产免费看久久精品| 一区二区三区在线免费播放| 久久久av毛片精品| 欧美日韩亚洲综合一区二区三区| 国产日韩成人精品| 欧美日韩激情在线| 国产精品国产自产拍高清av王其| 男人的天堂久久精品| 欧美在线视频不卡| 亚洲人亚洲人成电影网站色| 精品一区二区在线观看| 制服丝袜一区二区三区| 亚洲国产aⅴ天堂久久| av在线免费不卡| 欧美国产一区在线| 国产精品一区免费视频| 日韩女优av电影| 久久精品久久综合| 日韩精品一区二区三区四区视频| 蜜臀av性久久久久蜜臀aⅴ| 欧美精品1区2区3区| 亚洲成av人片在www色猫咪| 91黄视频在线观看| 一区二区三区高清| 欧美日韩一区精品| 天堂在线一区二区| 91精品欧美一区二区三区综合在| 无吗不卡中文字幕| 欧美日韩高清一区| 免费在线一区观看| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 国产精品剧情在线亚洲| 成人av在线影院| 亚洲卡通欧美制服中文| 欧洲精品在线观看| 午夜视频一区在线观看| 日韩一级在线观看| 国产精品一区免费视频| 欧美韩国日本综合| 欧洲一区二区三区免费视频| 亚洲午夜电影在线观看| 6080午夜不卡| 国产一区二区三区精品欧美日韩一区二区三区 | 亚洲一区二区综合| 欧美一区二区三区在线电影| 国模少妇一区二区三区| 国产精品免费aⅴ片在线观看| 99视频一区二区| 日本怡春院一区二区| 精品国产麻豆免费人成网站| 国产成人高清在线| 亚洲国产乱码最新视频| 久久久精品一品道一区| 91高清视频在线| 精品一区二区日韩| 亚洲精品中文在线| 欧美大胆一级视频| 91麻豆精品在线观看| 麻豆精品一区二区av白丝在线| 中文字幕精品—区二区四季| 欧洲一区二区三区在线| 国产成人综合亚洲网站| 亚洲成人激情综合网| 久久久99精品免费观看不卡| 欧美四级电影在线观看| 成人国产一区二区三区精品| 日韩av一区二| 亚洲日本一区二区| 久久久久成人黄色影片| 欧美挠脚心视频网站| 丁香婷婷综合色啪| 麻豆成人综合网| 一级特黄大欧美久久久| 国产婷婷色一区二区三区| 欧美日韩中文精品| 99热这里都是精品| 国产精品一区二区无线| 偷拍日韩校园综合在线| 亚洲精选在线视频| 国产欧美一区二区精品婷婷| 日韩一级黄色大片| 911精品产国品一二三产区 | 一区二区三区欧美久久| 国产欧美精品一区二区三区四区 | 亚洲愉拍自拍另类高清精品| 精品国产91久久久久久久妲己| 精品视频在线免费观看| 99久久久国产精品| www.亚洲色图| 成人小视频免费观看| 久久精品国产77777蜜臀| 热久久国产精品| 日韩国产欧美在线视频| 天堂久久一区二区三区| 亚洲一二三四在线| 一区二区三区中文在线观看| 亚洲欧美一区二区久久| 亚洲欧美日韩成人高清在线一区| 国产人成一区二区三区影院| 国产精品美女久久久久久久久| 久久午夜国产精品| 国产视频一区二区在线| 国产婷婷色一区二区三区四区| 久久这里只有精品6| 久久精品欧美一区二区三区麻豆 | 99精品国产一区二区三区不卡| 国产高清成人在线| 不卡的电视剧免费网站有什么| av电影在线观看完整版一区二区| 成人动漫在线一区| 在线视频欧美区| 制服丝袜一区二区三区| 精品日韩在线观看| 中文字幕av一区二区三区高| 中文字幕在线视频一区| 国产精品久久久久婷婷| 亚洲日本电影在线| 天天av天天翘天天综合网| 日日夜夜精品免费视频| 极品少妇xxxx偷拍精品少妇| 国产成人免费在线| 日本韩国欧美一区| 欧美一区二区网站| 亚洲国产精品激情在线观看| 亚洲精品乱码久久久久久久久| 亚洲va中文字幕| 国产一区二区三区四区五区入口 | 亚洲视频免费在线观看| 亚洲成va人在线观看| 久久99精品久久久| 91免费国产在线观看| 3751色影院一区二区三区| 久久久高清一区二区三区| 亚洲色图在线看| 免费成人美女在线观看| 丰满少妇在线播放bd日韩电影| 色综合天天综合网天天看片| 91精品国产91久久久久久一区二区| 久久久久久黄色| 亚洲国产精品久久人人爱| 黄一区二区三区| 欧美午夜精品久久久久久超碰| 精品不卡在线视频| 亚洲成人动漫av| 成人国产精品免费观看动漫| 日韩一区二区三区四区| 一区二区三区美女视频| 成人一级片网址| 亚洲自拍欧美精品|