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

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

?? cmsimportexportmanager.java

?? cms是開源的框架
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
    /** Import princial user translations. */
    private Map m_importUserTranslations;

    /** The configured import versions class names. */
    private List m_importVersionClasses;

    /** Boolean flag whether colliding resources should be overwritten during the import. */
    private boolean m_overwriteCollidingResources;

    /** The URL of a 4.x OpenCms app. to import content correct into 5.x OpenCms apps. */
    private String m_webAppUrl;

    /**
     * Creates a new instance for the import/export manager, will be called by the import/export configuration manager.
     */
    public CmsImportExportManager() {

        if (LOG.isInfoEnabled()) {
            LOG.info(Messages.get().getBundle().key(Messages.INIT_IMPORTEXPORT_INITIALIZING_0));
        }

        m_importExportHandlers = new ArrayList();
        m_immutableResources = new ArrayList();
        m_ignoredProperties = new ArrayList();
        m_convertToXmlPage = true;
        m_importGroupTranslations = new HashMap();
        m_importUserTranslations = new HashMap();
        m_overwriteCollidingResources = true;
        m_importVersionClasses = new ArrayList();
    }

    /**
     * Returns the "manifest.xml" of an available import resource as a dom4j document.<p>
     * 
     * The manifest is either read as a ZIP entry, or from a subfolder of the specified
     * file resource.<p>
     * 
     * @param resource a File resource
     * @return the "manifest.xml" as a dom4j document
     */
    public static Document getManifest(File resource) {

        Document manifest = null;
        ZipFile zipFile = null;
        ZipEntry zipFileEntry = null;
        InputStream input = null;
        Reader reader = null;
        SAXReader saxReader = null;
        File manifestFile = null;

        try {
            if (resource.isFile()) {
                if (!resource.getName().toLowerCase().endsWith(".zip")) {
                    // skip non-ZIP files
                    return null;
                }
                // create a Reader for a ZIP file
                zipFile = new ZipFile(resource);
                zipFileEntry = zipFile.getEntry(EXPORT_MANIFEST);
                input = zipFile.getInputStream(zipFileEntry);
                // transform the manifest.xml file into a dom4j Document
                saxReader = new SAXReader();
                manifest = saxReader.read(input);
            } else if (resource.isDirectory()) {
                // create a Reader for a file in the file system
                manifestFile = new File(resource, EXPORT_MANIFEST);
                reader = new BufferedReader(new FileReader(manifestFile));
                // transform the manifest.xml file into a dom4j Document
                saxReader = new SAXReader();
                manifest = saxReader.read(reader);
            }
        } catch (Exception e) {
            if (LOG.isDebugEnabled()) {
                LOG.debug(
                    Messages.get().getBundle().key(Messages.LOG_IMPORTEXPORT_ERROR_READING_MANIFEST_1, resource),
                    e);
            }
            manifest = null;
        } finally {
            try {
                if (reader != null) {
                    reader.close();
                }
            } catch (Exception e) {
                // noop
            }
        }

        return manifest;
    }

    /**
     * Adds a property name to the list of properties that should be removed from imported resources.<p>
     * 
     * @param propertyName a property name
     */
    public void addIgnoredProperty(String propertyName) {

        if (LOG.isDebugEnabled()) {
            LOG.debug(Messages.get().getBundle().key(Messages.LOG_IMPORTEXPORT_IGNORING_PROPERTY_1, propertyName));
        }
        m_ignoredProperties.add(propertyName);
    }

    /**
     * Adds a resource to the list of immutable resources that should remain 
     * unchanged when resources are imported.<p>
     * 
     * @param immutableResource a resources uri in the OpenCms VFS
     */
    public void addImmutableResource(String immutableResource) {

        if (LOG.isDebugEnabled()) {
            LOG.debug(Messages.get().getBundle().key(
                Messages.LOG_IMPORTEXPORT_ADDED_IMMUTABLE_RESOURCE_1,
                immutableResource));
        }
        m_immutableResources.add(immutableResource);
    }

    /**
     * Adds an import/export handler to the list of configured handlers.<p>
     * 
     * @param handler the import/export handler to add
     */
    public void addImportExportHandler(I_CmsImportExportHandler handler) {

        if (LOG.isDebugEnabled()) {
            LOG.debug(Messages.get().getBundle().key(Messages.LOG_IMPORTEXPORT_ADDED_IMPORTEXPORT_HANDLER_1, handler));
        }
        m_importExportHandlers.add(handler);
    }

    /**
     * Adds an import princial translation to the configuration.<p>
     * 
     * @param type the princial type ("USER" or "GROUP")
     * @param from the "from" translation source
     * @param to the "to" translation target
     */
    public void addImportPrincipalTranslation(String type, String from, String to) {

        if (LOG.isDebugEnabled()) {
            LOG.debug(Messages.get().getBundle().key(
                Messages.LOG_IMPORTEXPORT_ADDED_PRINCIPAL_TRANSLATION_3,
                type,
                from,
                to));
        }
        if (I_CmsPrincipal.PRINCIPAL_GROUP.equalsIgnoreCase(type)) {
            m_importGroupTranslations.put(from, to);
            if (LOG.isInfoEnabled()) {
                LOG.info(Messages.get().getBundle().key(Messages.INIT_IMPORTEXPORT_ADDED_GROUP_TRANSLATION_2, from, to));
            }
        } else if (I_CmsPrincipal.PRINCIPAL_USER.equalsIgnoreCase(type)) {
            m_importUserTranslations.put(from, to);
            if (LOG.isInfoEnabled()) {
                LOG.info(Messages.get().getBundle().key(Messages.INIT_IMPORTEXPORT_ADDED_USER_TRANSLATION_2, from, to));
            }
        }
    }

    /**
     * Adds a import version class name to the configuration.<p>
     * 
     * @param importVersionClass the import version class name to add
     */
    public void addImportVersionClass(I_CmsImport importVersionClass) {

        if (LOG.isDebugEnabled()) {
            LOG.debug(Messages.get().getBundle().key(
                Messages.LOG_IMPORTEXPORT_ADDED_IMPORT_VERSION_1,
                importVersionClass));
        }
        m_importVersionClasses.add(importVersionClass);
    }

    /**
     * Checks if imported pages should be converted into XML pages.<p>
     * 
     * @return true, if imported pages should be converted into XML pages
     */
    public boolean convertToXmlPage() {

        return m_convertToXmlPage;
    }

    /**
     * Checks if the current user has permissions to export Cms data of a specified export handler,
     * and if so, triggers the handler to write the export.<p>
     * 
     * @param cms the current OpenCms context object
     * @param handler handler containing the export data
     * @param report a Cms report to print log messages
     * @throws CmsRoleViolationException if the current user is not a allowed to export the OpenCms database
     * @throws CmsImportExportException if operation was not successful
     * @throws CmsConfigurationException if something goes wrong
     * @see I_CmsImportExportHandler
     */
    public void exportData(CmsObject cms, I_CmsImportExportHandler handler, I_CmsReport report)
    throws CmsConfigurationException, CmsImportExportException, CmsRoleViolationException {

        cms.checkRole(CmsRole.EXPORT_DATABASE);
        handler.exportData(cms, report);
    }

    /**
     * Returns the list of property keys that should be removed from imported resources.<p>
     * 
     * @return the list of property keys that should be removed from imported resources, or Collections.EMPTY_LIST
     */
    public List getIgnoredProperties() {

        return m_ignoredProperties;
    }

    /**
     * Returns the list of immutable resources that should remain unchanged when resources are 
     * imported.<p>
     * 
     * Certain system resources should not be changed during import. This is the case for the main 
     * folders in the /system/ folder. Changes to these folders usually should not be imported to 
     * another system.<p>
     * 
     * @return the list of immutable resources, or Collections.EMPTY_LIST
     */
    public List getImmutableResources() {

        return m_immutableResources;
    }

    /**
     * Returns an instance of an import/export handler implementation that is able to import
     * a specified resource.<p>
     * 
     * @param importFile the name (absolute path) of the resource (zipfile or folder) to be imported
     * @return an instance of an import/export handler implementation
     * @throws CmsImportExportException if somethong goes wrong
     */
    public I_CmsImportExportHandler getImportExportHandler(String importFile) throws CmsImportExportException {

        Document manifest = null;
        I_CmsImportExportHandler handler = null;

        File file = new File(importFile);
        if (!file.exists()) {
            // file does not exist
            CmsMessageContainer message = Messages.get().container(
                Messages.ERR_IMPORTEXPORT_ERROR_IMPORT_FILE_DOES_NOT_EXIST_1,
                importFile);
            if (LOG.isDebugEnabled()) {
                LOG.debug(message.key());
            }

            throw new CmsImportExportException(message);
        }

        manifest = getManifest(file);
        for (int i = 0; i < m_importExportHandlers.size(); i++) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美视频中文字幕| 久久久91精品国产一区二区三区| 欧美成人精品福利| 亚洲免费观看高清完整版在线观看| 免费看黄色91| 欧美色男人天堂| 国产亚洲精品资源在线26u| 午夜在线电影亚洲一区| 成人99免费视频| 国产精品美女久久久久久久久| 久久久青草青青国产亚洲免观| 亚洲色图制服丝袜| 久久99精品国产| 69av一区二区三区| 亚洲午夜精品久久久久久久久| 韩国欧美国产一区| 欧美一卡二卡三卡| 丝袜亚洲另类欧美综合| 欧美视频一区在线| 一片黄亚洲嫩模| 91久久一区二区| 中文字幕在线免费不卡| 国产精品一区专区| 精品99999| 国产一区二三区| 欧美婷婷六月丁香综合色| 日韩欧美成人一区二区| 天天操天天色综合| 欧美日韩在线播放三区四区| 一区二区三区欧美在线观看| 欧美日韩黄色一区二区| 亚洲另类色综合网站| youjizz久久| 中文字幕在线观看不卡| 成人黄色777网| 亚洲视频免费在线观看| 色乱码一区二区三区88| 亚洲国产一二三| 91精品国产麻豆国产自产在线| 日韩高清不卡一区二区三区| 欧美一卡二卡三卡| 国产一区二区女| 国产三级三级三级精品8ⅰ区| 成人在线视频一区二区| 亚洲色图欧洲色图婷婷| 色菇凉天天综合网| 日韩精品一卡二卡三卡四卡无卡| 日韩西西人体444www| 韩日精品视频一区| 国产精品久久影院| 欧美日韩精品一区二区三区| 日韩 欧美一区二区三区| 精品免费99久久| 粉嫩一区二区三区在线看| 一区二区中文字幕在线| 欧美日韩一区二区三区高清| 奇米影视在线99精品| 欧美激情在线看| 欧美视频一区二区| 激情综合网激情| 最新久久zyz资源站| 欧美日韩国产高清一区二区三区| 琪琪一区二区三区| 成人免费在线观看入口| 欧美肥胖老妇做爰| 成人午夜碰碰视频| 五月激情六月综合| 国产日产欧美一区| 欧美日韩久久一区| 9久草视频在线视频精品| 性做久久久久久久久| 国产精品色一区二区三区| 在线成人av网站| 99在线精品免费| 美女爽到高潮91| 樱桃视频在线观看一区| 久久日一线二线三线suv| 一本到一区二区三区| 国产一区二区免费在线| 26uuu色噜噜精品一区二区| 欧美综合色免费| 成人免费视频网站在线观看| 欧美a一区二区| 一卡二卡三卡日韩欧美| 国产精品色哟哟网站| 26uuu亚洲婷婷狠狠天堂| 91精品国产综合久久久久久久久久 | 爽好多水快深点欧美视频| 中文字幕av一区 二区| 日韩亚洲欧美在线观看| 欧美日韩亚洲综合在线| 91亚洲国产成人精品一区二区三| 精品一区二区三区在线观看| 性久久久久久久久久久久| 亚洲免费在线观看| 亚洲国产精品二十页| 国产日韩欧美激情| 精品国产乱码久久久久久浪潮| 欧美日韩二区三区| 欧美系列日韩一区| 91麻豆精东视频| 波多野结衣在线一区| 国产成人欧美日韩在线电影| 国产一区二区三区| 国产乱色国产精品免费视频| 麻豆精品在线看| 美女一区二区久久| 老色鬼精品视频在线观看播放| 日韩一区精品字幕| 日韩 欧美一区二区三区| 日韩高清一级片| 日韩激情中文字幕| 日韩综合在线视频| 日本不卡1234视频| 精品亚洲成a人在线观看| 精品一区二区三区影院在线午夜 | 99久久精品国产毛片| 久久99日本精品| 久久99精品一区二区三区三区| 久久精品国产澳门| 久久av中文字幕片| 国产精品一级片在线观看| 国产一区二区三区精品欧美日韩一区二区三区 | 奇米精品一区二区三区在线观看| 亚洲一区二区三区在线播放| 亚洲一区在线看| 天天色综合天天| 捆绑调教美女网站视频一区| 激情文学综合网| 国产成人无遮挡在线视频| 99re热这里只有精品视频| 色噜噜久久综合| 精品1区2区3区| 91精品国产一区二区三区蜜臀| 91精品国产全国免费观看| 久久伊人蜜桃av一区二区| 中文字幕免费在线观看视频一区| 中文字幕欧美一区| 午夜精品久久久久久久99水蜜桃| 美女一区二区在线观看| 国产91清纯白嫩初高中在线观看| 粉嫩欧美一区二区三区高清影视| 色综合天天狠狠| 91精品国产高清一区二区三区| 精品粉嫩aⅴ一区二区三区四区| 欧美国产在线观看| 亚洲精品v日韩精品| 蜜臀a∨国产成人精品| 成人免费看片app下载| 欧美人动与zoxxxx乱| 2021国产精品久久精品| 国产精品天天看| 日韩精彩视频在线观看| 成人精品一区二区三区四区| 7777精品久久久大香线蕉| 国产欧美日韩亚州综合| 亚洲综合成人在线视频| 国产精品99久久久久久宅男| 欧洲亚洲国产日韩| 国产精品欧美一级免费| 久久久无码精品亚洲日韩按摩| 一区二区三区美女| 蜜桃视频在线观看一区| 国产成人av一区二区三区在线 | 欧美日韩国产首页| 国产情人综合久久777777| 亚洲成人激情综合网| 亚洲午夜免费电影| 91热门视频在线观看| 精品一区二区三区免费播放| 色婷婷综合久色| 久久久久久久久久久电影| 午夜精品福利一区二区三区蜜桃| 成人一区在线观看| 日韩欧美高清在线| 亚洲成人激情社区| 99久久久久免费精品国产| 精品成a人在线观看| 日本一不卡视频| 在线免费一区三区| 中文字幕一区二区三区av| 国产毛片精品视频| 亚洲精品免费电影| 久久综合综合久久综合| 欧美亚洲图片小说| 中文字幕佐山爱一区二区免费| 国产精品综合视频| 日韩亚洲欧美高清| 亚洲成人资源在线| 欧洲av在线精品| 中文字幕亚洲欧美在线不卡| 成人综合在线观看| 中文字幕精品一区二区三区精品 | 国产精品99久久久久久久vr| 欧美一区二区三区小说| 日韩福利电影在线观看| 91精品国产91久久综合桃花| 日本欧美一区二区在线观看| 欧美日韩视频在线一区二区| 一区二区三区电影在线播|