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

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

?? cmsxmlupdatelocalizationkeys.java

?? cms是開源的框架
?? JAVA
字號:
/*
 * File   : $Source: /usr/local/cvs/opencms/src/org/opencms/setup/xml/CmsXmlUpdateLocalizationKeys.java,v $
 * Date   : $Date: 2006/03/28 17:14:41 $
 * Version: $Revision: 1.3 $
 *
 * 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.util.CmsStringUtil;
import org.opencms.xml.CmsXmlUtils;

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

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

/**
 * Updates localization keys.<p>
 * 
 * @author Michael Moossen
 * 
 * @version $Revision: 1.3 $ 
 * 
 * @since 6.1.8 
 */
public class CmsXmlUpdateLocalizationKeys extends A_CmsXmlWorkplace {

    /** The new localization keys. */
    private List m_newKeys;

    /** The old localization keys. */
    private List m_oldKeys;

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

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

        return "Update localization keys";
    }

    /**
     * Returns the new Keys.<p>
     *
     * @return the new Keys
     */
    public List getNewKeys() {

        if (m_newKeys == null) {
            m_newKeys = new ArrayList();
            m_newKeys.add("GUI_EXPLORER_CONTEXT_LOCK_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_OVERRIDELOCK_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_UNLOCK_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_COPYTOPROJECT_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_PUBLISH_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_OPENGALLERY_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_RENAMEIMAGES_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_COMMENTIMAGES_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_PAGEEDIT_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_EDITSOURCE_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_EDITLINK_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_EDIT_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_COPY_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_MOVE_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_DELETE_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_REPLACE_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_TOUCH_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_AVAILABILITY_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_UNDOCHANGES_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_UNDELETE_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_SHOWSIBLINGS_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_ACCESS_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_SECURE_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_TYPE_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_CHNAV_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_EDITCONTROLFILE_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_HISTORY_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_PROPERTY_0");
            m_newKeys.add("GUI_EXPLORER_CONTEXT_MOVE_MULTI_0");
        }
        return m_newKeys;
    }

    /**
     * Returns the old Keys.<p>
     *
     * @return the old Keys
     */
    public List getOldKeys() {

        if (m_oldKeys == null) {
            m_oldKeys = new ArrayList();
            m_oldKeys.add("explorer.context.lock");
            m_oldKeys.add("explorer.context.overridelock");
            m_oldKeys.add("explorer.context.unlock");
            m_oldKeys.add("explorer.context.copytoproject");
            m_oldKeys.add("explorer.context.publish");
            m_oldKeys.add("explorer.context.opengallery");
            m_oldKeys.add("explorer.context.renameimages");
            m_oldKeys.add("explorer.context.commentimages");
            m_oldKeys.add("explorer.context.pageedit");
            m_oldKeys.add("explorer.context.editsource");
            m_oldKeys.add("explorer.context.editlink");
            m_oldKeys.add("explorer.context.edit");
            m_oldKeys.add("explorer.context.copy");
            m_oldKeys.add("explorer.context.move");
            m_oldKeys.add("explorer.context.delete");
            m_oldKeys.add("explorer.context.replace");
            m_oldKeys.add("explorer.context.touch");
            m_oldKeys.add("explorer.context.availability");
            m_oldKeys.add("explorer.context.undochanges");
            m_oldKeys.add("explorer.context.undelete");
            m_oldKeys.add("explorer.context.showsiblings");
            m_oldKeys.add("explorer.context.access");
            m_oldKeys.add("explorer.context.secure");
            m_oldKeys.add("explorer.context.type");
            m_oldKeys.add("explorer.context.chnav");
            m_oldKeys.add("explorer.context.editcontrolfile");
            m_oldKeys.add("explorer.context.history");
            m_oldKeys.add("explorer.context.property");
            m_oldKeys.add("explorer.context.move.multi");
        }
        return m_oldKeys;
    }

    /**
     * @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) {
            String key = xpath.substring(10, xpath.length() - 7);
            int pos = getOldKeys().indexOf(key);
            CmsSetupXmlHelper.setValue(document, xpath, (String)getNewKeys().get(pos));
            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) {
            // //*[@key='${key}']/@key
            StringBuffer xp = new StringBuffer(256);
            xp.append("//*[@");
            xp.append(I_CmsXmlConfiguration.A_KEY);
            xp.append("='${key}']/@");
            xp.append(I_CmsXmlConfiguration.A_KEY);

            m_xpaths = new ArrayList();
            Iterator it = getOldKeys().iterator();
            while (it.hasNext()) {
                m_xpaths.add(CmsStringUtil.substitute(xp.toString(), "${key}", (String)it.next()));
            }
        }
        return m_xpaths;
    }

    /**
     * @see org.opencms.setup.xml.A_CmsSetupXmlUpdate#prepareDoc(org.dom4j.Document)
     */
    protected Document prepareDoc(Document doc) {

        Document newDoc = super.prepareDoc(doc);
        String xpath = getCommonPath();
        Node node = doc.selectSingleNode(xpath);
        CmsSetupXmlHelper.setValue(newDoc, CmsXmlUtils.removeLastComplexXpathElement(xpath), "");
        node = (Node)node.clone();
        node.setParent(null);
        ((Branch)newDoc.selectSingleNode(CmsXmlUtils.removeLastComplexXpathElement(xpath))).add(node);
        return newDoc;
    }

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

        // do nothing
        return;
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产视频一区二区| 欧美日韩精品欧美日韩精品一| 欧美一区二区网站| 日韩中文字幕麻豆| 欧美日韩高清影院| 蜜臀av国产精品久久久久| 欧美一区二区黄| 国产在线一区观看| 中文字幕免费一区| 91影视在线播放| 亚洲成人激情社区| 欧美xxx久久| 国产精品综合在线视频| 国产精品看片你懂得| 91国偷自产一区二区使用方法| 亚洲成人激情av| 精品国免费一区二区三区| 国产精品一区三区| 亚洲三级电影网站| 91精品国产综合久久精品| 激情图片小说一区| 欧美激情一区二区三区不卡 | 欧美在线观看视频一区二区三区| 有码一区二区三区| 91.xcao| 国产毛片精品视频| 亚洲蜜桃精久久久久久久| 欧美久久久影院| 成人在线视频一区| 天堂va蜜桃一区二区三区漫画版| 亚洲精品在线网站| 丁香激情综合五月| 日韩高清一级片| 国产精品久久久久精k8 | 制服丝袜av成人在线看| 国产福利不卡视频| 夜夜精品浪潮av一区二区三区| 欧美一卡二卡在线| 91在线观看污| 久久丁香综合五月国产三级网站 | 亚洲男人电影天堂| 精品久久久久久久一区二区蜜臀| 99国产精品一区| 麻豆免费精品视频| 亚洲视频香蕉人妖| 欧美精品一区二区高清在线观看| 91老司机福利 在线| 紧缚奴在线一区二区三区| 亚洲国产中文字幕| 国产精品家庭影院| 久久综合九色综合97婷婷女人 | 丁香六月综合激情| 蜜臀久久99精品久久久久宅男| 国产精品剧情在线亚洲| 精品国产乱码久久久久久老虎 | 免费成人你懂的| 亚洲综合精品自拍| 亚洲三级在线播放| 日本一区二区免费在线| 精品国产免费人成在线观看| 欧美中文字幕亚洲一区二区va在线| 国产精品88888| 麻豆成人av在线| 亚洲成人免费av| 一区二区欧美在线观看| 国产精品久久久久影院亚瑟| 久久天天做天天爱综合色| 欧美狂野另类xxxxoooo| 欧美亚洲精品一区| 91国偷自产一区二区三区观看| 成人开心网精品视频| 国产一区二三区| 激情小说亚洲一区| 国产一区视频在线看| 国产在线精品一区二区不卡了| 蜜臀a∨国产成人精品| 麻豆精品一区二区综合av| 日本不卡视频一二三区| 日韩av中文字幕一区二区 | 石原莉奈在线亚洲二区| 亚洲成人激情自拍| 日韩影视精彩在线| 蜜臀精品一区二区三区在线观看 | 日韩av成人高清| 青青草97国产精品免费观看 | 一区二区久久久久| 一区二区成人在线| 午夜久久电影网| 青青草国产成人99久久| 韩国欧美一区二区| 国产激情精品久久久第一区二区| 国产99精品在线观看| 成人av网址在线观看| 91在线精品一区二区| 色www精品视频在线观看| 亚洲一区二区精品3399| 天天av天天翘天天综合网色鬼国产| 亚洲精品你懂的| 亚洲欧美电影院| 亚洲精品免费电影| 国产精品对白交换视频| 亚洲制服丝袜一区| 亚洲一区二区av在线| 一区二区三区**美女毛片| 亚洲综合一二区| 五月天丁香久久| 一区二区三区在线免费播放| 午夜久久福利影院| 日韩成人伦理电影在线观看| 免费视频一区二区| 国内精品伊人久久久久av一坑| 久久机这里只有精品| 免费的成人av| 成人一道本在线| 一本久道中文字幕精品亚洲嫩| 91福利在线看| 6080亚洲精品一区二区| 精品久久一二三区| 精品国产青草久久久久福利| 亚洲免费在线观看视频| 亚洲成人先锋电影| 国内久久精品视频| 91小视频在线免费看| 欧美日韩和欧美的一区二区| 欧美日韩中文另类| 欧美成人激情免费网| 欧美国产日韩一二三区| 亚洲制服丝袜av| 日本sm残虐另类| 丰满少妇久久久久久久| 91精品国产综合久久小美女| 久久伊人中文字幕| 亚洲精品视频在线观看免费 | 国产精品1区二区.| 欧美在线制服丝袜| 精品久久久久久久久久久久久久久久久 | 中文字幕av在线一区二区三区| 亚洲精品免费一二三区| 卡一卡二国产精品| 色综合久久中文字幕| 欧美熟乱第一页| 一区在线播放视频| 日本一道高清亚洲日美韩| 从欧美一区二区三区| 欧美性欧美巨大黑白大战| 2024国产精品| 中文字幕中文字幕在线一区| 精品午夜一区二区三区在线观看| 92国产精品观看| 精品国产一二三区| 一区二区免费在线播放| 国产乱人伦偷精品视频不卡| 色婷婷久久久综合中文字幕| 欧美国产精品一区二区| 日本成人在线电影网| 色香蕉久久蜜桃| 久久先锋影音av| 婷婷久久综合九色综合绿巨人| 狠狠色丁香婷婷综合| 日韩免费福利电影在线观看| 亚洲色图欧洲色图婷婷| 国产精品一品视频| 日韩欧美精品三级| 夜夜嗨av一区二区三区| 蜜桃视频一区二区| 日韩欧美视频一区| 亚洲成人激情av| 日本高清成人免费播放| 国产精品毛片高清在线完整版| 视频一区免费在线观看| 色婷婷综合激情| 国产亚洲成aⅴ人片在线观看 | 国精品**一区二区三区在线蜜桃| 欧美日韩一区 二区 三区 久久精品| 久久综合九色综合97婷婷| 国产自产2019最新不卡| 日韩精品一区二区三区视频播放 | 高清国产一区二区三区| 日韩三级av在线播放| 亚洲国产美女搞黄色| 欧美人与性动xxxx| 香蕉影视欧美成人| 在线视频欧美精品| 亚洲高清免费在线| 欧美日韩另类一区| 男人的天堂亚洲一区| 日韩一区二区三免费高清| 日韩主播视频在线| 欧美一级生活片| 蜜臀国产一区二区三区在线播放 | youjizz久久| 国产精品美女视频| 高清在线不卡av| 国产精品电影院| 97久久超碰国产精品| 国产日产精品一区| 91福利社在线观看| 亚洲va国产va欧美va观看| 欧美日韩免费一区二区三区 | 国产精品久久毛片|