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

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

?? cmsimportversion4.java

?? cms是開源的框架
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
                datecreated,
                newUsercreated,
                datelastmodified,
                newUserlastmodified,
                datereleased,
                dateexpired,
                1,
                size);

            // import this resource in the VFS
            result = m_cms.importResource(destination, resource, content, properties);

            if (result != null) {
                m_report.println(
                    org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_OK_0),
                    I_CmsReport.FORMAT_OK);
            }
        } catch (Exception exc) {
            // an error while importing the file
            m_report.println(exc);
            try {
                // Sleep some time after an error so that the report output has a chance to keep up
                Thread.sleep(1000);
            } catch (Exception e) {
                // 
            }
        }
        return result;
    }

    /**
     * Reads all file nodes plus their meta-information (properties, ACL) 
     * from the <code>manifest.xml</code> and imports them as Cms resources to the VFS.<p>
     * 
     * @throws CmsImportExportException if something goes wrong
     */
    private void readResourcesFromManifest() throws CmsImportExportException {

        String source = null, destination = null, uuidresource = null, userlastmodified = null, usercreated = null, flags = null, timestamp = null;
        long datelastmodified = 0, datecreated = 0, datereleased = 0, dateexpired = 0;

        List fileNodes = null, acentryNodes = null;
        Element currentElement = null, currentEntry = null;
        List properties = null;

        if (m_importingChannelData) {
            m_cms.getRequestContext().saveSiteRoot();
            m_cms.getRequestContext().setSiteRoot(CmsResource.VFS_FOLDER_CHANNELS);
        }

        // get list of immutable resources
        List immutableResources = OpenCms.getImportExportManager().getImmutableResources();
        if (immutableResources == null) {
            immutableResources = Collections.EMPTY_LIST;
        }
        if (LOG.isDebugEnabled()) {
            LOG.debug(Messages.get().getBundle().key(
                Messages.LOG_IMPORTEXPORT_IMMUTABLE_RESOURCES_SIZE_1,
                Integer.toString(immutableResources.size())));
        }
        // get list of ignored properties
        List ignoredProperties = OpenCms.getImportExportManager().getIgnoredProperties();
        if (ignoredProperties == null) {
            ignoredProperties = Collections.EMPTY_LIST;
        }

        // get the desired page type for imported pages
        m_convertToXmlPage = OpenCms.getImportExportManager().convertToXmlPage();

        try {
            // get all file-nodes
            fileNodes = m_docXml.selectNodes("//" + CmsImportExportManager.N_FILE);
            int importSize = fileNodes.size();

            // walk through all files in manifest
            for (int i = 0; i < fileNodes.size(); i++) {
                m_report.print(org.opencms.report.Messages.get().container(
                    org.opencms.report.Messages.RPT_SUCCESSION_2,
                    String.valueOf(i + 1),
                    String.valueOf(importSize)), I_CmsReport.FORMAT_NOTE);
                currentElement = (Element)fileNodes.get(i);

                // <source>
                source = CmsImport.getChildElementTextValue(currentElement, CmsImportExportManager.N_SOURCE);
                // <destination>

                destination = CmsImport.getChildElementTextValue(currentElement, CmsImportExportManager.N_DESTINATION);

                // <type>
                String typeName = CmsImport.getChildElementTextValue(currentElement, CmsImportExportManager.N_TYPE);
                I_CmsResourceType type = OpenCms.getResourceManager().getResourceType(typeName);

                if (!type.isFolder()) {
                    // <uuidresource>
                    uuidresource = CmsImport.getChildElementTextValue(
                        currentElement,
                        CmsImportExportManager.N_UUIDRESOURCE);
                } else {
                    uuidresource = null;
                }

                // <datelastmodified>
                timestamp = CmsImport.getChildElementTextValue(
                    currentElement,
                    CmsImportExportManager.N_DATELASTMODIFIED);
                if (timestamp != null) {
                    datelastmodified = convertTimestamp(timestamp);
                } else {
                    datelastmodified = System.currentTimeMillis();
                }

                // <userlastmodified>
                userlastmodified = CmsImport.getChildElementTextValue(
                    currentElement,
                    CmsImportExportManager.N_USERLASTMODIFIED);
                userlastmodified = OpenCms.getImportExportManager().translateUser(userlastmodified);

                // <datecreated>
                timestamp = CmsImport.getChildElementTextValue(currentElement, CmsImportExportManager.N_DATECREATED);
                if (timestamp != null) {
                    datecreated = convertTimestamp(timestamp);
                } else {
                    datecreated = System.currentTimeMillis();
                }

                // <usercreated>
                usercreated = CmsImport.getChildElementTextValue(currentElement, CmsImportExportManager.N_USERCREATED);
                usercreated = OpenCms.getImportExportManager().translateUser(usercreated);

                // <datereleased>
                timestamp = CmsImport.getChildElementTextValue(currentElement, CmsImportExportManager.N_DATERELEASED);
                if (timestamp != null) {
                    datereleased = convertTimestamp(timestamp);
                } else {
                    datereleased = CmsResource.DATE_RELEASED_DEFAULT;
                }

                // <dateexpired>
                timestamp = CmsImport.getChildElementTextValue(currentElement, CmsImportExportManager.N_DATEEXPIRED);
                if (timestamp != null) {
                    dateexpired = convertTimestamp(timestamp);
                } else {
                    dateexpired = CmsResource.DATE_EXPIRED_DEFAULT;
                }

                // <flags>              
                flags = CmsImport.getChildElementTextValue(currentElement, CmsImportExportManager.N_FLAGS);

                // apply name translation and import path         
                String translatedName = m_cms.getRequestContext().addSiteRoot(m_importPath + destination);
                if (type.isFolder()) {
                    // ensure folders end with a "/"
                    if (!CmsResource.isFolder(translatedName)) {
                        translatedName += "/";
                    }
                }

                // check if this resource is immutable
                boolean resourceNotImmutable = checkImmutable(translatedName, immutableResources);
                translatedName = m_cms.getRequestContext().removeSiteRoot(translatedName);
                // if the resource is not immutable and not on the exclude list, import it
                if (resourceNotImmutable) {
                    // print out the information to the report
                    m_report.print(Messages.get().container(Messages.RPT_IMPORTING_0), I_CmsReport.FORMAT_NOTE);
                    m_report.print(org.opencms.report.Messages.get().container(
                        org.opencms.report.Messages.RPT_ARGUMENT_1,
                        translatedName));
                    m_report.print(org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_DOTS_0));
                    // get all properties
                    properties = readPropertiesFromManifest(currentElement, ignoredProperties);

                    // import the resource               
                    CmsResource res = importResource(
                        source,
                        translatedName,
                        type,
                        uuidresource,
                        datelastmodified,
                        userlastmodified,
                        datecreated,
                        usercreated,
                        datereleased,
                        dateexpired,
                        flags,
                        properties);

                    // if the resource was imported add the access control entrys if available
                    if (res != null) {

                        List aceList = new ArrayList();

                        // write all imported access control entries for this file
                        acentryNodes = currentElement.selectNodes("*/" + CmsImportExportManager.N_ACCESSCONTROL_ENTRY);

                        // collect all access control entries
                        for (int j = 0; j < acentryNodes.size(); j++) {
                            currentEntry = (Element)acentryNodes.get(j);

                            // get the data of the access control entry
                            String id = CmsImport.getChildElementTextValue(
                                currentEntry,
                                CmsImportExportManager.N_ACCESSCONTROL_PRINCIPAL);
                            String principalId = new CmsUUID().toString();
                            String principal = id.substring(id.indexOf('.') + 1, id.length());

                            try {
                                if (id.startsWith(I_CmsPrincipal.PRINCIPAL_GROUP)) {
                                    principal = OpenCms.getImportExportManager().translateGroup(principal);
                                    principalId = m_cms.readGroup(principal).getId().toString();
                                } else {
                                    principal = OpenCms.getImportExportManager().translateUser(principal);
                                    principalId = m_cms.readUser(principal).getId().toString();
                                }

                                String acflags = CmsImport.getChildElementTextValue(
                                    currentEntry,
                                    CmsImportExportManager.N_FLAGS);

                                String allowed = ((Element)currentEntry.selectNodes(
                                    "./"
                                        + CmsImportExportManager.N_ACCESSCONTROL_PERMISSIONSET
                                        + "/"
                                        + CmsImportExportManager.N_ACCESSCONTROL_ALLOWEDPERMISSIONS).get(0)).getTextTrim();

                                String denied = ((Element)currentEntry.selectNodes(
                                    "./"
                                        + CmsImportExportManager.N_ACCESSCONTROL_PERMISSIONSET
                                        + "/"
                                        + CmsImportExportManager.N_ACCESSCONTROL_DENIEDPERMISSIONS).get(0)).getTextTrim();

                                // add the entry to the list
                                aceList.add(getImportAccessControlEntry(res, principalId, allowed, denied, acflags));
                            } catch (CmsException e) {
                                // user or group of ACE might not exist in target system, ignore ACE
                                if (LOG.isWarnEnabled()) {
                                    LOG.warn(Messages.get().getBundle().key(
                                        Messages.LOG_IMPORTEXPORT_ERROR_IMPORTING_ACE_1,
                                        translatedName), e);
                                }
                                m_report.println(e);
                            }
                        }

                        importAccessControlEntries(res, aceList);

                        if (LOG.isInfoEnabled()) {
                            LOG.info(Messages.get().getBundle().key(
                                Messages.LOG_IMPORTING_4,
                                new Object[] {
                                    String.valueOf(i + 1),
                                    String.valueOf(importSize),
                                    translatedName,
                                    destination}));
                        }
                    } else {
                        // resource import failed, since no CmsResource was created
                        m_report.print(Messages.get().container(Messages.RPT_SKIPPING_0), I_CmsReport.FORMAT_NOTE);
                        m_report.println(org.opencms.report.Messages.get().container(
                            org.opencms.report.Messages.RPT_ARGUMENT_1,
                            translatedName));

                        if (LOG.isInfoEnabled()) {
                            LOG.info(Messages.get().getBundle().key(
                                Messages.LOG_SKIPPING_3,
                                String.valueOf(i + 1),
                                String.valueOf(importSize),
                                translatedName));
                        }
                    }

                } else {
                    // skip the file import, just print out the information to the report

                    m_report.print(Messages.get().container(Messages.RPT_SKIPPING_0), I_CmsReport.FORMAT_NOTE);
                    m_report.println(org.opencms.report.Messages.get().container(
                        org.opencms.report.Messages.RPT_ARGUMENT_1,
                        translatedName));

                    if (LOG.isInfoEnabled()) {
                        LOG.info(Messages.get().getBundle().key(
                            Messages.LOG_SKIPPING_3,
                            String.valueOf(i + 1),
                            String.valueOf(importSize),
                            translatedName));
                    }
                }
            }
        } catch (Exception e) {

            m_report.println(e);

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

            throw new CmsImportExportException(message, e);
        } finally {
            if (m_importingChannelData) {
                m_cms.getRequestContext().restoreSiteRoot();
            }
        }
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩高清不卡一区二区三区| 99久久精品久久久久久清纯| 成+人+亚洲+综合天堂| 欧美色涩在线第一页| 欧美国产精品一区二区| 亚洲成人自拍网| 东方欧美亚洲色图在线| 91精品啪在线观看国产60岁| 最近日韩中文字幕| 激情小说亚洲一区| 337p亚洲精品色噜噜狠狠| 国产精品夫妻自拍| 东方aⅴ免费观看久久av| 精品乱人伦小说| 免费成人在线播放| 欧美巨大另类极品videosbest | 亚洲第一福利一区| 99国产精品久久久| 国产欧美一区二区精品久导航 | 97精品国产97久久久久久久久久久久| 日韩一区二区三区电影在线观看 | 国产精品国产三级国产普通话三级 | 懂色av一区二区夜夜嗨| 欧美一区二区三区在线观看| 亚洲午夜免费福利视频| 91浏览器打开| 18成人在线观看| 国产成人精品三级麻豆| 久久久亚洲精华液精华液精华液 | 石原莉奈在线亚洲三区| 欧美在线观看一二区| 一区二区在线电影| 欧美三片在线视频观看| 亚洲二区视频在线| 欧美另类高清zo欧美| 日韩精品一二三四| 日韩精品专区在线影院重磅| 强制捆绑调教一区二区| 欧美一级在线视频| 激情五月激情综合网| 精品99一区二区三区| 国产在线不卡视频| 国产精品理伦片| 97精品久久久久中文字幕| 亚洲卡通欧美制服中文| 欧美中文字幕一区二区三区亚洲| 亚洲美女区一区| 欧美日韩久久久一区| 日韩电影免费在线看| 欧美videofree性高清杂交| 国产真实乱对白精彩久久| 国产女人18毛片水真多成人如厕| 国产suv精品一区二区6| 亚洲精品国产无天堂网2021| 欧美猛男男办公室激情| 国产曰批免费观看久久久| 国产精品福利一区| 欧美猛男gaygay网站| 国产精品香蕉一区二区三区| 1区2区3区精品视频| 91精品国产色综合久久ai换脸| 精品中文字幕一区二区小辣椒| 国产日本欧美一区二区| 欧美三级韩国三级日本一级| 国产精品综合网| 亚洲一区二区五区| 精品三级在线看| 色综合久久久网| 久久国产精品99久久久久久老狼| 国产精品人成在线观看免费 | 91尤物视频在线观看| 日韩 欧美一区二区三区| 国产日产欧美精品一区二区三区| 91久久久免费一区二区| 国模少妇一区二区三区| 亚洲一区二区三区影院| 国产欧美日韩久久| 91麻豆精品国产| av激情综合网| 韩国在线一区二区| 天天综合日日夜夜精品| 国产精品少妇自拍| 日韩欧美电影在线| 欧美性xxxxxxxx| 99久久国产综合精品麻豆| 精品一区二区三区视频 | 欧美肥妇bbw| 91免费版在线| 国产.精品.日韩.另类.中文.在线.播放| 亚洲国产日韩一级| 亚洲精品你懂的| 欧美经典三级视频一区二区三区| 欧美一区二区女人| 欧美日韩一区国产| 91黄视频在线| a级精品国产片在线观看| 国产一区不卡在线| 日韩制服丝袜先锋影音| 亚洲综合在线五月| 中文字幕字幕中文在线中不卡视频| 久久综合丝袜日本网| 欧美电视剧在线看免费| 3atv一区二区三区| 91麻豆精品国产91久久久久久久久 | 久久99精品一区二区三区三区| 亚洲综合免费观看高清在线观看| 国产精品嫩草99a| 国产视频一区二区三区在线观看 | 国产在线播放一区| 久久成人免费电影| 久久精品国产99久久6| 日韩二区三区四区| 日韩精品电影在线观看| 日韩福利视频网| 日韩电影在线观看电影| 午夜视频在线观看一区二区| 亚洲午夜私人影院| 天堂一区二区在线| 日韩精品一二三四| 精品一区二区三区在线播放视频| 九一久久久久久| 国产在线精品一区二区夜色| 黄色日韩三级电影| 国产高清精品在线| 成人av电影在线网| 波多野结衣中文字幕一区| 91视频在线看| 欧美日精品一区视频| 欧美电影一区二区| 欧美tickling挠脚心丨vk| 久久久久久久久久久久久久久99 | 午夜视黄欧洲亚洲| 捆绑调教一区二区三区| 激情五月播播久久久精品| 国产**成人网毛片九色| 色网站国产精品| 日韩视频一区在线观看| 国产日韩在线不卡| 夜夜爽夜夜爽精品视频| 久久不见久久见中文字幕免费| 国产一区二区三区免费看| 972aa.com艺术欧美| 欧美一区二区三区男人的天堂| 精品国产伦理网| 亚洲欧美日韩国产综合| 狂野欧美性猛交blacked| 成人性生交大合| 欧美日韩性生活| 久久久蜜桃精品| 一区二区成人在线视频 | 精品国产乱码久久久久久牛牛| 久久久综合视频| 亚洲第一成年网| 国产电影一区二区三区| 在线精品国精品国产尤物884a| 精品欧美一区二区在线观看| 国产精品国产三级国产aⅴ入口| 天堂影院一区二区| 成人深夜福利app| 日韩一区二区精品葵司在线| 国产精品国产三级国产普通话99| 日韩精品国产欧美| 一本大道av一区二区在线播放| 日韩欧美成人一区| 亚洲丝袜制服诱惑| 韩国成人福利片在线播放| 91成人在线精品| 国产亚洲va综合人人澡精品| 亚洲综合久久av| 成人综合在线观看| 亚洲精品在线网站| 一区二区高清在线| 成人午夜碰碰视频| 26uuu成人网一区二区三区| 午夜电影网一区| 97久久精品人人澡人人爽| 久久亚洲精品小早川怜子| 日本欧美一区二区在线观看| 91网站在线观看视频| 久久精品欧美一区二区三区不卡| 亚洲成va人在线观看| 欧美自拍丝袜亚洲| 亚洲人成人一区二区在线观看| 国产成人免费网站| 2020国产成人综合网| 另类的小说在线视频另类成人小视频在线 | 国产麻豆视频一区二区| 欧美日韩国产综合草草| 一区二区三区**美女毛片| 99久久精品国产毛片| 国产精品麻豆久久久| 国产成人亚洲综合a∨猫咪| 久久一二三国产| 麻豆成人av在线| 欧美精品乱码久久久久久 | 欧美色国产精品| 亚洲国产精品一区二区www在线 | 日韩欧美一区二区久久婷婷| 婷婷综合在线观看| 欧美日韩精品一区二区在线播放|