`

门户网站迁移-使用 XMLAccess 迁移Portal项目

 
阅读更多


 XMLAccess
简介

  

/xmlaccess.sh 参数:

 

EJPXB0001I: 命令行参数:
         -in <xml input file>
        [-user <username>]
                Will be queried over the console, if omitted
        [-password <password>]
                Will be queried over the console, if omitted
        [-out <output file>]
                default: write to stdout
        [-url <portal config url>]
                default: http://localhost/wps/config
        [-attempts <max connection attempts>]
                default: 1 attempt, no retries
        [-truststore <filename of the trust store for HTTPS>]
                default: $JAVA_HOME/lib/security/cacerts
        [-trustpwd <password for the trust store for HTTPS>]
                default: <empty>
        [-trusttype <filetype of the trust store for HTTPS>]
                default: jks
        [-keystore <filename of the key store for HTTPS>]
                default: $JAVA_HOME/lib/security/cacerts
        [-keypwd <password for the key store for HTTPS>]
                default: <empty>
        [-keytype <filetype of the key store for HTTPS>]
                default: jks
        [-credentialexport]
                enables export and import of credential secrets
        [-encryptionPassphrase <passphrase>]
                passphrase for credential encryption and decryption
        [-echo]
                simply return input instead of processing it

 

 迁移门户网站的Portlet,(包括Portlet的权限)

从门户网站中导出内容的命令:

操作系统

命令

Windows

xmlaccess.bat -in ExportRelease.xml -user wpsadmin

-password wpsadminpwd -url http://hostname:port/wps/

config/virtualportalContext -out

virtualportal_output.xml

UNIX

./xmlaccess.sh -in ExportRelease.xml -user wpsadmin

-password wpsadminpwd -url http://hostname:port/wps/

config/virtualportalContext -out

virtualportal_output.xml

IBM i

xmlaccess.sh -in ExportRelease.xml -user wpsadmin

-password wpsadminpwd -url http://hostname:port/wps/

config/virtualportalContext -out

virtualportal_output.xml

导入到门户网站的命令

 

操作系统

命令

Windows

xmlaccess.bat -in virtualportal_output.xml -user

wpsadmin -password wpsadminpwd -url http://

hostname:port/wps/config/virtualportalContext -out

Output.xml

UNIX

./xmlaccess.sh -in virtualportal_output.xml -user

wpsadmin -password wpsadminpwd -url http://

hostname:port/wps/config/virtualportalContext -out

Output.xml

IBM i

xmlaccess.sh -in virtualportal_output.xml -user

wpsadmin -password wpsadminpwd -url http://

hostname:port/wps/config/virtualportalContext -out

Output.xml

 

xml-samples

 

在一下目录中可以找到xml的样例文件

/usr/IBM/WebSphere/PortalServer/doc/xml-samples

导出门户网站的Portlet

 

 

案例:

 

XX联通:

 

/usr/IBM/WebSphere/PortalServer/bin/xmlaccess.sh -in ExportAllPortlets.xml   -user wpsbind -password 1qazcde3 -url  http://10.68.20.83:10038/wps/config -out  Out_ExportNMunicom.xml

 

 

 

/usr/IBM/WebSphere/AppServer/profiles/wp_profile/installedApps/wps01/wps.ear/wps.war/themes/html/NMUnicomNew

 

看下导出的portel xml文件:

 

 

 


 

上面截图是导出所有,也就是Object,使用的模板是 ExportAllPortlets.xml

<request
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="PortalConfig_1.4.xsd"
    type="export">

    <!-- Example for using the * wildcard to export all resources of a given type. This script exports all
         Web modules (and their contained portlets) that are defined in the portal. -->
    <portal action="locate">
        <web-app objectid="*" action="export"/>
    </portal>
</request>

 
从上面的notepadd++编辑器里看到 我们要导出的portel的uid为
uid="com.ibm.chinaunicomportletv2.ChinaUnicomPortletV2Portlet.f7afb8e112.webmod

所有我们将xml模板修改为:

<request
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="PortalConfig_1.4.xsd"
    type="export">

    <!-- Example for using the * wildcard to export all resources of a given type. This script exports all
         Web modules (and their contained portlets) that are defined in the portal. -->
    <portal action="locate">
        <web-app action="export" uid="com.ibm.chinaunicomportletv2.ChinaUnicomPortletV2Portlet.f7afb8e112.webmod"/>
    </portal>
</request>

 

Out_ExportNMunicom.xml 内容:

 

<?xml version="1.0" encoding="UTF-8"?>
<!-- IBM WebSphere Portal/6.0.1.1 build wp6011_073 exported on Fri Mar 14 15:24:10 GMT+08:00 2014 from wps02/10.68.20.82 -->
<!-- 1 [web-app 1_HBNK7F5408VNA0IO3KP8UO00K5] -->
<!-- 2 [servlet V_HBNK7F5408VNA0IO3KP8UO0024] -->
......
<request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" build="wp6011_073" type="update" version="6.0.1.1" xsi:noNamespaceSchemaLocation="PortalConfig_6.0.1.xsd">
    <portal action="locate">
        <web-app action="update" active="true" domain="rel" objectid="1_HBNK7F5408VNA0IO3KP8UO00K5" removable="true" uid="com.ibm.chinaunicomportletv2.ChinaUnicomPortletV2Portlet.f7afb8e112.webmod">
            <url>file://localhost/$user_install_root$/PortalServer/deployed/archive/com.ibm.chinaunicomportletv2.ChinaUnicomPortletV2Portlet.f7afb8e112.webmod/ChinaUnicomPortletV2.war</url>
            <access-control externalized="false" owner="uid=wpsbind,cn=apps,dc=nm,dc=unicom" private="false"/>
......
                <localedata locale="ar">
                    <title>com.ibm.chinaunicomportletv2.ChinaUnicomPortletV2Portlet.f7afb8e112</title>
                </localedata>
.....

 注意:<url>标签里相对路径的地址。

导入门户网站的Portlet

导入:

[root@wpstest bin]# ./xmlaccess.sh -in /data/IBM/Out_ExportNMunicom.xml  -user wpadmin -password password -url http://172.16.89.7:10040/wps/config -out output_all.xml

 

导入成功:
后台日志


  

 

这样portel就全部导入了。

访问portal管理控制台查看如下




 
 导出Portal的页面

# /usr/IBM/WebSphere/PortalServer/bin/xmlaccess.sh -in ExportPage.xml -user wpsbind -password 1qazcde3 -url  http://10.68.20.xx:10038/wps/config -out  Out_ExportNMunicom_page.xml

 

 



 

上图是导出的全部页面:



 

主页下面的所有。

模板:

ExportSubTree.xml

 

 

df

<request
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="PortalConfig_1.4.xsd"
    type="export">

    <!-- Sample for exporting subtree of the content hierarchy. This script exports the page customizer
         place with all contained pages. -->
    <portal action="locate">
        <content-node action="export" uniquename="ibm.portal.Home" export-descendants="true"/>
    </portal>
</request>

 

  • 大小: 302 KB
  • 大小: 83.1 KB
  • 大小: 48.2 KB
  • 大小: 255.2 KB
  • 大小: 4 KB
  • 大小: 276 KB
分享到:
评论

相关推荐

    安装NumPy教程-详细版

    附件是安装NumPy教程_详细版,文件绿色安全,请大家放心下载,仅供交流学习使用,无任何商业目的!

    语音端点检测及其在Matlab中的实现.zip

    语音端点检测及其在Matlab中的实现.zip

    C#文档打印程序Demo

    使用C#完成一般文档的打印,带有页眉,页脚文档打印,表格打印,打印预览等

    DirectX修复工具-4-194985.zip

    directx修复工具 DirectX修复工具(DirectX repair)是系统DirectX组件修复工具,DirectX修复工具主要是用于检测当前系统的DirectX状态,若发现异常情况就可以马上进行修复,非常快捷,使用效果也非常好。

    Python手动实现人脸识别算法

    人脸识别的主要算法 其核心算法是 欧式距离算法使用该算法计算两张脸的面部特征差异,一般在0.6 以下都可以被认为是同一张脸 人脸识别的主要步骤 1 获得人脸图片 2 将人脸图片转为128D的矩阵(这个也就是人脸特征的一种数字化表现) 3 保存人脸128D的特征到文件中 4 获取其他人脸转为128D特征通过欧式距离算法与我们保存的特征对比,如果差距在0.6以下就说明两张脸差距比较小

    全国大学生信息安全竞赛知识问答-CISCN 题库.zip

    ciscn 全国大学生信息安全竞赛知识问答-CISCN 题库.zip

    JAVA+SQL离散数学题库管理系统(源代码+LW+外文翻译).zip

    JAVA+SQL离散数学题库管理系统(源代码+LW+外文翻译)JAVA+SQL离散数学题库管理系统(源代码+LW+外文翻译)JAVA+SQL离散数学题库管理系统(源代码+LW+外文翻译)JAVA+SQL离散数学题库管理系统(源代码+LW+外文翻译)JAVA+SQL离散数学题库管理系统(源代码+LW+外文翻译)JAVA+SQL离散数学题库管理系统(源代码+LW+外文翻译)JAVA+SQL离散数学题库管理系统(源代码+LW+外文翻译)JAVA+SQL离散数学题库管理系统(源代码+LW+外文翻译)JAVA+SQL离散数学题库管理系统(源代码+LW+外文翻译)JAVA+SQL离散数学题库管理系统(源代码+LW+外文翻译)JAVA+SQL离散数学题库管理系统(源代码+LW+外文翻译)JAVA+SQL离散数学题库管理系统(源代码+LW+外文翻译)JAVA+SQL离散数学题库管理系统(源代码+LW+外文翻译)JAVA+SQL离散数学题库管理系统(源代码+LW+外文翻译)

    strcmp函数应用.zip

    strcmp函数应用.zip

    蓝桥杯单片机第十一届国赛设计题试做

    蓝桥杯单片机第十一届国赛设计题试做

    基于MATLAB的pca人脸识别.zip

    基于MATLAB的pca人脸识别.zip

    520.html

    520.html

    JAVA在线考试管理系统(源代码+LW+开题报告+外文翻译+英文文献+答辩PPT).zip

    JAVA在线考试管理系统(源代码+LW+开题报告+外文翻译+英文文献+答辩PPT)

    STR710的定时器编程C语言例子,开发环境为IAR EWARM。.zip

    STR710的定时器编程C语言例子,开发环境为IAR EWARM。.zip

    基于物品的协同过滤推荐算法(Python).zip

    协同过滤算法(Collaborative Filtering)是一种经典的推荐算法,其基本原理是“协同大家的反馈、评价和意见,一起对海量的信息进行过滤,从中筛选出用户可能感兴趣的信息”。它主要依赖于用户和物品之间的行为关系进行推荐。 协同过滤算法主要分为两类: 基于物品的协同过滤算法:给用户推荐与他之前喜欢的物品相似的物品。 基于用户的协同过滤算法:给用户推荐与他兴趣相似的用户喜欢的物品。 协同过滤算法的优点包括: 无需事先对商品或用户进行分类或标注,适用于各种类型的数据。 算法简单易懂,容易实现和部署。 推荐结果准确性较高,能够为用户提供个性化的推荐服务。 然而,协同过滤算法也存在一些缺点: 对数据量和数据质量要求较高,需要大量的历史数据和较高的数据质量。 容易受到“冷启动”问题的影响,即对新用户或新商品的推荐效果较差。 存在“同质化”问题,即推荐结果容易出现重复或相似的情况。 协同过滤算法在多个场景中有广泛的应用,如电商推荐系统、社交网络推荐和视频推荐系统等。在这些场景中,协同过滤算法可以根据用户的历史行为数据,推荐与用户兴趣相似的商品、用户或内容,从而提高用户的购买转化率、活跃度和社交体验。 未来,协同过滤算法的发展方向可能是结合其他推荐算法形成混合推荐系统,以充分发挥各算法的优势。

    JAVA文件传输(lw+源代码).zip

    FTP(File Transfer Protocol)是文件传输协议的简称。 FTP的主要作用,就是让用户连接上一个远程计算机(这些计算机上运行着FTP服务器程序)查看远程计算机有哪些文件,然后把文件从远程计算机上拷到本地计算机,或把本地计算机的文件送到远程计算机去。 目前FTP服务器软件都为国外作品,例如Server_U、IIS,国内成熟的FTP服务器软件很少,有一些如(Crob FTP Server),但从功能上看来远不能和那些流行的服务器软件媲美。

    python项目源码-深度学习tensorflow的滚动轴承故障诊断方法源码(高分大作业).rar

    本项目基于深度学习TensorFlow框架,针对滚动轴承故障诊断方法进行研究。项目采用了卷积神经网络(CNN)对轴承振动信号进行特征提取和分类,实现了对滚动轴承不同故障类型的自动诊断。 在技术实现上,项目利用TensorFlow搭建了一个高效的CNN模型,通过多层卷积、池化操作以及全连接层,自动学习轴承振动信号中的故障特征。同时,采用交叉熵损失函数优化模型参数,提高故障识别率。此外,项目还集成了数据预处理、模型训练、测试评估等功能模块,方便用户快速上手并进行实验研究。 经过运行测试,该项目代码运行稳定,诊断效果良好,可广泛应用于滚动轴承故障诊断领域。对于计算机相关专业的在校学生、老师或企业员工来说,该项目是一份难得的高分大作业资源,同时也是小白学习和实际项目借鉴的优秀参考资料。请放心下载使用,为您的学习和工作提供帮助!

    超详细的SpringBoot框架入门教程 Spring Boot框架快速入门教程以大量示例讲解了Spring Boot在各类情境

    超详细的SpringBoot框架入门教程 Spring Boot框架快速入门教程以大量示例讲解了Spring Boot在各类情境中的应用,让大家可以跟着老师的思维和代码快速理解并掌握。适用于Java 开发人员,尤其是初学Spring Boot的人员和需要从传统 Spring 转向 Spring Boot 开发的技术人员。 下边是动力节点的SpringBoot教程非常适合初学入门,讲的非常详细,而且全程无废话!

    毕业设计[主机域名]ISPConfig 3.0.1.3_ispconfig3-codepub.zip

    毕业设计[主机域名]ISPConfig 3.0.1.3_ispconfig3-codepub.zip

    matlab开发-用交叉熵优化多变量宏观模型随机多极值优化.zip

    matlab开发-用交叉熵优化多变量宏观模型随机多极值优化.zip

    矩阵特征值的计算方法.zip

    矩阵特征值的计算方法.zip

Global site tag (gtag.js) - Google Analytics