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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? cmsexport.java

?? cms是開源的框架
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
        boolean exportUserdata,
        long contentAge,
        I_CmsReport report,
        boolean recursive)
    throws CmsImportExportException, CmsRoleViolationException {

        this(
            cms,
            exportFile,
            resourcesToExport,
            includeSystem,
            includeUnchanged,
            moduleElement,
            exportUserdata,
            false,
            contentAge,
            report,
            recursive);
    }

    /**
     * Exports the given folder and all child resources.<p>
     *
     * @param folderName to complete path to the resource to export
     * @throws CmsImportExportException if something goes wrong
     * @throws SAXException if something goes wrong procesing the manifest.xml
     * @throws IOException if not all resources could be appended to the ZIP archive
     */
    protected void addChildResources(String folderName) throws CmsImportExportException, IOException, SAXException {

        try {
            // get all subFolders
            List subFolders = getCms().getSubFolders(folderName, CmsResourceFilter.IGNORE_EXPIRATION);
            // get all files in folder
            List subFiles = getCms().getFilesInFolder(folderName, CmsResourceFilter.IGNORE_EXPIRATION);

            // walk through all files and export them
            for (int i = 0; i < subFiles.size(); i++) {
                CmsResource file = (CmsResource)subFiles.get(i);
                int state = file.getState();
                long age = file.getDateLastModified() < file.getDateCreated() ? file.getDateCreated()
                : file.getDateLastModified();

                if (getCms().getRequestContext().currentProject().isOnlineProject()
                    || (m_includeUnchanged)
                    || state == CmsResource.STATE_NEW
                    || state == CmsResource.STATE_CHANGED) {
                    if ((state != CmsResource.STATE_DELETED)
                        && (!file.getName().startsWith("~"))
                        && (age >= m_contentAge)) {
                        String export = getCms().getSitePath(file);
                        if (checkExportResource(export)) {
                            exportFile(getCms().readFile(export, CmsResourceFilter.IGNORE_EXPIRATION));
                        }
                    }
                }
                // release file header memory
                subFiles.set(i, null);
            }
            // all files are exported, release memory
            subFiles = null;

            // walk through all subfolders and export them
            for (int i = 0; i < subFolders.size(); i++) {
                CmsResource folder = (CmsResource)subFolders.get(i);
                if (folder.getState() != CmsResource.STATE_DELETED) {
                    // check if this is a system-folder and if it should be included.
                    String export = getCms().getSitePath(folder);
                    if (checkExportResource(export)) {

                        long age = folder.getDateLastModified() < folder.getDateCreated() ? folder.getDateCreated()
                        : folder.getDateLastModified();
                        // export this folder only if age is above selected age
                        // default for selected age (if not set by user) is <code>long 0</code> (i.e. 1970)
                        if (age >= m_contentAge) {
                            // only export folder data to manifest.xml if it has changed
                            appendResourceToManifest(folder, false);
                        }

                        // export all sub-resources in this folder
                        addChildResources(getCms().getSitePath(folder));
                    }
                }
                // release folder memory
                subFolders.set(i, null);
            }
        } catch (CmsImportExportException e) {

            throw e;
        } catch (CmsException e) {

            CmsMessageContainer message = Messages.get().container(
                Messages.ERR_IMPORTEXPORT_ERROR_ADDING_CHILD_RESOURCES_1,
                folderName);
            if (LOG.isDebugEnabled()) {
                LOG.debug(message.key(), e);
            }

            throw new CmsImportExportException(message, e);
        }
    }

    /**
     * Closes the export ZIP file and saves the XML document for the manifest.<p>
     * 
     * @param exportNode the export root node
     * @throws SAXException if something goes wrong procesing the manifest.xml
     * @throws IOException if something goes wrong while closing the export file
     */
    protected void closeExportFile(Element exportNode) throws IOException, SAXException {

        // close the <export> Tag
        getSaxWriter().writeClose(exportNode);

        // close the XML document 
        CmsXmlSaxWriter xmlSaxWriter = (CmsXmlSaxWriter)getSaxWriter().getContentHandler();
        xmlSaxWriter.endDocument();

        // create zip entry for the manifest XML document
        ZipEntry entry = new ZipEntry(CmsImportExportManager.EXPORT_MANIFEST);
        getExportZipStream().putNextEntry(entry);

        // complex substring operation is required to ensure handling for very large export manifest files
        StringBuffer result = ((StringWriter)xmlSaxWriter.getWriter()).getBuffer();
        int steps = result.length() / SUB_LENGTH;
        int rest = result.length() % SUB_LENGTH;
        int pos = 0;
        for (int i = 0; i < steps; i++) {
            String sub = result.substring(pos, pos + SUB_LENGTH);
            getExportZipStream().write(sub.getBytes(OpenCms.getSystemInfo().getDefaultEncoding()));
            pos += SUB_LENGTH;
        }
        if (rest > 0) {
            String sub = result.substring(pos, pos + rest);
            getExportZipStream().write(sub.getBytes(OpenCms.getSystemInfo().getDefaultEncoding()));
        }

        // close the zip entry for the manifest XML document
        getExportZipStream().closeEntry();

        // finally close the zip stream
        getExportZipStream().close();
    }

    /**
     * Writes the output element to the XML output writer and detaches it 
     * from it's parent element.<p> 
     * 
     * @param parent the parent element
     * @param output the output element 
     * @throws SAXException if something goes wrong procesing the manifest.xml
     */
    protected void digestElement(Element parent, Element output) throws SAXException {

        m_saxWriter.write(output);
        parent.remove(output);
    }

    /**
     * Exports all resources and possible sub-folders form the provided list of resources.
     * 
     * @param parent the parent node to add the resources to
     * @param resourcesToExport the list of resources to export
     * @throws CmsImportExportException if something goes wrong
     * @throws SAXException if something goes wrong procesing the manifest.xml
     * @throws IOException if not all resources could be appended to the ZIP archive
     */
    protected void exportAllResources(Element parent, List resourcesToExport)
    throws CmsImportExportException, IOException, SAXException {

        // export all the resources
        String resourceNodeName = getResourceNodeName();
        m_resourceNode = parent.addElement(resourceNodeName);
        getSaxWriter().writeOpen(m_resourceNode);

        if (m_recursive) {
            // remove the possible redundancies in the list of resources
            resourcesToExport = CmsFileUtil.removeRedundancies(resourcesToExport);
        }

        // distinguish folder and file names   
        List folderNames = new ArrayList();
        List fileNames = new ArrayList();
        Iterator it = resourcesToExport.iterator();
        while (it.hasNext()) {
            String resource = (String)it.next();
            if (CmsResource.isFolder(resource)) {
                folderNames.add(resource);
            } else {
                fileNames.add(resource);
            }
        }

        // init sets required for the body file exports 
        m_exportedResources = new HashSet();
        m_exportedPageFiles = new HashSet();

        // export the folders
        for (int i = 0; i < folderNames.size(); i++) {
            String path = (String)folderNames.get(i);
            if (m_recursive) {
                // first add superfolders to the xml-config file
                addParentFolders(path);
                addChildResources(path);
            } else {
                CmsFolder folder;
                try {
                    folder = getCms().readFolder(path, CmsResourceFilter.IGNORE_EXPIRATION);
                } catch (CmsException e) {
                    CmsMessageContainer message = Messages.get().container(
                        Messages.ERR_IMPORTEXPORT_ERROR_ADDING_PARENT_FOLDERS_1,
                        path);
                    if (LOG.isDebugEnabled()) {
                        LOG.debug(message.key(), e);
                    }
                    throw new CmsImportExportException(message, e);
                }
                int state = folder.getState();
                long age = folder.getDateLastModified() < folder.getDateCreated() ? folder.getDateCreated()
                : folder.getDateLastModified();

                if (getCms().getRequestContext().currentProject().isOnlineProject()
                    || (m_includeUnchanged)
                    || state == CmsResource.STATE_NEW
                    || state == CmsResource.STATE_CHANGED) {
                    if ((state != CmsResource.STATE_DELETED) && (age >= m_contentAge)) {
                        // check if this is a system-folder and if it should be included.
                        String export = getCms().getSitePath(folder);
                        if (checkExportResource(export)) {
                            appendResourceToManifest(folder, false);
                        }
                    }
                }
            }
            m_exportedResources.add(path);
        }
        // export the files
        addFiles(fileNames);
        // export all body files that have not already been exported
        addPageBodyFiles();

        // write the XML
        getSaxWriter().writeClose(m_resourceNode);
        parent.remove(m_resourceNode);
        m_resourceNode = null;
    }

    /**
     * Returns the OpenCms context object this export was initialized with.<p>
     * 
     * @return the OpenCms context object this export was initialized with
     */
    protected CmsObject getCms() {

        return m_cms;
    }

    /**
     * Returns the name of the export file.<p>
     * 
     * @return the name of the export file
     */
    protected String getExportFileName() {

        return m_exportFileName;
    }

    /**
     * Returns the name of the main export node.<p>
     * 
     * @return the name of the main export node
     */
    protected String getExportNodeName() {

        return CmsImportExportManager.N_EXPORT;
    }

    /**
     * Returns the zip output stream to write to.<p>
     * 
     * @return the zip output stream to write to
     */
    protected ZipOutputStream getExportZipStream() {

        return m_exportZipStream;
    }

    /**
     * Returns the report to write progess messages to.<p>
     * 
     * @return the report to write progess messages to
     */
    protected I_CmsReport getReport() {

        return m_report;
    }

    /**
     * Returns the name for the main resource node.<p>
     * 
     * @return the name for the main resource node
     */
    protected String getResourceNodeName() {

        return "files";
    }

    /**
     * Returns the SAX baesed xml writer to write the XML output to.<p>
     * 
     * @return the SAX baesed xml writer to write the XML output to
     */
    protected SAXWriter getSaxWriter() {

        return m_saxWriter;
    }

    /**
     * Checks if a property should be written to the export or not.<p>
     * 
     * @param property the property to check
     * @return if true, the property is to be ignored, otherwise it should be exported
     */
    protected boolean isIgnoredProperty(CmsProperty property) {

        if (property == null) {
            return true;
        }
        // default implementation is to export all properties not null
        return false;
    }

    /**
     * Opens the export ZIP file and initializes the internal XML document for the manifest.<p>
     * 
     * @return the node in the XML document where all files are appended to
     * @throws SAXException if something goes wrong procesing the manifest.xml
     * @throws IOException if something goes wrong while closing the export file
     */
    protected Element openExportFile() throws IOException, SAXException {

        // create the export-zipstream
        setExportZipStream(new ZipOutputStream(new FileOutputStream(getExportFileName())));
        // generate the SAX XML writer
        CmsXmlSaxWriter saxHandler = new CmsXmlSaxWriter(
            new StringWriter(4096),
            OpenCms.getSystemInfo().getDefaultEncoding());
        saxHandler.setEscapeXml(true);
        saxHandler.setEscapeUnknownChars(true);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久婷婷综合激情| yourporn久久国产精品| 另类欧美日韩国产在线| 日韩一区二区三区免费看| 555www色欧美视频| 国产亚洲综合在线| 亚洲综合在线观看视频| 国产99久久久国产精品潘金| 欧美一区永久视频免费观看| 一个色妞综合视频在线观看| 成人性色生活片| 久久免费美女视频| 日韩av成人高清| 91精品国产麻豆国产自产在线| 亚洲精品日日夜夜| 99精品在线观看视频| 最近中文字幕一区二区三区| 成人综合激情网| 日本一区二区免费在线| 国产精品中文字幕一区二区三区| 日韩一二三区不卡| 首页综合国产亚洲丝袜| 4438x成人网最大色成网站| 亚洲成年人影院| 欧美三级电影网站| 亚洲激情自拍视频| 在线观看日韩国产| 亚洲一区在线观看视频| 欧洲精品视频在线观看| 亚洲最快最全在线视频| 在线观看av一区| 日韩成人精品视频| 日韩你懂的在线观看| 国产在线精品一区二区| 国产日韩精品视频一区| 国v精品久久久网| 中文字幕亚洲欧美在线不卡| 99vv1com这只有精品| 亚洲日本va午夜在线影院| 色婷婷久久久久swag精品| 亚洲国产成人porn| 欧美日韩精品一区二区三区蜜桃 | 国产精品乱人伦| 丁香天五香天堂综合| 国产精品三级视频| 97久久精品人人做人人爽50路 | 国产精品欧美一级免费| av日韩在线网站| 亚洲欧洲av一区二区三区久久| 91色.com| 午夜av区久久| 日韩午夜激情视频| 国产成人丝袜美腿| 亚洲欧洲精品天堂一级| 欧美性xxxxx极品少妇| 天天色天天操综合| 亚洲欧美综合另类在线卡通| 在线观看国产日韩| 精品在线你懂的| 国产精品传媒视频| 欧美tickling挠脚心丨vk| 国产精品一卡二| 国产精品不卡一区| 在线播放视频一区| 国产成人一区在线| 丝瓜av网站精品一区二区| 久久精品亚洲一区二区三区浴池 | 奇米影视7777精品一区二区| 久久久久九九视频| 国产黄色91视频| 婷婷久久综合九色综合绿巨人| 久久综合色婷婷| 成人晚上爱看视频| 天天av天天翘天天综合网| 精品成人一区二区三区四区| 在线观看亚洲a| 国产精品一卡二卡| 麻豆视频一区二区| 亚洲日本青草视频在线怡红院| 久久色中文字幕| 欧美图片一区二区三区| hitomi一区二区三区精品| 亚洲男人的天堂av| 日韩精品在线一区| 99国产精品久久久| 久久国产精品色| 日韩高清在线一区| 亚洲三级小视频| 日本一区二区三区免费乱视频| 欧美一级国产精品| 欧美精品第1页| 91麻豆国产精品久久| 国产大陆亚洲精品国产| 免费看黄色91| 偷拍与自拍一区| 亚洲自拍欧美精品| 亚洲女与黑人做爰| 亚洲女性喷水在线观看一区| 欧美韩国日本不卡| 国产亚洲欧美在线| 欧洲国产伦久久久久久久| 97国产一区二区| 91精品国产综合久久久蜜臀粉嫩| 久久亚洲捆绑美女| 综合久久国产九一剧情麻豆| 香蕉影视欧美成人| 狠狠色丁香婷综合久久| 91麻豆自制传媒国产之光| 5858s免费视频成人| 国产片一区二区| 一区二区三区不卡在线观看| 裸体一区二区三区| 99久久精品免费看| 制服.丝袜.亚洲.另类.中文| 国产欧美一区二区在线观看| 一区二区久久久久| 久久国内精品自在自线400部| 成人精品gif动图一区| 在线不卡一区二区| 日韩av高清在线观看| 国产乱子伦一区二区三区国色天香| 成人永久免费视频| 91精品国产综合久久久蜜臀图片| 欧美极品xxx| 午夜影视日本亚洲欧洲精品| 国产成人午夜精品影院观看视频 | 欧美精品乱码久久久久久按摩 | 91国产免费观看| 精品日韩在线一区| 一区二区三区欧美日韩| 国产麻豆精品在线| 777午夜精品免费视频| 亚洲天堂免费看| 国模冰冰炮一区二区| 欧美少妇一区二区| 欧美国产日韩亚洲一区| 麻豆国产欧美日韩综合精品二区 | 久久成人久久鬼色| 欧美亚洲一区二区三区四区| 国产欧美1区2区3区| 久久精品国产99久久6| 欧美日韩中文字幕一区二区| 亚洲国产精华液网站w | 成人黄色国产精品网站大全在线免费观看| 91视频www| 国产精品久久久久久亚洲伦| 精品一区二区三区蜜桃| 欧美日韩国产精品成人| 亚洲欧洲av一区二区三区久久| 国产在线视视频有精品| 欧美岛国在线观看| 免费日韩伦理电影| 欧美日本在线视频| 亚洲成人第一页| 欧美日韩国产乱码电影| 亚洲一本大道在线| 91免费版pro下载短视频| 亚洲欧洲日韩综合一区二区| 成人在线视频首页| 26uuu成人网一区二区三区| 美脚の诱脚舐め脚责91| 欧美一区二区三区的| 天涯成人国产亚洲精品一区av| 在线观看日韩高清av| 一区二区不卡在线视频 午夜欧美不卡在 | 国产精品久久久久久久久晋中| 六月婷婷色综合| 欧美一区二区三区系列电影| 亚洲国产日韩在线一区模特| 欧美羞羞免费网站| 亚洲国产精品久久久久秋霞影院| 欧美午夜精品理论片a级按摩| 亚洲综合一区在线| 欧美日韩国产色站一区二区三区| 午夜精品免费在线观看| 欧美剧在线免费观看网站| 日韩精品一级二级 | 91精品久久久久久蜜臀| 日韩不卡手机在线v区| 精品嫩草影院久久| 国产福利一区二区三区| 一区二区中文字幕在线| 欧美性xxxxxx少妇| 蜜臀av性久久久久蜜臀aⅴ四虎| 欧美tk—视频vk| 成人三级在线视频| 一区二区三区国产| 日韩精品专区在线影院重磅| 国产一区二区影院| 亚洲三级在线看| 欧美福利电影网| 国产一区二区免费看| 中文字幕亚洲视频| 777a∨成人精品桃花网| 国产一本一道久久香蕉| 亚洲女厕所小便bbb| 91精品国模一区二区三区| 国产精品综合av一区二区国产馆| 国产精品理伦片| 欧美福利电影网|