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

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

?? jivethreadxml.java

?? java servlet著名論壇源代碼
?? JAVA
字號:
/*
 * $Header: /cvsroot/mvnforum/mvnforum/src/com/mvnforum/admin/importexport/jive/JiveThreadXML.java,v 1.2 2004/01/18 19:13:10 minhnn Exp $
 * $Author: minhnn $
 * $Revision: 1.2 $
 * $Date: 2004/01/18 19:13:10 $
 *
 * ====================================================================
 *
 * 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.jive;

import java.sql.Timestamp;
import java.util.Vector;

import com.mvnforum.admin.PostXML;
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:10 $
 * <br/>
 * <code>JiveThreadXML</code> class encapsulates processing of
 * threads' definitions found in the Jive 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 thread watches.
 */
public class JiveThreadXML {

    private ThreadXML threadXML=null;
    private boolean threadCreated=false;
    private Vector threadWatchesToAddLater=new Vector();
    private JiveForumXML parentForum =null;

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

    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 getThreadID() { return threadXML.getThreadID(); }

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

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

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

    private String threadTopic=null;
    public void setTopic(String value) throws CreateException {
        if ( (value==null) || (value.equals("")) ) {
            throw new CreateException("Cannot create a thread with an empty ThreadTopic.");
        } else this.threadTopic=value;
    }

    private String threadBody=null;
    public void setBody(String value) throws CreateException {
        if ( (value==null) || (value.equals("")) ) {
            throw new CreateException("Cannot create a thread with an empty ThreadBody.");
        } else this.threadBody=value;
    }

    private String threadUsername=null;
    public void setUsername(String value) throws CreateException {
        this.threadUsername=value;
    }

    private String threadCreationDate=null;
    public void setCreationDate(String value) throws CreateException {
        this.threadCreationDate=value;
    }

    private String threadModifiedDate=null;
    public void setModifiedDate(String value) throws CreateException {
        this.threadModifiedDate=value;
    }

    public void addJiveThread() throws BadInputException, CreateException,
    DatabaseException, ObjectNotFoundException, DuplicateKeyException, ForeignKeyNotFoundException {
        /* This method is here because of the digester rule it could fire it, but
         * actually, this shouldn't happen, because the first <Message> of the thread
         * will call addJiveThread(firstMessageUsername, firstMessageSubject, firstMessageBody)
         * so this method will be called only after threadCreated is already
         * set to true (because of that previous executions of the other addJiveThread method).
         */
        if (!threadCreated) addJiveThread(threadUsername, threadTopic, threadBody);
    }

    public void addJiveThread(String firstMessageUsername, String firstMessageSubject, String firstMessageBody)
    throws BadInputException, CreateException,
    DatabaseException, ObjectNotFoundException, DuplicateKeyException, ForeignKeyNotFoundException {
        /* 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;
        setUsername(firstMessageUsername);
        setTopic(firstMessageSubject);
        setBody(firstMessageBody);
        /* Second, create parent forum if it's not yet created. */
        if (parentForum!=null) {
            parentForum.addJiveForum();
            threadXML.setParentForumID(parentForum.getForumID());
            threadXML.setParentCategoryID(parentForum.getParentCategoryID());
        }

        ImportJive.addMessage("Adding Jive thread \""+threadTopic+"\".");
        threadXML.addThread(threadUsername, threadUsername/*lastPostMemberName*/,
                            threadTopic, threadBody,
                            null/*threadVoteCount*/, null/*threadVoteTotalStars*/,
                            threadCreationDate, threadModifiedDate/*threadLastPostDate*/,
                            null/*threadType*/, null/*threadOption*/,
                            null/*threadStatus*/, null/*threadHasPoll*/,
                            null/*threadViewCount*/, null/*threadReplyCount*/,
                            null/*threadIcon*/, null/*threadDuration*/);
        threadCreated=true;

        for (int i=0; i<threadWatchesToAddLater.size(); i++) {
            String memberName= (String)threadWatchesToAddLater.elementAt(i);
            ImportJive.addMessage("Adding thread watch for member \""+memberName+"\".");
            threadXML.addThreadWatch(memberName,
                      null/*watchType*/, null/*watchOption*/,
                      null/*watchStatus*/, null/*watchCreationDate*/,
                      null/*watchLastSentDate*/, null/*watchEndDate*/);
        }
        threadWatchesToAddLater.clear();

        if (parentForum!=null) {
            parentForum.updateAddedThread(threadXML); //update parents
        }
    }

    public void addJiveThreadWatch(String type, String expirable, String username)
    throws CreateException {
        /* expirable and type are ignored
         * expirable is "true" or "false", default is "true"
         * type is "NORMAL_WATCH" or "EMAIL_NOTIFY_WATCH"
         * MVN Forum supports only email notify watches
         */
        threadWatchesToAddLater.add(username);
    }

    public void updateAddedPost(PostXML postXML, String postUsername, Timestamp postCreationDate)
    throws ObjectNotFoundException, DatabaseException, ForeignKeyNotFoundException {
        if (postXML.getParentPostID()!=0) {//reply to a post in thread, so we increase the ThreadReplyCount
            threadXML.increaseReplyCount();
        }
        threadXML.updateLastPostMemberName(postUsername);
        threadXML.updateLastPostDate(postCreationDate);
        if (parentForum!=null) {
            //update parents
            parentForum.updateAddedPost(postXML, postUsername, postCreationDate);
        }
    }


}


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人av电影在线播放| 欧美三级中文字| 欧美性做爰猛烈叫床潮| 日韩欧美国产麻豆| 一区二区在线观看视频| 国产一区二区三区免费观看| 欧美三级资源在线| 亚洲麻豆国产自偷在线| 国产91露脸合集magnet| 欧美一区二区三区在线观看| 亚洲免费毛片网站| 成人av免费在线| 久久蜜桃av一区二区天堂| 日本亚洲三级在线| 在线一区二区三区做爰视频网站| 国产日韩欧美不卡| 国产一区二区三区高清播放| 精品999在线播放| 免费亚洲电影在线| 69久久99精品久久久久婷婷| 亚洲成av人影院| 欧美日韩精品一区二区三区蜜桃| 亚洲精品写真福利| 91蜜桃在线免费视频| 欧美国产日韩亚洲一区| 国产精品18久久久| 国产日本欧美一区二区| 国产高清不卡二三区| 国产午夜亚洲精品午夜鲁丝片 | 国产精品一线二线三线| 日韩欧美国产高清| 韩国三级中文字幕hd久久精品| 欧美精品粉嫩高潮一区二区| 亚洲电影中文字幕在线观看| 欧美日韩激情一区二区| 五月天中文字幕一区二区| 7777精品伊人久久久大香线蕉完整版 | 国产精品国产三级国产普通话蜜臀| 国内一区二区在线| 日本一区二区免费在线观看视频| 国产大陆精品国产| 国产精品精品国产色婷婷| 大白屁股一区二区视频| 亚洲欧美日韩精品久久久久| 色一情一伦一子一伦一区| 亚洲超丰满肉感bbw| 日韩一区二区三区电影| 激情五月婷婷综合| 国产精品久久久久久久浪潮网站 | 久久99久久久欧美国产| 久久免费美女视频| 成人18视频日本| 亚洲午夜久久久久中文字幕久| 欧美人动与zoxxxx乱| 韩国av一区二区三区在线观看| 中文字幕av在线一区二区三区| 色综合网站在线| 日韩不卡一区二区三区 | 一区二区三区在线免费| 欧美人妇做爰xxxⅹ性高电影 | 久久免费看少妇高潮| 99久久er热在这里只有精品15 | 亚洲欧洲色图综合| 91麻豆精品国产自产在线观看一区| 日本成人在线一区| 日本一区二区三级电影在线观看 | 欧美亚洲一区三区| 国产一区三区三区| 亚洲一区中文日韩| 久久久午夜电影| 一本在线高清不卡dvd| 久久国产精品72免费观看| 国产精品久久久久久亚洲伦 | 国产一区二区三区免费看| 亚洲精选在线视频| www国产成人| 欧美在线一区二区三区| 国产激情偷乱视频一区二区三区| 亚洲最大色网站| 久久综合九色综合97婷婷| 色先锋aa成人| 国产激情偷乱视频一区二区三区| 亚洲国产日韩一级| 中文字幕一区二区三| 精品久久一区二区| 在线播放日韩导航| 色综合视频一区二区三区高清| 国产美女在线观看一区| 日本怡春院一区二区| 一区二区三区免费网站| 亚洲国产精品国自产拍av| 欧美一区二区三区视频免费播放| 91丨porny丨国产| 粉嫩aⅴ一区二区三区四区五区| 日韩电影在线免费看| 亚洲午夜私人影院| 亚洲猫色日本管| 最新久久zyz资源站| 国产日产欧美一区二区视频| 日韩一卡二卡三卡四卡| 欧美另类久久久品| 欧美午夜精品久久久久久孕妇| 99re这里只有精品视频首页| 粉嫩一区二区三区在线看| 久久爱www久久做| 日本网站在线观看一区二区三区| 一区二区久久久久久| 综合久久一区二区三区| 国产精品久久久久久久久快鸭| 久久久国产精华| 久久看人人爽人人| 久久一日本道色综合| 久久久久一区二区三区四区| 欧美成人三级电影在线| 精品国产91九色蝌蚪| 精品99一区二区三区| 亚洲精品在线电影| 久久新电视剧免费观看| 国产欧美日韩视频一区二区| 亚洲国产精品av| 国产精品网站在线播放| 国产精品国产a级| 亚洲色图在线播放| 一区二区久久久| 亚洲成人自拍网| 麻豆精品在线播放| 国产 日韩 欧美大片| eeuss鲁一区二区三区| 色噜噜夜夜夜综合网| 欧美日韩国产首页| 精品国产百合女同互慰| 国产成人精品免费看| 久久蜜桃av一区精品变态类天堂| 色婷婷亚洲精品| 777色狠狠一区二区三区| 精品久久一区二区三区| 国产精品传媒视频| 夜夜嗨av一区二区三区网页| 日韩国产成人精品| 国产91色综合久久免费分享| 日本韩国欧美在线| 欧美videossexotv100| 国产精品久久三区| 亚洲成人免费在线观看| 欧美一区二区啪啪| 日韩免费看的电影| 国产精品天天摸av网| 一区二区三区在线观看视频| 日韩二区三区四区| 国产麻豆日韩欧美久久| 日本精品一级二级| 欧美成人a∨高清免费观看| 最新中文字幕一区二区三区| 日本美女一区二区三区视频| 成人免费看视频| 91精品国产综合久久久蜜臀粉嫩 | 香蕉久久夜色精品国产使用方法 | 91精品在线麻豆| 国产精品电影一区二区| 五月激情综合婷婷| 成人一级黄色片| 欧美一区三区二区| 国产精品麻豆一区二区| 青青草国产精品97视觉盛宴| av资源网一区| 精品精品欲导航| 亚洲一区在线观看免费| 成人毛片在线观看| 精品粉嫩aⅴ一区二区三区四区| 国产精品美女久久久久av爽李琼| 午夜电影久久久| www.一区二区| 国产日韩欧美一区二区三区乱码 | 欧美va亚洲va香蕉在线| 一区二区三区在线视频播放 | 国产精品美女一区二区| 麻豆91在线播放| 欧美久久久久久久久| 亚洲欧美日韩人成在线播放| 国产一二精品视频| 日韩精品中文字幕在线一区| 五月开心婷婷久久| 欧美日韩一区成人| 亚洲视频一二三| 成人黄色软件下载| 国产亚洲自拍一区| 国产一区二区三区黄视频| 日韩三级免费观看| 青青草国产精品97视觉盛宴 | 国产精品久久久久久久久图文区| 韩国三级在线一区| 精品日韩一区二区三区免费视频| 日韩—二三区免费观看av| 欧美老肥妇做.爰bbww视频| 亚洲综合在线观看视频| 99精品视频在线播放观看| 国产精品超碰97尤物18| av在线综合网| 中文字幕一区二区三区色视频 | 最新久久zyz资源站|