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

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

?? cmsvfsimportexporthandler.java

?? cms是開源的框架
?? JAVA
字號:
/*
 * File   : $Source: /usr/local/cvs/opencms/src/org/opencms/importexport/CmsVfsImportExportHandler.java,v $
 * Date   : $Date: 2006/03/27 14:52:54 $
 * Version: $Revision: 1.21 $
 *
 * 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.importexport;

import org.opencms.file.CmsObject;
import org.opencms.main.CmsIllegalArgumentException;
import org.opencms.report.I_CmsReport;
import org.opencms.security.CmsRoleViolationException;
import org.opencms.util.CmsStringUtil;
import org.opencms.xml.CmsXmlException;

import java.util.Collections;
import java.util.List;

import org.dom4j.Document;
import org.dom4j.Element;

/**
 * Import/export handler implementation for VFS data.<p>
 * 
 * @author Thomas Weckert  
 * 
 * @version $Revision: 1.21 $ 
 * 
 * @since 6.0.0 
 */
public class CmsVfsImportExportHandler implements I_CmsImportExportHandler {

    /** Timestamp to limit the resources to be exported by date.<p> */
    private long m_contentAge;

    /** The description of this import/export handler.<p> */
    private String m_description;

    /** The VFS paths to be exported.<p> */
    private List m_exportPaths;

    /** Boolean flag to decide whether user/group data should be exported or not.<p> */
    private boolean m_exportUserdata;

    /** Boolean flag to decide whether webuser data should be exported or not.<p> */
    private boolean m_exportWebusers;

    /** The name of the export file in the real file system.<p> */
    private String m_fileName;

    /** Boolean flag to decide whether VFS resources under /system/ should be exported or not.<p> */
    private boolean m_includeSystem;

    /** Boolean flag to decide whether unchanged resources should be exported or not.<p> */
    private boolean m_includeUnchanged;

    /** Boolean flag to indicate if the folders are exported recursively or not. */
    private boolean m_recursive;

    /**
     * Creates a new VFS import/export handler.<p>
     */
    public CmsVfsImportExportHandler() {

        super();
        m_description = Messages.get().getBundle().key(Messages.GUI_CMSIMPORTHANDLER_DEFAULT_DESC_0);
        m_includeSystem = false;
        m_includeUnchanged = true;
        m_exportUserdata = true;
        m_exportWebusers = false;
        m_exportPaths = Collections.EMPTY_LIST;
        m_recursive = true;
    }

    /**
     * @see org.opencms.importexport.I_CmsImportExportHandler#exportData(org.opencms.file.CmsObject, org.opencms.report.I_CmsReport)
     */
    public void exportData(CmsObject cms, I_CmsReport report)
    throws CmsImportExportException, CmsRoleViolationException {

        report.println(Messages.get().container(Messages.RPT_EXPORT_DB_BEGIN_0), I_CmsReport.FORMAT_HEADLINE);
        new CmsExport(
            cms,
            getFileName(),
            getExportPaths(),
            isIncludeSystem(),
            isIncludeUnchanged(),
            null,
            isExportUserdata(),
            isExportWebusers(),
            getContentAge(),
            report,
            isRecursive());
        report.println(Messages.get().container(Messages.RPT_EXPORT_DB_END_0), I_CmsReport.FORMAT_HEADLINE);
    }

    /**
     * Returns the timestamp to limit the resources to be exported by date.<p>
     * 
     * Only resources that have been modified after this date will be exported.<p>
     * 
     * @return the timestamp to limit the resources to be exported by date
     */
    public long getContentAge() {

        return m_contentAge;
    }

    /**
     * @see org.opencms.importexport.I_CmsImportExportHandler#getDescription()
     */
    public String getDescription() {

        return m_description;
    }

    /**
     * Returns the list with VFS paths to be exported.<p>
     * 
     * @return the list with VFS paths to be exported
     */
    public List getExportPaths() {

        return m_exportPaths;
    }

    /**
     * Returns the name of the export file in the real file system.<p>
     * 
     * @return the name of the export file in the real file system
     */
    public String getFileName() {

        return m_fileName;
    }

    /**
     * @see org.opencms.importexport.I_CmsImportExportHandler#importData(org.opencms.file.CmsObject, java.lang.String, java.lang.String, org.opencms.report.I_CmsReport)
     */
    public synchronized void importData(CmsObject cms, String importFile, String importPath, I_CmsReport report)
    throws CmsImportExportException, CmsXmlException, CmsRoleViolationException {

        report.println(Messages.get().container(Messages.RPT_IMPORT_DB_BEGIN_0), I_CmsReport.FORMAT_HEADLINE);
        CmsImport vfsImport = new CmsImport(cms, importFile, importPath, report);
        vfsImport.importResources();
        report.println(Messages.get().container(Messages.RPT_IMPORT_DB_END_0), I_CmsReport.FORMAT_HEADLINE);
    }

    /**
     * Returns the boolean flag to decide whether user/group data should be exported or not.<p>
     * 
     * @return true, if user/group data should be exported
     */
    public boolean isExportUserdata() {

        return m_exportUserdata;
    }

    /**
     * Returns the boolean flag to decide whether webusers should be exported or not.<p>
     * 
     * @return true, if webusers should be exported
     */
    public boolean isExportWebusers() {

        return m_exportWebusers;
    }

    /**
     * Returns the boolean flag to decide whether VFS resources under /system/ should be exported or not.<p>
     * 
     * @return true, if VFS resources under /system/ should not be exported
     */
    public boolean isIncludeSystem() {

        return m_includeSystem;
    }

    /**
     * Returns the boolean flag to decide whether unchanged resources should be exported or not.<p>
     * 
     * @return true, if unchanged resources should not be exported
     */
    public boolean isIncludeUnchanged() {

        return m_includeUnchanged;
    }

    /**
     * Returns the recursive flag.<p>
     *
     * @return the recursive flag
     */
    public boolean isRecursive() {

        return m_recursive;
    }

    /**
     * @see org.opencms.importexport.I_CmsImportExportHandler#matches(org.dom4j.Document)
     */
    public boolean matches(Document manifest) {

        Element rootElement = manifest.getRootElement();

        boolean hasModuleNode = (rootElement.selectNodes("./module/name").size() > 0);
        boolean hasFileNodes = (rootElement.selectNodes("./files/file").size() > 0);

        return (!hasModuleNode && hasFileNodes);
    }

    /**
     * Sets the timestamp to limit the resources to be exported by date.<p>
     * 
     * Only resources that have been modified after this date will be exported.<p>
     * 
     * @param contentAge the timestamp to limit the resources to be exported by date
     */
    public void setContentAge(long contentAge) {

        if (contentAge < 0) {
            String ageString = Long.toString(contentAge);
            throw new CmsIllegalArgumentException(Messages.get().container(Messages.ERR_BAD_CONTENT_AGE_1, ageString));
        }
        m_contentAge = contentAge;
    }

    /**
     * @see org.opencms.importexport.I_CmsImportExportHandler#setDescription(java.lang.String)
     */
    public void setDescription(String description) {

        m_description = description;
    }

    /**
     * Sets the list with VFS paths to be exported.<p>
     * 
     * @param exportPaths the list with VFS paths to be exported
     */
    public void setExportPaths(List exportPaths) {

        m_exportPaths = exportPaths;
    }

    /**
     * Sets the boolean flag to decide whether user/group data should be exported or not.<p>
     * 
     * @param exportUserdata true, if user/group data should not be exported
     */
    public void setExportUserdata(boolean exportUserdata) {

        m_exportUserdata = exportUserdata;
    }

    /**
     * Sets the boolean flag to decide whether webusers should be exported or not.<p>
     * 
     * @param exportWebusers true, if webusers should not be exported
     */
    public void setExportWebusers(boolean exportWebusers) {

        m_exportWebusers = exportWebusers;
    }

    /**
     * Sets the name of the export file in the real file system.<p>
     * 
     * @param fileName the name of the export file in the real file system
     */
    public void setFileName(String fileName) {

        if (CmsStringUtil.isEmpty(fileName) || !fileName.trim().equals(fileName)) {
            throw new CmsIllegalArgumentException(Messages.get().container(Messages.ERR_BAD_FILE_NAME_1, fileName));
        }
        m_fileName = fileName;
    }

    /**
     * Sets the boolean flag to decide whether VFS resources under /system/ should be exported or not.<p>
     * 
     * @param excludeSystem true, if VFS resources under /system/ should not be exported
     */
    public void setIncludeSystem(boolean excludeSystem) {

        m_includeSystem = excludeSystem;
    }

    /**
     * Sets the boolean flag to decide whether unchanged resources should be exported or not.<p>
     * 
     * @param excludeUnchanged true, if unchanged resources should not be exported
     */
    public void setIncludeUnchanged(boolean excludeUnchanged) {

        m_includeUnchanged = excludeUnchanged;
    }

    /**
     * Sets the recursive flag.<p>
     *
     * @param recursive the recursive flag to set
     */
    public void setRecursive(boolean recursive) {

        m_recursive = recursive;
    }

    /**
     * @see java.lang.Object#finalize()
     */
    protected void finalize() throws Throwable {

        try {
            if (m_exportPaths != null) {
                m_exportPaths.clear();
            }
            m_exportPaths = null;
        } catch (Exception e) {
            // noop
        } finally {
            super.finalize();
        }
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
九九热在线视频观看这里只有精品| 国产精品蜜臀在线观看| av亚洲精华国产精华精| 韩国av一区二区三区| 久久国产精品色婷婷| 蜜臀av性久久久久蜜臀aⅴ四虎 | 91在线观看一区二区| 国产精品一区三区| 国产精品亚洲综合一区在线观看| 精品影院一区二区久久久| 国产在线不卡一区| 岛国精品在线观看| 91麻豆免费视频| 欧美日韩一区二区欧美激情| 欧美日韩免费视频| 欧美一区二区在线观看| 欧美不卡视频一区| 欧美激情一区二区| 一区二区三区在线不卡| 婷婷综合久久一区二区三区| 久久精品久久久精品美女| 国产精品1区2区3区| 日本道免费精品一区二区三区| 欧美在线免费观看视频| 2023国产精华国产精品| 国产精品电影一区二区| 日韩电影免费在线| 成人性生交大片免费看中文网站| 欧洲av在线精品| 日韩精品一区二区三区视频播放 | 在线观看视频一区二区欧美日韩| 欧美日韩精品高清| 欧美激情在线看| 亚洲h动漫在线| 国产91精品一区二区麻豆网站| 色吊一区二区三区| 久久色视频免费观看| 亚洲综合在线视频| 国产在线精品一区二区夜色 | 成人性视频免费网站| 精品视频一区二区不卡| 国产日韩三级在线| 亚洲成人黄色影院| 成人免费电影视频| 日韩午夜在线观看视频| 亚洲精品免费在线观看| 国产精品1区二区.| 日韩你懂的在线观看| 亚洲444eee在线观看| 99久久精品国产网站| 久久精品亚洲一区二区三区浴池 | 欧美乱妇23p| 国产精品国产三级国产普通话99| 琪琪一区二区三区| 91久久人澡人人添人人爽欧美| 日韩欧美亚洲国产精品字幕久久久| 亚洲三级电影全部在线观看高清| 久久精品国产免费| 欧美日本在线看| 亚洲午夜久久久久中文字幕久| 成人在线综合网站| 久久久久久久综合日本| 久久电影网电视剧免费观看| 欧美高清视频一二三区| 亚洲国产综合在线| 色国产综合视频| 亚洲精品视频一区| 91麻豆精品在线观看| 国产精品国产a级| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 亚洲妇熟xx妇色黄| 欧美午夜片在线看| 天天影视色香欲综合网老头| 欧洲一区二区三区在线| 亚洲国产综合人成综合网站| 在线观看视频91| 亚洲电影在线播放| 欧美日韩www| 麻豆极品一区二区三区| 精品国产乱码久久久久久影片| 免费观看久久久4p| 精品盗摄一区二区三区| 国产高清久久久久| 亚洲欧洲三级电影| 欧美在线你懂得| 美女网站在线免费欧美精品| 欧美成人高清电影在线| 国产美女精品人人做人人爽| 国产视频911| 91丝袜国产在线播放| 亚洲一区二区三区四区五区中文| 欧美视频一区在线| 免费观看一级特黄欧美大片| 久久久久久久久久久黄色| 成人高清免费在线播放| 亚洲理论在线观看| 制服.丝袜.亚洲.中文.综合| 激情小说欧美图片| 国产精品国产自产拍高清av| 欧美挠脚心视频网站| 经典三级在线一区| 亚洲激情欧美激情| 精品国产伦理网| 91碰在线视频| 久久精品国产精品亚洲红杏| 国产精品久久久久久久久免费丝袜| 91亚洲国产成人精品一区二区三 | 国产精品三级av在线播放| 色就色 综合激情| 精品一区二区三区影院在线午夜| 国产精品免费免费| 91精品国产综合久久香蕉的特点| 国产91露脸合集magnet| 日本在线观看不卡视频| 1024精品合集| 日韩精品一区二区三区中文不卡| 91免费版在线| 久久99精品国产.久久久久| 亚洲视频中文字幕| 精品动漫一区二区三区在线观看| 在线视频中文字幕一区二区| 国产一区二区三区综合| 亚州成人在线电影| 亚洲欧美另类图片小说| 26uuu久久天堂性欧美| 欧美美女视频在线观看| 91在线视频官网| 国产在线看一区| 美女看a上一区| 亚洲国产欧美一区二区三区丁香婷| 久久久精品综合| 欧美精品一区二区三区在线| 欧美人体做爰大胆视频| 一本到高清视频免费精品| 国产成人日日夜夜| 精品亚洲porn| 蜜臀av一级做a爰片久久| 亚洲第四色夜色| 亚洲一区二区高清| 亚洲美女视频一区| 最近中文字幕一区二区三区| 久久精品视频网| 久久久久国产精品麻豆| 欧美精品一区二区三区很污很色的| 欧美一区二区在线免费播放| 欧美人伦禁忌dvd放荡欲情| 欧美视频一区二区三区在线观看| 色哟哟一区二区三区| 97精品视频在线观看自产线路二| 成人国产精品免费| 97精品久久久午夜一区二区三区| 99久精品国产| 一本久久a久久免费精品不卡| 91影视在线播放| 欧美视频完全免费看| 欧美羞羞免费网站| 欧美猛男gaygay网站| 欧美一区永久视频免费观看| 7777精品伊人久久久大香线蕉 | 成人av影视在线观看| 懂色一区二区三区免费观看| 成人午夜激情片| 色综合久久久久久久久久久| 欧美日韩在线电影| 91精品国产综合久久久久久| 日韩一区二区三区免费观看| 精品国产一区二区在线观看| 国产欧美一区二区精品久导航 | 国产色爱av资源综合区| 国产女人水真多18毛片18精品视频 | 高清视频一区二区| 色综合色狠狠综合色| 欧美日韩中文一区| 欧美成人艳星乳罩| 欧美激情一区二区三区不卡| 亚洲专区一二三| 久久99热99| www.久久精品| 欧美剧情片在线观看| 久久日一线二线三线suv| 亚洲私人影院在线观看| 日韩中文字幕麻豆| 国产福利91精品一区| 欧美优质美女网站| 欧美成人在线直播| 国产精品色噜噜| 青青草伊人久久| 波多野结衣中文一区| 4438x亚洲最大成人网| 国产欧美日韩另类一区| 亚洲18色成人| av亚洲精华国产精华精华 | 国产精品一区二区在线观看不卡 | 美腿丝袜在线亚洲一区| 高清不卡一二三区| 91精品国产一区二区三区| 亚洲国产精品传媒在线观看| 天天操天天色综合| 99久久免费精品| 久久日韩粉嫩一区二区三区|