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

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

?? cmsxmladdautosetfeatures.java

?? cms是開源的框架
?? JAVA
字號:
/*
 * File   : $Source: /usr/local/cvs/opencms/src/org/opencms/setup/xml/CmsXmlAddAutoSetFeatures.java,v $
 * Date   : $Date: 2006/03/27 14:52:44 $
 * Version: $Revision: 1.2 $
 *
 * This library is part of OpenCms -
 * the Open Source Content Mananagement System
 *
 * Copyright (c) 2005 Alkacon Software GmbH (http://www.alkacon.com)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * For further information about Alkacon Software GmbH, please see the
 * company website: http://www.alkacon.com
 *
 * For further information about OpenCms, please see the
 * project website: http://www.opencms.org
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

package org.opencms.setup.xml;

import org.opencms.configuration.CmsConfigurationManager;
import org.opencms.configuration.CmsWorkplaceConfiguration;
import org.opencms.configuration.I_CmsXmlConfiguration;
import org.opencms.file.types.CmsResourceTypeBinary;
import org.opencms.file.types.CmsResourceTypeFolder;
import org.opencms.file.types.CmsResourceTypeImage;
import org.opencms.file.types.CmsResourceTypeJsp;
import org.opencms.file.types.CmsResourceTypePlain;
import org.opencms.file.types.CmsResourceTypePointer;
import org.opencms.file.types.CmsResourceTypeXmlPage;
import org.opencms.util.CmsStringUtil;

import java.util.ArrayList;
import java.util.List;

import org.dom4j.Document;
import org.dom4j.Node;

/**
 * Adds the auto set features in new dialog.<p>
 * 
 * @author Michael Moossen
 * 
 * @version $Revision: 1.2 $ 
 * 
 * @since 6.1.8 
 */
public class CmsXmlAddAutoSetFeatures extends A_CmsXmlWorkplace {

    /** List of xpaths to update. */
    private List m_xpaths;

    /**
     * @see org.opencms.setup.xml.I_CmsSetupXmlUpdate#getName()
     */
    public String getName() {

        return "Add auto set features in new dialog";
    }

    /**
     * @see org.opencms.setup.xml.A_CmsSetupXmlUpdate#executeUpdate(org.dom4j.Document, java.lang.String)
     */
    protected boolean executeUpdate(Document document, String xpath) {

        Node node = document.selectSingleNode(xpath);
        if (node == null) {
            CmsSetupXmlHelper.setValue(document, xpath, Boolean.FALSE.toString());
            return true;
        }
        return false;
    }

    /**
     * @see org.opencms.setup.xml.A_CmsSetupXmlUpdate#getCommonPath()
     */
    protected String getCommonPath() {

        // /opencms/workplace/explorertypes
        return new StringBuffer("/").append(CmsConfigurationManager.N_ROOT).append("/").append(
            CmsWorkplaceConfiguration.N_WORKPLACE).append("/").append(CmsWorkplaceConfiguration.N_EXPLORERTYPES).toString();
    }

    /**
     * @see org.opencms.setup.xml.A_CmsSetupXmlUpdate#getXPathsToUpdate()
     */
    protected List getXPathsToUpdate() {

        if (m_xpaths == null) {
            // /opencms/workplace/explorertypes/explorertype[@name='${etype}']/newresource/@${attr}
            StringBuffer xp = new StringBuffer(256);
            xp.append("/").append(CmsConfigurationManager.N_ROOT);
            xp.append("/").append(CmsWorkplaceConfiguration.N_WORKPLACE);
            xp.append("/").append(CmsWorkplaceConfiguration.N_EXPLORERTYPES);
            xp.append("/").append(CmsWorkplaceConfiguration.N_EXPLORERTYPE);
            xp.append("[@").append(I_CmsXmlConfiguration.N_NAME);
            xp.append("='${etype}']/").append(CmsWorkplaceConfiguration.N_NEWRESOURCE);
            xp.append("/@");
            m_xpaths = new ArrayList();
            // ${etype}: folder, imagegallery, downloadgallery, xmlcontent, xmlpage, plain, image, jsp, binary, pointer, XMLTemplate, link, upload, extendedfolder, structurecontent
            // ${attr}: autosetnavigation, autosettitle 
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", CmsResourceTypeFolder.getStaticTypeName())
                + CmsWorkplaceConfiguration.A_AUTOSETNAVIGATION);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", "imagegallery")
                + CmsWorkplaceConfiguration.A_AUTOSETNAVIGATION);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", "downloadgallery")
                + CmsWorkplaceConfiguration.A_AUTOSETNAVIGATION);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", "xmlcontent")
                + CmsWorkplaceConfiguration.A_AUTOSETNAVIGATION);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", CmsResourceTypeXmlPage.getStaticTypeName())
                + CmsWorkplaceConfiguration.A_AUTOSETNAVIGATION);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", CmsResourceTypePlain.getStaticTypeName())
                + CmsWorkplaceConfiguration.A_AUTOSETNAVIGATION);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", CmsResourceTypeImage.getStaticTypeName())
                + CmsWorkplaceConfiguration.A_AUTOSETNAVIGATION);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", CmsResourceTypeJsp.getStaticTypeName())
                + CmsWorkplaceConfiguration.A_AUTOSETNAVIGATION);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", CmsResourceTypeBinary.getStaticTypeName())
                + CmsWorkplaceConfiguration.A_AUTOSETNAVIGATION);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", "XMLTemplate")
                + CmsWorkplaceConfiguration.A_AUTOSETNAVIGATION);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", CmsResourceTypePointer.getStaticTypeName())
                + CmsWorkplaceConfiguration.A_AUTOSETNAVIGATION);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", "link")
                + CmsWorkplaceConfiguration.A_AUTOSETNAVIGATION);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", "upload")
                + CmsWorkplaceConfiguration.A_AUTOSETNAVIGATION);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", "extendedfolder")
                + CmsWorkplaceConfiguration.A_AUTOSETNAVIGATION);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", "structurecontent")
                + CmsWorkplaceConfiguration.A_AUTOSETNAVIGATION);

            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", CmsResourceTypeFolder.getStaticTypeName())
                + CmsWorkplaceConfiguration.A_AUTOSETTITLE);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", "imagegallery")
                + CmsWorkplaceConfiguration.A_AUTOSETTITLE);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", "downloadgallery")
                + CmsWorkplaceConfiguration.A_AUTOSETTITLE);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", "xmlcontent")
                + CmsWorkplaceConfiguration.A_AUTOSETTITLE);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", CmsResourceTypeXmlPage.getStaticTypeName())
                + CmsWorkplaceConfiguration.A_AUTOSETTITLE);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", CmsResourceTypePlain.getStaticTypeName())
                + CmsWorkplaceConfiguration.A_AUTOSETTITLE);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", CmsResourceTypeImage.getStaticTypeName())
                + CmsWorkplaceConfiguration.A_AUTOSETTITLE);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", CmsResourceTypeJsp.getStaticTypeName())
                + CmsWorkplaceConfiguration.A_AUTOSETTITLE);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", CmsResourceTypeBinary.getStaticTypeName())
                + CmsWorkplaceConfiguration.A_AUTOSETTITLE);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", "XMLTemplate")
                + CmsWorkplaceConfiguration.A_AUTOSETTITLE);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", CmsResourceTypePointer.getStaticTypeName())
                + CmsWorkplaceConfiguration.A_AUTOSETTITLE);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", "link")
                + CmsWorkplaceConfiguration.A_AUTOSETTITLE);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", "upload")
                + CmsWorkplaceConfiguration.A_AUTOSETTITLE);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", "extendedfolder")
                + CmsWorkplaceConfiguration.A_AUTOSETTITLE);
            m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${etype}", "structurecontent")
                + CmsWorkplaceConfiguration.A_AUTOSETTITLE);
        }
        return m_xpaths;
    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧美电影一区二区| 欧美激情中文不卡| 色吧成人激情小说| 成人动漫中文字幕| 国产91在线看| 99久久精品国产一区二区三区| 丰满岳乱妇一区二区三区 | 91丝袜美腿高跟国产极品老师| 国模一区二区三区白浆| 国产在线不卡一区| 国产不卡视频一区| 成人动漫一区二区在线| 色综合网色综合| 日韩精品中文字幕一区二区三区| 欧美日韩在线播| 欧美日韩日日夜夜| 欧美一区二区黄| 久久久久久久久岛国免费| 中文字幕不卡在线| 一区二区视频免费在线观看| 一区二区三区中文字幕| 亚洲午夜一二三区视频| 日韩精品91亚洲二区在线观看| 天堂蜜桃91精品| 精品影视av免费| 高清av一区二区| 色哟哟国产精品| 6080国产精品一区二区| 久久综合九色综合97婷婷女人 | 蜜臀久久久99精品久久久久久| 久久国产精品免费| 99久久婷婷国产综合精品 | 大胆亚洲人体视频| 在线视频一区二区三| 日韩欧美色电影| 亚洲激情自拍视频| 蜜桃一区二区三区在线观看| 国产a级毛片一区| 欧美日韩综合色| 国产女人水真多18毛片18精品视频| 国产精品伦一区二区三级视频| 香港成人在线视频| 不卡视频在线看| 欧美精品丝袜中出| 中文字幕日本不卡| 久久国产精品99久久人人澡| 色综合视频在线观看| 亚洲精品一区二区三区四区高清 | 亚洲高清免费观看高清完整版在线观看| 日韩和欧美一区二区| www.爱久久.com| 日韩欧美一区二区在线视频| 亚洲日本一区二区三区| 激情小说欧美图片| 在线成人高清不卡| 亚洲天堂成人网| 国产成人日日夜夜| www国产精品av| 免费人成精品欧美精品| 99riav久久精品riav| 久久综合久久99| 裸体健美xxxx欧美裸体表演| 色综合一区二区| 欧美精彩视频一区二区三区| 国模套图日韩精品一区二区| 欧美一区二区不卡视频| 天使萌一区二区三区免费观看| 色噜噜夜夜夜综合网| 国产精品毛片高清在线完整版| 国产精品香蕉一区二区三区| 精品成人一区二区| 激情五月婷婷综合| 日韩欧美在线影院| 精品亚洲aⅴ乱码一区二区三区| 色天天综合色天天久久| 亚洲人成人一区二区在线观看| a4yy欧美一区二区三区| 国产精品久久久久久久久图文区| 国产成人精品免费一区二区| 久久免费国产精品| 国产在线一区二区综合免费视频| 精品欧美久久久| 国产精品亚洲人在线观看| 国产欧美一区二区精品性色| 国产成人av一区二区| 久久亚洲精精品中文字幕早川悠里| 另类小说欧美激情| 国产午夜亚洲精品不卡| 国产成人免费视频网站| 中文字幕一区av| 欧美亚洲愉拍一区二区| 日韩av一区二区三区| 亚洲精品在线电影| 粉嫩一区二区三区性色av| 中文字幕一区视频| 欧美日韩国产片| 国产美女av一区二区三区| 国产精品九色蝌蚪自拍| 欧美午夜精品久久久久久超碰 | 国产主播一区二区三区| 国产亚洲综合在线| 91亚洲国产成人精品一区二三| 亚洲国产欧美日韩另类综合 | 亚洲欧美在线另类| 欧美日韩美少妇| 国产乱人伦精品一区二区在线观看 | 精品国产亚洲在线| 国产a精品视频| 亚洲国产日韩在线一区模特| 日韩欧美在线观看一区二区三区| 夫妻av一区二区| 午夜伦欧美伦电影理论片| 久久久久九九视频| 欧亚一区二区三区| 国产精品一区在线观看乱码 | 欧美日韩视频专区在线播放| 蜜臂av日日欢夜夜爽一区| 国产精品国产三级国产aⅴ无密码| 欧美日韩一区中文字幕| 成人美女在线观看| 日本人妖一区二区| 亚洲精品乱码久久久久久| 精品处破学生在线二十三| 欧美午夜不卡视频| www.av精品| 国产一区视频网站| 日韩国产在线观看一区| 亚洲同性同志一二三专区| 精品日韩欧美在线| 欧美日韩中字一区| 一本大道av一区二区在线播放| 国产在线日韩欧美| 日韩精品成人一区二区在线| 一区二区三区四区亚洲| 中文字幕乱码亚洲精品一区| 日韩欧美国产三级电影视频| 欧美最猛黑人xxxxx猛交| 国产精品中文字幕一区二区三区| 亚洲bdsm女犯bdsm网站| 亚洲欧美日韩在线| 国产精品日韩精品欧美在线| 久久免费的精品国产v∧| 日韩一区二区三区观看| 欧美日韩欧美一区二区| 在线观看日产精品| www.久久久久久久久| 成人综合在线观看| 国产精品自拍一区| 国产成人精品亚洲777人妖| 麻豆91免费看| 久久97超碰国产精品超碰| 另类中文字幕网| 另类欧美日韩国产在线| 麻豆精品国产传媒mv男同| 午夜欧美一区二区三区在线播放| 亚洲综合色视频| 亚洲成人黄色小说| 日韩福利视频导航| 久久99这里只有精品| 国产一区不卡视频| 豆国产96在线|亚洲| 成人午夜电影久久影院| 成人av网站在线| 91麻豆成人久久精品二区三区| 99精品黄色片免费大全| 在线观看www91| 欧美乱妇23p| 日韩一区二区三区免费看| 精品国产凹凸成av人导航| 久久精品一区二区三区四区| 国产欧美一区二区精品久导航 | 亚洲第一主播视频| 蜜臀精品久久久久久蜜臀 | 亚洲日本在线天堂| 亚洲影院理伦片| 日韩 欧美一区二区三区| 精品在线播放午夜| 91亚洲永久精品| 欧美视频一区二区在线观看| 欧美一区午夜视频在线观看| 久久综合五月天婷婷伊人| 亚洲国产高清在线观看视频| 亚洲综合在线观看视频| 天堂在线亚洲视频| 高潮精品一区videoshd| 在线观看视频欧美| 精品蜜桃在线看| 亚洲欧美日韩成人高清在线一区| 亚洲高清三级视频| 国产成人aaa| 欧美午夜电影在线播放| 国产午夜精品一区二区三区嫩草 | 欧美一个色资源| 国产亚洲成aⅴ人片在线观看| 亚洲免费观看高清| 激情久久久久久久久久久久久久久久| av电影天堂一区二区在线 | 国产剧情在线观看一区二区| 欧美中文字幕一区二区三区亚洲| 精品精品国产高清一毛片一天堂|