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

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

?? mvnforumcategoryxml.java

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

    private CategoryXML categoryXML=null;
    private boolean categoryCreated=false;
    private MvnForumCategoryXML parentCategory=null;

    String categoryName         =null;
    String categoryDesc         =null;
    String categoryCreationDate =null;
    String categoryModifiedDate =null;
    String categoryOrder        =null;
    String categoryOption       =null;
    String categoryStatus       =null;

    public MvnForumCategoryXML() {
        super();
        categoryXML=new CategoryXML();
        categoryCreated=false;
        parentCategory=null;
    }

    public int getCategoryID() {
        return categoryXML.getCategoryID();
    }

    public void setCategoryID(String id) {
        categoryXML.setCategoryID(id);
    }

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

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

    public void setParentCategoryIfHave(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:
             * categoryXML.setParentCategoryID(parentCategory.getCategoryID());
             */
        } else {
            //Ignore. Don't have parent category.
            //throw new ForeignKeyNotFoundException("Can't find parent category.");
        }
    }

    public void setCategoryName(String value) {
        categoryName=value;
    }

    public void setCategoryDesc(String value) {
        categoryDesc=value;
    }

    public void setCategoryCreationDate(String value) {
        categoryCreationDate=value;
    }

    public void setCategoryModifiedDate(String value) {
        categoryModifiedDate=value;
    }

    public void setCategoryOrder(String value) {
        categoryOrder=value;
    }

    public void setCategoryOption(String value) {
        categoryOption=value;
    }

    public void setCategoryStatus(String value) {
        categoryStatus=value;
    }

    public void addCategory() 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 category has
         * subelements that need it already be defined, so they first call
         * this method to create category before creating data that refer him.
         */
        if (categoryCreated) return;
        /* Second, create parent category if it's not yet created. */
        if (parentCategory!=null) {
            parentCategory.addCategory();
            categoryXML.setParentCategoryID(parentCategory.getCategoryID());
        }

        ImportMvnForum.addMessage("Adding category \""+categoryName+"\".");
        categoryXML.addCategory(categoryName, categoryDesc,
                                categoryCreationDate, categoryModifiedDate,
                                categoryOrder, categoryOption, categoryStatus);
        categoryCreated=true;

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

    public void addCategoryWatch(String memberName,
                String watchType, String watchOption,
                String watchStatus, String watchCreationDate,
                String watchLastSentDate, String watchEndDate)
    throws CreateException, DuplicateKeyException, ObjectNotFoundException,
    DatabaseException, ForeignKeyNotFoundException, BadInputException {
        if ( (!categoryCreated) || (categoryXML.getCategoryID()<0) ) {
            addCategory();
        }
        ImportMvnForum.addMessage("Adding category watch for member \""+memberName+"\".");
        categoryXML.addCategoryWatch(memberName,
                    watchType, watchOption, watchStatus,
                    watchCreationDate, watchLastSentDate, watchEndDate);
    }

    public void updateAddedCategory(MvnForumCategoryXML subCategory) {
        //do nothing
        if (parentCategory!=null) {
            parentCategory.updateAddedCategory(subCategory);
        }
    }

    public void updateAddedForum(MvnForumForumXML subForum) {
        //do nothing
        if (parentCategory!=null) {
            parentCategory.updateAddedForum(subForum);
        }
    }

    public void updateAddedThread(MvnForumThreadXML subThread) {
        //do nothing
        if (parentCategory!=null) {
            parentCategory.updateAddedThread(subThread);
        }
    }

    public void updateAddedPost(MvnForumPostXML subPost) {
        //do nothing
        if (parentCategory!=null) {
            parentCategory.updateAddedPost(subPost);
        }
    }

    public void updateAddedAttachment(MvnForumAttachmentXML subAttachment) {
        //do nothing
        if (parentCategory!=null) {
            parentCategory.updateAddedAttachment(subAttachment);
        }
    }


}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线精品国精品国产尤物884a| 老司机一区二区| 日本精品一级二级| 亚洲综合一区二区三区| 欧美日韩国产123区| 日韩中文字幕av电影| 日韩女优电影在线观看| 国产一区二区三区四区五区入口| 国产清纯美女被跳蛋高潮一区二区久久w| 黄色日韩网站视频| 中文字幕中文字幕在线一区 | 精品欧美黑人一区二区三区| 久久国产剧场电影| 国产精品免费久久| 欧美三级资源在线| 久久99精品国产.久久久久| 国产欧美日本一区二区三区| 91视频免费播放| 日韩成人av影视| 欧美经典一区二区三区| 91国偷自产一区二区三区成为亚洲经典| 午夜精品久久久久久久久久久 | 老汉av免费一区二区三区| 国产亚洲成aⅴ人片在线观看| 色婷婷久久一区二区三区麻豆| 图片区日韩欧美亚洲| 久久视频一区二区| 色999日韩国产欧美一区二区| 日精品一区二区三区| 中文字幕第一页久久| 欧美日韩高清影院| 成人精品鲁一区一区二区| 亚洲国产日韩综合久久精品| 337p日本欧洲亚洲大胆精品| 色婷婷综合激情| 国产在线视频精品一区| 一区二区三区国产精品| 久久综合久久鬼色中文字| 欧美色涩在线第一页| 国产老肥熟一区二区三区| 午夜精品视频在线观看| 中文字幕一区在线观看| 欧美大片一区二区三区| 欧美中文字幕不卡| 成人深夜在线观看| 免费成人在线观看视频| 亚洲午夜精品17c| 中文一区二区完整视频在线观看| 51精品久久久久久久蜜臀| 99久久精品情趣| 国产超碰在线一区| 久久精品国产一区二区| 亚洲愉拍自拍另类高清精品| 中国色在线观看另类| 日韩欧美国产一区在线观看| 欧美三级电影在线观看| eeuss影院一区二区三区| 寂寞少妇一区二区三区| 日韩精品免费专区| 一区二区国产盗摄色噜噜| 中文字幕av资源一区| 精品对白一区国产伦| 欧美一区二区精品| 欧美日韩在线精品一区二区三区激情| 成人激情小说网站| 成人妖精视频yjsp地址| 国产馆精品极品| 国产一区二区不卡老阿姨| 日本午夜精品视频在线观看| 亚洲一区二区三区在线看| 亚洲免费大片在线观看| 成人欧美一区二区三区小说| 国产精品美日韩| 中文字幕一区二区三| 国产精品久久免费看| 日本一区二区不卡视频| 国产片一区二区| 欧美激情在线看| 国产精品福利在线播放| 中文字幕在线观看不卡| 国产精品夫妻自拍| 亚洲色欲色欲www在线观看| 亚洲男女一区二区三区| 亚洲色图在线播放| 亚洲一区二区成人在线观看| 亚洲成人黄色小说| 日产欧产美韩系列久久99| 免费人成精品欧美精品| 蜜桃视频在线观看一区| 国产美女久久久久| aaa欧美日韩| 在线精品视频免费观看| 91精品国产色综合久久久蜜香臀| 91麻豆精品国产自产在线观看一区 | 日韩av电影一区| 久久se这里有精品| 国产99久久久久久免费看农村| 国产·精品毛片| 91天堂素人约啪| 欧美日本视频在线| 欧美精品一区二区三区在线播放 | 中文字幕精品一区二区精品绿巨人| 国产精品午夜电影| 一区二区三区成人| 麻豆久久一区二区| 成人综合激情网| 欧美日韩综合在线| 精品福利av导航| 亚洲欧美在线aaa| 日韩精品免费专区| 国产成人av影院| 在线观看日韩电影| 精品国产亚洲一区二区三区在线观看| 国产日韩欧美亚洲| 亚洲夂夂婷婷色拍ww47 | 亚洲三级久久久| 日韩国产一区二| 成人综合婷婷国产精品久久免费| 欧美视频一区在线| 久久久久久久久97黄色工厂| 亚洲综合免费观看高清完整版在线| 日韩—二三区免费观看av| 国产成人免费视频精品含羞草妖精| 在线免费观看日本欧美| 欧美精品tushy高清| 国产精品久久久久久久久久久免费看| 亚洲成人av福利| av午夜一区麻豆| 26uuu久久天堂性欧美| 亚洲欧美日韩电影| 狠狠色丁香婷婷综合| 欧洲国内综合视频| 中文字幕中文字幕在线一区| 精品一区二区三区免费视频| 欧美在线观看一区| 国产精品视频yy9299一区| 日韩福利视频网| 不卡的av在线| 国产婷婷一区二区| 美女免费视频一区| 欧美人狂配大交3d怪物一区| 国产精品久久久久婷婷二区次| 麻豆精品国产传媒mv男同 | 日韩写真欧美这视频| 亚洲欧美日韩人成在线播放| 国产在线精品免费| 欧美精品一级二级三级| 亚洲六月丁香色婷婷综合久久| 国产一区二区三区精品视频| 日韩午夜激情电影| 亚洲bt欧美bt精品| 在线免费一区三区| 亚洲欧美日本韩国| zzijzzij亚洲日本少妇熟睡| 久久久久高清精品| 韩国欧美国产1区| 精品国产百合女同互慰| 免费黄网站欧美| 337p亚洲精品色噜噜| 亚洲成a人v欧美综合天堂| 91免费在线播放| 亚洲色图欧美在线| 99久久国产综合精品女不卡| 欧美激情综合五月色丁香小说| 国产精品自拍av| 久久精品人人做人人综合| 国产在线精品一区二区| 欧美精品一区二区三区在线 | 91视频91自| 亚洲人成网站精品片在线观看| 暴力调教一区二区三区| 亚洲视频一二三区| 日本高清无吗v一区| 一区二区三区 在线观看视频| 91丨九色丨蝌蚪丨老版| 亚洲黄色av一区| 欧美亚洲另类激情小说| 无吗不卡中文字幕| 欧美r级电影在线观看| 国产真实精品久久二三区| 国产欧美精品一区二区色综合朱莉 | 欧美日韩www| 日本大胆欧美人术艺术动态| 日韩欧美www| 国产91丝袜在线播放九色| 国产精品午夜春色av| 91久久一区二区| 免费观看在线色综合| 久久久久久亚洲综合影院红桃| 成人精品免费网站| 亚洲国产精品一区二区久久| 欧美一区二区三区日韩视频| 国产乱妇无码大片在线观看| 中文字幕一区在线观看| 欧美日韩综合色| 国产精品综合在线视频| 亚洲欧美日本韩国| 日韩欧美国产高清| 成人精品国产免费网站| 婷婷开心激情综合|