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

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

?? mvnforumthreadxml.java

?? java servlet著名論壇源代碼
?? JAVA
字號:
/*
 * $Header: /cvsroot/mvnforum/mvnforum/src/com/mvnforum/admin/importexport/mvnforum/MvnForumThreadXML.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.ThreadXML;
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>MvnForumThreadXML</code> class encapsulates processing of
 * threads' 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>ThreadXML</code> and other neccessary classes in order to perform
 * the actual creation of a thread, as well as other related items (like
 * favorite threads and thread watches).
 */
public class MvnForumThreadXML {

    private ThreadXML threadXML=null;
    private boolean threadCreated=false;
    private MvnForumForumXML parentForum =null;

    String threadMemberName          =null;
    String threadLastPostMemberName  =null;
    String threadTopic               =null;
    String threadBody                =null;
    String threadVoteCount           =null;
    String threadVoteTotalStars      =null;
    String threadCreationDate        =null;
    String threadLastPostDate        =null;
    String threadType                =null;
    String threadOption              =null;
    String threadStatus              =null;
    String threadHasPoll             =null;
    String threadViewCount           =null;
    String threadReplyCount          =null;
    String threadIcon                =null;
    String threadDuration            =null;

    public MvnForumThreadXML() {
        super();
        threadXML=new ThreadXML();
        threadCreated=false;
        parentForum=null;
    }

    public int getThreadID() {
        return threadXML.getThreadID();
    }

    public void setThreadID(String id) {
        threadXML.setThreadID(id);
    }

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

    public int getParentCategoryID() {
        return threadXML.getParentCategoryID(); //==parentForum.getParentCategoryID();
    }

    public int getParentForumID() {
        return threadXML.getParentForumID(); //==parentForum.getForumID();
    }

    public void setParentForum(Object o)
    throws ForeignKeyNotFoundException {
        if (o instanceof MvnForumForumXML) {
            parentForum=(MvnForumForumXML)o;
            //warning: parent forum might be not added to database yet
        } else {
            throw new ForeignKeyNotFoundException("Can't find parent forum.");
        }
    }

    public void setThreadMemberName(String value) {
        threadMemberName=value;
    }

    public void setThreadLastPostMemberName(String value) {
        threadLastPostMemberName=value;
    }

    public void setThreadTopic(String value) {
        threadTopic=value;
    }

    public void setThreadBody(String value) {
        threadBody=value;
    }

    public void setThreadVoteCount(String value) {
        threadVoteCount=value;
    }

    public void setThreadVoteTotalStars(String value) {
        threadVoteTotalStars=value;
    }

    public void setThreadCreationDate(String value) {
        threadCreationDate=value;
    }

    public void setThreadLastPostDate(String value) {
        threadLastPostDate=value;
    }

    public void setThreadType(String value) {
        threadType=value;
    }

    public void setThreadOption(String value) {
        threadOption=value;
    }

    public void setThreadStatus(String value) {
        threadStatus=value;
    }

    public void setThreadHasPoll(String value) {
        threadHasPoll=value;
    }

    public void setThreadViewCount(String value) {
        threadViewCount=value;
    }

    public void setThreadReplyCount(String value) {
        threadReplyCount=value;
    }

    public void setThreadIcon(String value) {
        threadIcon=value;
    }

    public void setThreadDuration(String value) {
        threadDuration=value;
    }

    public void addThread() 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 thread has
         * subelements that need it already be defined, so they first call
         * this method to create thread before creating data that refer him.
         */
        if (threadCreated) return;
        /* Second, create parent forum if it's not yet created. */
        if (parentForum!=null) {
            parentForum.addForum();
            threadXML.setParentForumID(parentForum.getForumID());
            threadXML.setParentCategoryID(parentForum.getParentCategoryID());
        }

        ImportMvnForum.addMessage("Adding thread \""+threadTopic+"\".");
        threadXML.addThread(threadMemberName, threadLastPostMemberName,
                            threadTopic, threadBody,
                            threadVoteCount, threadVoteTotalStars,
                            threadCreationDate, threadLastPostDate,
                            threadType, threadOption,
                            threadStatus, threadHasPoll,
                            threadViewCount, threadReplyCount,
                            threadIcon, threadDuration);
        threadCreated=true;

        if (parentForum!=null) {
            parentForum.updateAddedThread(this);
        }
    }

    public void addThreadWatch(String memberName,
                String watchType, String watchOption,
                String watchStatus, String watchCreationDate,
                String watchLastSentDate, String watchEndDate)
    throws CreateException, DuplicateKeyException, ObjectNotFoundException,
    DatabaseException, ForeignKeyNotFoundException, BadInputException {
        if ( (!threadCreated) || (threadXML.getThreadID()<0) ) {
            addThread();
        }
        ImportMvnForum.addMessage("Adding thread watch for member \""+memberName+"\".");
        threadXML.addThreadWatch(memberName,
                  watchType, watchOption, watchStatus,
                  watchCreationDate, watchLastSentDate, watchEndDate);
    }

    public void addFavoriteThread(String memberName,
                String favoriteCreationDate, String favoriteType,
                String favoriteOption, String favoriteStatus)
    throws CreateException, DuplicateKeyException, ObjectNotFoundException,
    DatabaseException, ForeignKeyNotFoundException, BadInputException {
        if ( (!threadCreated) || (threadXML.getThreadID()<0) ) {
            addThread();
        }
        ImportMvnForum.addMessage("Adding favorite-thread for member \""+memberName+"\".");
        threadXML.addFavoriteThread(memberName,
                  favoriteCreationDate, favoriteType,
                  favoriteOption, favoriteStatus);
    }

    public void updateAddedPost(MvnForumPostXML subPost, String postUsername, String postCreationDate) {
        if ((!threadCreated) || (threadXML.getThreadID()<0)) return; //todo Igor: process this error
        //do nothing; MVN Forum XML already has correct final values for these:
        //if (subPost.getParentPostID()!=0) {//reply to a post in thread, so we increase the ThreadReplyCount
        //    threadXML.increaseReplyCount();
        //}
        //threadXML.updateLastPostMemberName(postUsername);
        //threadXML.updateLastPostDate(postCreationDate);
        if (parentForum!=null) {
            parentForum.updateAddedPost(subPost, postUsername, postCreationDate);
        }
    }

    public void updateAddedAttachment(MvnForumAttachmentXML subAttachment) {
        if ((!threadCreated) || (threadXML.getThreadID()<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 (parentForum!=null) {
            parentForum.updateAddedAttachment(subAttachment);
        }
    }


}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲1区2区3区| 免费在线观看成人| 激情综合色丁香一区二区| 99久久婷婷国产| 久久在线观看免费| 视频在线观看一区| 在线视频你懂得一区| 久久久久免费观看| 奇米色一区二区| 在线精品视频免费观看| 国产精品看片你懂得| 精品亚洲国产成人av制服丝袜| 在线视频一区二区三| 国产欧美日韩综合| 久久国产三级精品| 制服视频三区第一页精品| 樱桃国产成人精品视频| 99精品欧美一区二区三区综合在线| 久久精品亚洲一区二区三区浴池| 奇米色777欧美一区二区| 欧美日韩国产一二三| 亚洲一级二级在线| 91成人免费电影| 亚洲国产欧美在线人成| 欧美性色综合网| 亚洲一二三四久久| 欧美四级电影网| 日一区二区三区| 4438成人网| 久久99久久久久久久久久久| 日韩欧美国产成人一区二区| 免费不卡在线视频| 精品99久久久久久| 国产一区二区精品久久99| 久久久影视传媒| 成人av在线资源网站| 26uuu色噜噜精品一区二区| 极品少妇xxxx精品少妇| 久久亚洲欧美国产精品乐播| 国产大陆a不卡| 国产精品久久三区| 日本高清不卡视频| 天天色天天操综合| 欧美xxxxxxxx| 成人avav影音| 亚洲成人动漫精品| 在线免费观看日本一区| 日韩和欧美一区二区三区| 欧美一区二区免费观在线| 国产麻豆成人精品| 亚洲色图一区二区三区| 欧美色手机在线观看| 久久国产夜色精品鲁鲁99| 国产精品人人做人人爽人人添| 成人av网址在线| 一区二区三区欧美激情| 日韩欧美一区二区不卡| 丁香一区二区三区| 一区二区三区毛片| 亚洲精品在线电影| 色综合天天综合网国产成人综合天| 亚洲伦理在线精品| 91精品国产综合久久久久久久| 国产99一区视频免费| 一区二区三区鲁丝不卡| 欧美v日韩v国产v| 日本黄色一区二区| 国产乱人伦偷精品视频不卡| 国产精品你懂的| 欧美一区二区播放| 91久久精品国产91性色tv| 九色|91porny| 亚洲不卡一区二区三区| 久久精品在这里| 欧美日韩黄色一区二区| 成人av网站在线观看| 日本成人中文字幕在线视频| 国产精品网站一区| 精品久久久久久久久久久久久久久 | 久久国产精品第一页| 亚洲欧洲国产日韩| 精品国产91久久久久久久妲己 | 国产精品毛片a∨一区二区三区| 欧美日韩中文字幕精品| 国产成人亚洲综合a∨婷婷| 三级一区在线视频先锋| 亚洲精品久久久蜜桃| 国产视频一区在线播放| 欧美电视剧在线看免费| 欧美性猛交xxxx黑人交| 91视频在线观看免费| 国产精品一区二区果冻传媒| 日本午夜一本久久久综合| 一区二区三区免费| 综合久久久久久| 欧美激情一区二区三区全黄| 日韩一区二区三区在线观看 | www.久久久久久久久| 国产乱码精品一区二区三| 久久超碰97人人做人人爱| 久久99国产精品麻豆| 日韩avvvv在线播放| 偷拍与自拍一区| 亚洲成av人片在www色猫咪| 亚洲综合精品自拍| 亚洲精品国产第一综合99久久| 国产精品的网站| 自拍偷拍亚洲激情| 亚洲欧美日韩人成在线播放| 国产精品护士白丝一区av| 国产精品乱人伦| 中文字幕欧美国产| 国产精品久久久久久久久晋中 | 亚洲线精品一区二区三区| 一二三区精品视频| 午夜视频在线观看一区二区三区| 亚洲综合激情网| 亚洲国产一区在线观看| 五月婷婷激情综合网| 日韩国产欧美在线观看| 蜜臀av一区二区三区| 美女被吸乳得到大胸91| 黄色小说综合网站| 国产91精品在线观看| 99精品国产热久久91蜜凸| 欧洲一区二区三区免费视频| 在线观看欧美精品| 制服.丝袜.亚洲.中文.综合| 欧美一级国产精品| 久久精品视频在线看| 一区二区中文字幕在线| 一片黄亚洲嫩模| 日韩 欧美一区二区三区| 国产一区不卡在线| 99久久99精品久久久久久| 欧美三电影在线| 26uuu成人网一区二区三区| 国产精品国产三级国产| 亚洲成人动漫在线免费观看| 黑人巨大精品欧美黑白配亚洲| 风间由美性色一区二区三区| 色伊人久久综合中文字幕| 欧美精品久久99久久在免费线 | 国产亚洲人成网站| 一区二区视频在线| 六月丁香综合在线视频| 国产成人在线视频网址| 欧美视频一区二区三区四区 | 日韩免费在线观看| 国产精品丝袜一区| 日本人妖一区二区| 粉嫩av一区二区三区| 欧美日韩国产123区| 久久综合久久久久88| 一区二区三区国产精品| 免费视频最近日韩| 色噜噜狠狠成人中文综合| 欧美大片在线观看一区| 自拍偷拍欧美激情| 国产一区二区三区在线观看免费视频| 99re热视频精品| 精品处破学生在线二十三| 一区二区三区色| 成人午夜av影视| 精品在线播放午夜| 久久99国内精品| 欧美伊人久久久久久久久影院| 久久精品欧美一区二区三区不卡| 夜夜精品浪潮av一区二区三区| 国产91丝袜在线播放九色| 日韩欧美激情四射| 性感美女久久精品| 色94色欧美sute亚洲线路一久| 久久久久久久久久久电影| 日本中文字幕一区二区视频| 91亚洲午夜精品久久久久久| 久久久久久免费毛片精品| 久久99这里只有精品| 欧美亚洲日本一区| 成人欧美一区二区三区小说| 国产一区二区久久| 精品国精品国产| 免费成人美女在线观看.| 欧美日韩免费不卡视频一区二区三区| 日韩一区日韩二区| 99久久国产综合色|国产精品| 久久精品夜夜夜夜久久| 精品在线视频一区| 欧美成人官网二区| 久久成人免费电影| 欧美精品一区二区不卡| 日本91福利区| 欧美一级一区二区| 日本少妇一区二区| 欧美一级国产精品| 久草中文综合在线| 久久精品一区二区| 播五月开心婷婷综合| 亚洲男女毛片无遮挡| 91国在线观看|