为了便于后期与Cas集成过程中使用数据库用户的方便,将liferay密码的加密方式改为SHA. 在/portal-master/portal-impl/src/portal.properties配置文件中,有如下配置: #passwords.encryption.algorithm=BCRYPT/10 #passwords.encryption.algorithm=MD2 #passwords.encryption.algorithm=MD5 #passwords.encryption.algo…
1.修改web资源并发布 如果修改了默认主题信息,需执行portal-web中的build-themes任务: 执行portal-web中的deploy任务: 2.修改portal-impl中的java文件并发布 执行portal-impl中的clean.compile.deploy任务: 3.发布所有内容(可参考此系列中第一篇文章) 执行portal中的deploy任务: 4.发布WAR包 WAR包根据服务器中运行的ROOT项目打包而来,因此需要先将修改的内容执行对应的deploy任务发布后,…
1.修改默认添加用户权限为User,而非Powers User: 在/portal-master/portal-impl/src/portal.properties文件中有如下配置: # # Input a list of default role names separated by \n characters that are # associated with newly created users. # admin.default.role.names=Power User\nUser…
1.修改主题模板文件,具体位置如下 (1) portal-master\portal-web\docroot\html\themes\_unstyled\templates\portal_normal.vm (2) portal-master\portal-web\docroot\html\themes\_unstyled\templates\portal_normal.vm 将上述两个文件改为相应如下即可: <footer id="footer" role="cont…
一.特殊Portlet: 以下Portlet数据特殊用途的Portlet,去除后会出现运行错误: 1.站点模版 通过com.liferay.portal.events.AddDefaultLayoutSetPrototypesAction类,系统初始化站点模版时,使用到如下Portlet Intranet Site模版: 首页: 116  活动 (Activities) 3  查询(Search) 82  语言 (Language) 101  Asset Publisher 文档页: 20  文…
问题原因是WebSphare下,servletContext.getContextPath()获取到的值为“/”而非空字符串. 在/portal-master/portal-impl/src/com/liferay/portal/spring/context/PortalContextLoaderListener.java文件中有如下代码: if (ServerDetector.isWebSphere() &&_portalServletContextPath.isEmpty()) { _…
为了让用户信息更贴近实际需求,修改如下信息: 1.让登录名可以使用数字.“.”.“_”等 在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Set this to true when you want the validation to allow for creation of # numeric screen names. # users.screen.name.allow.numeric=false # # In…
为简化用户编辑,删除无用内容: 在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Input a list of sections that will be included as part of the user form # when adding a user. # users.form.add.main=details,organizations,personal-site users.form.add.ide…
经过2.3两步后,剩余Portlet已经不多,添加Application页面如下: 将用不到的Portlet隐藏起来:11   Portal目录 (Portal Directory) 将内嵌Protlet和IFrame Portlet移到工具分类中. 修改/portal-master/portal-web/docroot/WEB-INF/liferay-display.xml文件: <display> <category name="category.hidden"&…
Java 设计模式系列(二十)状态模式 状态模式,又称状态对象模式(Pattern of Objects for States),状态模式是对象的行为模式.状态模式允许一个对象在其内部状态改变的时候改变其行为.这个对象看上去就像是改变了它的类一样. 一.状态模式的结构 用一句话来表述,状态模式把所研究的对象的行为包装在不同的状态对象里,每一个状态对象都属于一个抽象状态类的一个子类.状态模式的意图是让一个对象在其内部状态改变的时候,其行为也随之改变.状态模式的示意性类图如下所示: Context:…