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

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

?? mvnforumpostxml.java

?? java servlet著名論壇源代碼
?? JAVA
字號:
/*
 * $Header: /cvsroot/mvnforum/mvnforum/src/com/mvnforum/admin/importexport/mvnforum/MvnForumPostXML.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.PostXML;
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>MvnForumPostXML</code> class encapsulates processing of
 * posts' 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>PostXML</code> and other neccessary classes in order to perform
 * the actual creation of a post.
 */
public class MvnForumPostXML {

    private PostXML postXML=null;
    private boolean postCreated=false;
    //only one of parentPost and parentThread will be defined (later), and the other will be null
    private MvnForumThreadXML parentThread =null;
    private MvnForumPostXML parentPost     =null;

    String postMemberName         = null;
    String postLastEditMemberName = null;
    String postTopic              = null;
    String postBody               = null;
    String postCreationDate       = null;
    String postLastEditDate       = null;
    String postCreationIP         = null;
    String postLastEditIP         = null;
    String postEditCount          = null;
    String postFormatOption       = null;
    String postOption             = null;
    String postStatus             = null;
    String postIcon               = null;
    String postAttachCount        = null;

    public MvnForumPostXML() {
        super();
        postXML=new PostXML();
        postCreated=false;
        parentThread=null;
        parentPost=null;
    }

    public int getPostID() {
        return postXML.getPostID();
    }

    public void setPostID(String id) {
        postXML.setPostID(id);
    }

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

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

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

    public int getParentThreadID() {
        return postXML.getParentThreadID();
    }

    public int getParentPostID() {
        return postXML.getParentPostID();
    }

    public void setParentThreadOrPost(Object o)
    throws ForeignKeyNotFoundException {
        if (o instanceof MvnForumThreadXML) {
            parentThread=(MvnForumThreadXML)o;
            //warning: parent thread might be not added to database yet
            parentPost=null;
        } else if (o instanceof MvnForumPostXML) {
            parentPost=(MvnForumPostXML)o;
            //warning: parent post might be not added to database yet
            parentThread=null;
        } else {
            throw new ForeignKeyNotFoundException("Can't find neither parent thread nor post.");
        }
    }

    public void setPostMemberName(String value) {
        postMemberName=value;
    }

    public void setPostLastEditMemberName(String value) {
        postLastEditMemberName=value;
    }

    public void setPostTopic(String value) {
        postTopic=value;
    }

    public void setPostBody(String value) {
        postBody=value;
    }

    public void setPostCreationDate(String value) {
        postCreationDate=value;
    }

    public void setPostLastEditDate(String value) {
        postLastEditDate=value;
    }

    public void setPostCreationIP(String value) {
        postCreationIP=value;
    }

    public void setPostLastEditIP(String value) {
        postLastEditIP=value;
    }

    public void setPostEditCount(String value) {
        postEditCount=value;
    }

    public void setPostFormatOption(String value) {
        postFormatOption=value;
    }

    public void setPostOption(String value) {
        postOption=value;
    }

    public void setPostStatus(String value) {
        postStatus=value;
    }

    public void setPostIcon(String value) {
        postIcon=value;
    }

    public void setPostAttachCount(String value) {
        postAttachCount=value;
    }

    public void addPost() 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 post has
         * subelements that need it already be defined, so they first call
         * this method to create post before creating data that refer him.
         */
        if (postCreated) return;
        /* Second, create parent thread and/or post if they are not yet created. */
        if (parentPost!=null) {
            parentPost.addPost();
            postXML.setParentPostID(parentPost.getPostID());
            postXML.setParentThreadID(parentPost.getParentThreadID());
            postXML.setParentForumID(parentPost.getParentForumID());
            postXML.setParentCategoryID(parentPost.getParentCategoryID());
        } else if (parentThread!=null) {
            parentThread.addThread();
            //postXML.setParentPostID(0) is not neccessary
            postXML.setParentThreadID(parentThread.getThreadID());
            postXML.setParentForumID(parentThread.getParentForumID());
            postXML.setParentCategoryID(parentThread.getParentCategoryID());
        }

        ImportMvnForum.addMessage("Adding post \""+postTopic+"\".");
        postXML.addPost(postMemberName, postLastEditMemberName,
                        postTopic, postBody,
                        postCreationDate, postLastEditDate,
                        postCreationIP, postLastEditIP,
                        postEditCount, postFormatOption,
                        postOption, postStatus,
                        postIcon, postAttachCount);
        postCreated=true;

        if (parentPost!=null) {
            parentPost.updateAddedReply(this, postMemberName, postCreationDate);
        } else if (parentThread!=null) {
            parentThread.updateAddedPost(this, postMemberName, postCreationDate);
        }
    }

    public void updateAddedReply(MvnForumPostXML subPost, String postUsername, String postCreationDate) {
        if ((!postCreated) || (postXML.getPostID()<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 (parentPost!=null) {
            parentPost.updateAddedReply(subPost, postUsername, postCreationDate);
        } else if (parentThread!=null) {
            parentThread.updateAddedPost(subPost, postUsername, postCreationDate);
        }
    }

    public void updateAddedAttachment(MvnForumAttachmentXML subAttachment) {
        if ((!postCreated) || (postXML.getPostID()<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 (parentPost!=null) {
            parentPost.updateAddedAttachment(subAttachment);
        } else if (parentThread!=null) {
            parentThread.updateAddedAttachment(subAttachment);
        }
    }


}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区影音先锋| 91精品在线免费观看| 亚洲欧美怡红院| 色爱区综合激月婷婷| 亚洲国产成人午夜在线一区| 91一区一区三区| 久久aⅴ国产欧美74aaa| 夜夜亚洲天天久久| 久久天天做天天爱综合色| 欧美美女bb生活片| 97成人超碰视| 成人国产精品视频| 久久国产精品99久久久久久老狼| 一区二区在线观看av| 国产精品护士白丝一区av| 久久亚洲影视婷婷| 日韩女优毛片在线| 欧美一区午夜视频在线观看| 91激情五月电影| 97久久精品人人做人人爽50路| 国产二区国产一区在线观看| 久久99日本精品| 久久99国产精品免费| 精品亚洲国内自在自线福利| 午夜精品123| 久久99精品网久久| 国产精品一区一区三区| 精品一区中文字幕| 三级成人在线视频| 性做久久久久久免费观看 | 91精品国产91久久久久久一区二区| 99re这里只有精品首页| 成人h动漫精品| 99热精品一区二区| 91麻豆免费看| 日本精品一级二级| 欧美日韩一区二区电影| 欧美日韩另类国产亚洲欧美一级| 欧美日韩一区二区不卡| 欧美精品久久久久久久多人混战| 欧美日韩激情一区二区| 欧美一区二区福利视频| 欧洲国内综合视频| 69堂国产成人免费视频| 26uuu国产在线精品一区二区| 日韩久久精品一区| 亚洲国产高清在线| 中文字幕免费观看一区| 亚洲一区二区三区中文字幕在线| 一区二区三区中文字幕电影| 亚洲成人激情社区| 国产真实乱对白精彩久久| 国产一区二区电影| 色香蕉成人二区免费| 欧美一区在线视频| 国产精品电影一区二区三区| 天天亚洲美女在线视频| 韩国v欧美v亚洲v日本v| 国产精品亚洲人在线观看| 欧美一a一片一级一片| 日韩女优视频免费观看| 国产精品伦理在线| 天天操天天色综合| 一本一道综合狠狠老| 日韩精品一区在线观看| 精品欧美久久久| 亚洲电影你懂得| 91在线观看下载| 久久久精品免费免费| 午夜视频一区二区| 99久久久国产精品免费蜜臀| 欧美在线观看一二区| 国产精品久线在线观看| 久久精品国产99久久6| 在线成人免费观看| 性做久久久久久久久| 91黄视频在线| 亚洲小少妇裸体bbw| 国产乱子轮精品视频| 26uuuu精品一区二区| 免费精品视频最新在线| 欧美一区国产二区| 美腿丝袜亚洲三区| 在线国产电影不卡| 亚洲成人激情av| 日韩三级.com| 日韩在线一区二区| 精品日韩在线观看| 国产综合色在线视频区| 久久亚洲欧美国产精品乐播| 激情国产一区二区| 国产精品欧美经典| 91麻豆swag| 亚洲愉拍自拍另类高清精品| 欧美性色欧美a在线播放| 亚洲一二三四区不卡| 欧美日韩第一区日日骚| 九色|91porny| 久久蜜桃av一区精品变态类天堂 | 国产呦萝稀缺另类资源| 国产情人综合久久777777| 激情综合亚洲精品| 亚洲色图.com| 日韩欧美高清一区| aa级大片欧美| 免费观看久久久4p| 色综合色综合色综合色综合色综合 | 99国产精品久久| 蜜臀国产一区二区三区在线播放| 久久久精品日韩欧美| 色综合天天天天做夜夜夜夜做| 亚洲午夜精品17c| 国产精品久久夜| 欧美精品一区二区久久久| 日本黄色一区二区| 免费观看30秒视频久久| 看国产成人h片视频| 美国十次综合导航| 捆绑调教一区二区三区| 久久精品国产**网站演员| 久久99精品国产麻豆婷婷 | 91在线免费视频观看| av午夜一区麻豆| 日本精品一级二级| 色综合激情五月| 欧美精品亚洲二区| 欧美一区二区三区婷婷月色| 91黄色小视频| 在线一区二区三区| 欧美亚洲日本国产| 精品视频免费看| 欧美日韩在线综合| 欧美三级视频在线观看| 欧美日韩国产不卡| 欧美大片一区二区| 国产精品无码永久免费888| 中文字幕不卡一区| 亚洲高清中文字幕| 另类综合日韩欧美亚洲| 激情图片小说一区| 国产在线一区观看| jlzzjlzz欧美大全| 3d成人动漫网站| 中文字幕不卡三区| 香蕉成人啪国产精品视频综合网 | 91福利社在线观看| 欧美性猛片aaaaaaa做受| 欧美不卡一二三| 亚洲国产视频在线| 成人av在线资源网站| 日韩欧美在线1卡| 日韩国产一二三区| 欧美在线一二三| 亚洲一区二区在线视频| 精品在线亚洲视频| 制服丝袜成人动漫| 五月天亚洲婷婷| 欧美一级久久久久久久大片| 亚洲bdsm女犯bdsm网站| 一本一道久久a久久精品综合蜜臀| 久久久亚洲午夜电影| 久久精品国产一区二区三| 欧美一级午夜免费电影| 精品一区二区在线视频| 日韩精品中文字幕在线不卡尤物| 免费久久99精品国产| 亚洲精品一区二区三区99| 看国产成人h片视频| 精品国产凹凸成av人导航| 国产一区福利在线| 国产精品久久久久一区二区三区 | 国产乱码精品一区二区三区av| 日韩女同互慰一区二区| 精品亚洲免费视频| 国产精品毛片a∨一区二区三区| www.视频一区| 日韩精品五月天| 久久久久久久精| 色悠久久久久综合欧美99| 偷窥国产亚洲免费视频| 欧美成人精品高清在线播放| 国产成都精品91一区二区三| 1024国产精品| 这里是久久伊人| 粉嫩高潮美女一区二区三区| 夜夜精品浪潮av一区二区三区| 正在播放亚洲一区| 处破女av一区二区| 亚洲成a人片在线观看中文| 精品三级在线看| 在线观看不卡视频| 精品一区二区三区不卡| 一区二区三区资源| 久久亚洲免费视频| 制服.丝袜.亚洲.中文.综合| 色悠悠久久综合| av在线不卡免费看| 99热精品一区二区| 99精品视频在线免费观看| 成人av在线网|