- 浏览: 121242 次
- 性别:
- 来自: 武汉
文章分类
最新评论
-
Alicus520:
我也想呢,最尽在研究这方面的,不知道楼主是否可以?
图像纹理描述中的共生矩阵 -
凌绿寒绮:
好凄美的爱情故事,爱 就得趁早说出吧
说声我爱你 -
sd2646:
如果用svn过程中出现java.lang.NoClassDef ...
MyEclipse 6下按照SVN插件 -
liuxiang00435057:
??
SWT开发的一个简单的信息管理软件 -
wicker:
有Java代码就好了,呵呵
图像纹理描述中的共生矩阵
portlet.xml
portlet定义描述文件,它描述portlet的类型,支持Mode, preferenes和role等,遵循JSR168标准实现,以便于移植(需要针对性的做一些小改过)。
下面是一个简单的定义:
〈portlet〉
〈portlet-name〉2〈/portlet-name〉
〈display-name〉My Account〈/display-name〉
〈!-- portlet的实现类 --〉
〈portlet-class〉com.liferay.portlet.StrutsPortlet〈/portlet-class〉
〈init-param〉
〈name〉view-action〈/name〉
〈value〉/my_account/view〈/value〉
〈/init-param〉
〈expiration-cache〉0〈/expiration-cache〉
〈supports〉
〈mime-type〉text/html〈/mime-type〉
〈/supports〉
〈resource-bundle〉com.liferay.portlet.StrutsResourceBundle〈/resource-bundle〉
〈/portlet〉
在JSR168标准中,定义了view/edit/help三种模式,
liferay对其进行了扩展,增加了config/about/preview/print等模式。
liferay-portlet.xml
liferay的portlet定义描述文件,是liferay对portlet.xml的扩展描述,允许我们对portlet的呈现、功能和行为进行更深入的定制。
它与com.liferay.portal.model.Portlet类对应,
下面是一个较为详细的liferay-portlet定义:
〈portlet〉
〈portlet-name〉19〈/portlet-name〉
〈!-- struts路径 --〉
〈struts-path〉message_boards〈/struts-path〉
〈!-- 配置路径 --〉
〈configuration-path〉/message_boards/edit_configuration〈/configuration-path〉
〈!-- lucene索引类 --〉
〈indexer-class〉com.liferay.portlet.messageboards.util.Indexer〈/indexer-class〉
〈!-- url处理类 --〉
〈portlet-url-class〉com.liferay.portlet.messageboards.MBFriendlyPortletURL〈/portlet-url-class〉
〈!-- 友好url插件类 --〉
〈friendly-url-plugin-class〉 com.liferay.portlet.messageboards.MBFriendlyURLPortletPlugin〈/friendly- url-plugin-class〉
〈preferences-unique-per-layout〉false〈/preferences-unique-per-layout〉
〈use-default-template〉false〈/use-default-template〉
〈restore-current-view〉false〈/restore-current-view〉
〈private-request-attributes〉false〈/private-request-attributes〉
〈/portlet〉
portlet类中常用的属性:
// strtus 路径,对portlet的请求应该限制在这个路径下
private String _strutsPath;
// 配置路径,即action定义
private String _configurationPath;
// portlet实现类
private String _portletClass;
// lucene索引类
private String _indexerClass;
// scheduler类
private String _schedulerClass;
// portletURL处理类
private String _portletURLClass;
// friendURL插件
private String _friendlyURLPluginClass;
// 默认的preferences
private String _defaultPreferences;
// preferences的验证类
private String _prefsValidator;
// 是否实例化,为true时可添加多个portlet到layout上
private boolean _instanceable;
// 是否为系统portlet,
private boolean _system;
// 初始化参数
private Map _initParams;
// portlet支持的模式
private Map _portletModes;
// portlet支持的语言
private Set _supportedLocales;
// PortletInfo
private PortletInfo _portletInfo;
// 是否静态portlet, 静态portlet不能移动.
private boolean _staticPortlet;
// 是否为开始的静态portlet.
private boolean _staticPortletStart;
portlet解析
com.liferay.portal.service.impl.PortletLocalServiceImpl
public void initEAR(String[] xmls) {
String scpId = PortletServiceImpl.class.getName() + "." + _SHARED_KEY;
Map portletsPool = (Map)SimpleCachePool.get(scpId);
if (portletsPool == null) {
portletsPool = CollectionFactory.getSyncHashMap();
SimpleCachePool.put(scpId, portletsPool);
}
try {
List servletURLPatterns = _readWebXML(xmls[4]);
Set portletIds =
_readPortletXML(xmls[0], portletsPool, servletURLPatterns);
portletIds.addAll(
_readPortletXML(xmls[1], portletsPool, servletURLPatterns));
Set liferayPortletIds =
_readLiferayPortletXML(xmls[2], portletsPool);
liferayPortletIds.addAll(
_readLiferayPortletXML(xmls[3], portletsPool));
// Check for missing entries in liferay-portlet.xml
// 检查在liferay-portlet中丢失的portlet实体...
// Remove portlets that should not be included
// 移去不应该包括的portlet实体...
}
catch (Exception e) {
_log.error(StackTraceUtil.getStackTrace(e));
}
}
// 解析portlet.xml
private Set _readPortletXML(
String servletContextName, String xml, Map portletsPool,
List servletURLPatterns)
throws DocumentException, IOException {
Set portletIds = new HashSet();
if (xml == null) {
return portletIds;
}
SAXReader reader = SAXReaderFactory.getInstance();
Document doc = reader.read(new StringReader(xml));
Element root = doc.getRootElement();
Set userAttributes = new HashSet();
Iterator itr1 = root.elements("user-attribute").iterator();
// 用户属性处理...
itr1 = root.elements("portlet").iterator();
while (itr1.hasNext()) {
Element portlet = (Element)itr1.next();
String portletId = portlet.elementText("portlet-name");
if (servletContextName != null) {
portletId =
portletId + Portlet.WAR_SEPARATOR + servletContextName;
}
portletId = PortalUtil.getJsSafePortletName(portletId);
if (_log.isDebugEnabled()) {
_log.debug("Reading portlet " + portletId);
}
portletIds.add(portletId);
Portlet portletModel = (Portlet)portletsPool.get(portletId);
if (portletModel == null) {
portletModel = new Portlet(
new PortletPK(portletId, _SHARED_KEY));
portletsPool.put(portletId, portletModel);
}
if (servletContextName != null) {
portletModel.setWARFile(true);
}
if (servletURLPatterns != null) {
portletModel.setServletURLPatterns(servletURLPatterns);
}
portletModel.setPortletClass(portlet.elementText("portlet-class"));
Iterator itr2 = portlet.elements("init-param").iterator();
// 初始化参数处理...
Element expirationCache = portlet.element("expiration-cache");
// cache过期处理...
itr2 = portlet.elements("supports").iterator();
// 支持模式处理...
Set supportedLocales = portletModel.getSupportedLocales();
// 支持语言处理...
// 资源
portletModel.setResourceBundle(
portlet.elementText("resource-bundle"));
Element portletInfo = portlet.element("portlet-info");
// portlet-info处理...
Element portletPreferences = portlet.element("portlet-preferences");
// preferences处理...
Set unlikedRoles = portletModel.getUnlinkedRoles();
itr2 = portlet.elements("security-role-ref").iterator();
// role处理...
portletModel.getUserAttributes().addAll(userAttributes);
}
return portletIds;
}
// 解析liferay-portlet.xml
private Set _readLiferayPortletXML(
String servletContextName, String xml, Map portletsPool)
throws DocumentException, IOException {
Set liferayPortletIds = new HashSet();
if (xml == null) {
return liferayPortletIds;
}
SAXReader reader = SAXReaderFactory.getInstance();
Document doc = reader.read(new StringReader(xml));
Element root = doc.getRootElement();
Map roleMappers = new HashMap();
Iterator itr1 = root.elements("role-mapper").iterator();
// role-mapper处理...
Map customUserAttributes = new HashMap();
itr1 = root.elements("custom-user-attribute").iterator();
// 定制用户属性处理...
Map friendlyURLPlugins = _getFriendlyURLPlugins();
itr1 = root.elements("portlet").iterator();
while (itr1.hasNext()) {
Element portlet = (Element)itr1.next();
String portletId = portlet.elementText("portlet-name");
if (servletContextName != null) {
portletId =
portletId + Portlet.WAR_SEPARATOR + servletContextName;
}
portletId = PortalUtil.getJsSafePortletName(portletId);
if (_log.isDebugEnabled()) {
_log.debug("Reading portlet extension " + portletId);
}
liferayPortletIds.add(portletId);
Portlet portletModel = (Portlet)portletsPool.get(portletId);
if (portletModel != null) {
// 设置portlet属性...
// 处理FriendURL插件
portletModel.setFriendlyURLPluginClass(GetterUtil.getString(
portlet.elementText("friendly-url-plugin-class"),
portletModel.getFriendlyURLPluginClass()));
if (Validator.isNull(
portletModel.getFriendlyURLPluginClass())) {
friendlyURLPlugins.remove(portletId);
}
else {
friendlyURLPlugins.put(
portletId, portletModel.getFriendlyURLPluginClass());
}
// 绑定role.
portletModel.getRoleMappers().putAll(roleMappers);
portletModel.linkRoles();
portletModel.getCustomUserAttributes().putAll(
customUserAttributes);
}
}
return liferayPortletIds;
}
从上面的代码可看出,liferay将portlet的描述定义存储在一个Map中.
liferay-display.xml
portlet的类别定义文件,下面是一个简单的例子:
〈category name="category.admin"〉
〈portlet id="9" /〉
〈portlet id="40" /〉
〈portlet id="79" /〉
〈portlet id="80" /〉
〈/category〉
要注意的是,在portlet.xml/liferay-portlet.xml/liferay-display.xml三个文件中的portlet-name, portlet-id必须是一致的。
liferay-layout-templates.xml
layout模板定义文件.
liferay-look-and-feel.xml
主题定义文件.
portlet的web.xml
如果以war的方式发布portlet,那么它的web.xml也要进行一些特定的说明,
下面是liferay中sample-jsp-portlet示例的web.xml:
〈web-app〉
〈display-name〉sample-jsp-portlet〈/display-name〉
〈context-param〉
〈param-name〉company_id〈/param-name〉
〈param-value〉liferay.com〈/param-value〉
〈/context-param〉
〈listener〉
〈listener-class〉com.liferay.portal.kernel.servlet.PortletContextListener〈/listener-class〉
〈/listener〉
〈servlet〉
〈servlet-name〉sample_jsp_portlet〈/servlet-name〉
〈servlet-class〉com.liferay.portal.kernel.servlet.PortletServlet〈/servlet-class〉
〈init-param〉
〈param-name〉portlet-class〈/param-name〉
〈param-value〉com.sample.jsp.portlet.JSPPortlet〈/param-value〉
〈/init-param〉
〈load-on-startup〉0〈/load-on-startup〉
〈/servlet〉
〈servlet-mapping〉
〈servlet-name〉sample_jsp_portlet〈/servlet-name〉
〈url-pattern〉/sample_jsp_portlet/*〈/url-pattern〉
〈/servlet-mapping〉
〈taglib〉
〈taglib-uri〉http://java.sun.com/portlet〈/taglib-uri〉
〈taglib-location〉/WEB-INF/tld/liferay-portlet.tld〈/taglib-location〉
〈/taglib〉
〈/web-app〉
上面的listener是必须的,它用于通知liferay进行热部署,
portlet-class指定Portlet的实现类,它必须遵循JSR168标准,直接或间接的从javax.portlet.GenericPortlet继承。
portlet定义描述文件,它描述portlet的类型,支持Mode, preferenes和role等,遵循JSR168标准实现,以便于移植(需要针对性的做一些小改过)。
下面是一个简单的定义:
〈portlet〉
〈portlet-name〉2〈/portlet-name〉
〈display-name〉My Account〈/display-name〉
〈!-- portlet的实现类 --〉
〈portlet-class〉com.liferay.portlet.StrutsPortlet〈/portlet-class〉
〈init-param〉
〈name〉view-action〈/name〉
〈value〉/my_account/view〈/value〉
〈/init-param〉
〈expiration-cache〉0〈/expiration-cache〉
〈supports〉
〈mime-type〉text/html〈/mime-type〉
〈/supports〉
〈resource-bundle〉com.liferay.portlet.StrutsResourceBundle〈/resource-bundle〉
〈/portlet〉
在JSR168标准中,定义了view/edit/help三种模式,
liferay对其进行了扩展,增加了config/about/preview/print等模式。
liferay-portlet.xml
liferay的portlet定义描述文件,是liferay对portlet.xml的扩展描述,允许我们对portlet的呈现、功能和行为进行更深入的定制。
它与com.liferay.portal.model.Portlet类对应,
下面是一个较为详细的liferay-portlet定义:
〈portlet〉
〈portlet-name〉19〈/portlet-name〉
〈!-- struts路径 --〉
〈struts-path〉message_boards〈/struts-path〉
〈!-- 配置路径 --〉
〈configuration-path〉/message_boards/edit_configuration〈/configuration-path〉
〈!-- lucene索引类 --〉
〈indexer-class〉com.liferay.portlet.messageboards.util.Indexer〈/indexer-class〉
〈!-- url处理类 --〉
〈portlet-url-class〉com.liferay.portlet.messageboards.MBFriendlyPortletURL〈/portlet-url-class〉
〈!-- 友好url插件类 --〉
〈friendly-url-plugin-class〉 com.liferay.portlet.messageboards.MBFriendlyURLPortletPlugin〈/friendly- url-plugin-class〉
〈preferences-unique-per-layout〉false〈/preferences-unique-per-layout〉
〈use-default-template〉false〈/use-default-template〉
〈restore-current-view〉false〈/restore-current-view〉
〈private-request-attributes〉false〈/private-request-attributes〉
〈/portlet〉
portlet类中常用的属性:
// strtus 路径,对portlet的请求应该限制在这个路径下
private String _strutsPath;
// 配置路径,即action定义
private String _configurationPath;
// portlet实现类
private String _portletClass;
// lucene索引类
private String _indexerClass;
// scheduler类
private String _schedulerClass;
// portletURL处理类
private String _portletURLClass;
// friendURL插件
private String _friendlyURLPluginClass;
// 默认的preferences
private String _defaultPreferences;
// preferences的验证类
private String _prefsValidator;
// 是否实例化,为true时可添加多个portlet到layout上
private boolean _instanceable;
// 是否为系统portlet,
private boolean _system;
// 初始化参数
private Map _initParams;
// portlet支持的模式
private Map _portletModes;
// portlet支持的语言
private Set _supportedLocales;
// PortletInfo
private PortletInfo _portletInfo;
// 是否静态portlet, 静态portlet不能移动.
private boolean _staticPortlet;
// 是否为开始的静态portlet.
private boolean _staticPortletStart;
portlet解析
com.liferay.portal.service.impl.PortletLocalServiceImpl
public void initEAR(String[] xmls) {
String scpId = PortletServiceImpl.class.getName() + "." + _SHARED_KEY;
Map portletsPool = (Map)SimpleCachePool.get(scpId);
if (portletsPool == null) {
portletsPool = CollectionFactory.getSyncHashMap();
SimpleCachePool.put(scpId, portletsPool);
}
try {
List servletURLPatterns = _readWebXML(xmls[4]);
Set portletIds =
_readPortletXML(xmls[0], portletsPool, servletURLPatterns);
portletIds.addAll(
_readPortletXML(xmls[1], portletsPool, servletURLPatterns));
Set liferayPortletIds =
_readLiferayPortletXML(xmls[2], portletsPool);
liferayPortletIds.addAll(
_readLiferayPortletXML(xmls[3], portletsPool));
// Check for missing entries in liferay-portlet.xml
// 检查在liferay-portlet中丢失的portlet实体...
// Remove portlets that should not be included
// 移去不应该包括的portlet实体...
}
catch (Exception e) {
_log.error(StackTraceUtil.getStackTrace(e));
}
}
// 解析portlet.xml
private Set _readPortletXML(
String servletContextName, String xml, Map portletsPool,
List servletURLPatterns)
throws DocumentException, IOException {
Set portletIds = new HashSet();
if (xml == null) {
return portletIds;
}
SAXReader reader = SAXReaderFactory.getInstance();
Document doc = reader.read(new StringReader(xml));
Element root = doc.getRootElement();
Set userAttributes = new HashSet();
Iterator itr1 = root.elements("user-attribute").iterator();
// 用户属性处理...
itr1 = root.elements("portlet").iterator();
while (itr1.hasNext()) {
Element portlet = (Element)itr1.next();
String portletId = portlet.elementText("portlet-name");
if (servletContextName != null) {
portletId =
portletId + Portlet.WAR_SEPARATOR + servletContextName;
}
portletId = PortalUtil.getJsSafePortletName(portletId);
if (_log.isDebugEnabled()) {
_log.debug("Reading portlet " + portletId);
}
portletIds.add(portletId);
Portlet portletModel = (Portlet)portletsPool.get(portletId);
if (portletModel == null) {
portletModel = new Portlet(
new PortletPK(portletId, _SHARED_KEY));
portletsPool.put(portletId, portletModel);
}
if (servletContextName != null) {
portletModel.setWARFile(true);
}
if (servletURLPatterns != null) {
portletModel.setServletURLPatterns(servletURLPatterns);
}
portletModel.setPortletClass(portlet.elementText("portlet-class"));
Iterator itr2 = portlet.elements("init-param").iterator();
// 初始化参数处理...
Element expirationCache = portlet.element("expiration-cache");
// cache过期处理...
itr2 = portlet.elements("supports").iterator();
// 支持模式处理...
Set supportedLocales = portletModel.getSupportedLocales();
// 支持语言处理...
// 资源
portletModel.setResourceBundle(
portlet.elementText("resource-bundle"));
Element portletInfo = portlet.element("portlet-info");
// portlet-info处理...
Element portletPreferences = portlet.element("portlet-preferences");
// preferences处理...
Set unlikedRoles = portletModel.getUnlinkedRoles();
itr2 = portlet.elements("security-role-ref").iterator();
// role处理...
portletModel.getUserAttributes().addAll(userAttributes);
}
return portletIds;
}
// 解析liferay-portlet.xml
private Set _readLiferayPortletXML(
String servletContextName, String xml, Map portletsPool)
throws DocumentException, IOException {
Set liferayPortletIds = new HashSet();
if (xml == null) {
return liferayPortletIds;
}
SAXReader reader = SAXReaderFactory.getInstance();
Document doc = reader.read(new StringReader(xml));
Element root = doc.getRootElement();
Map roleMappers = new HashMap();
Iterator itr1 = root.elements("role-mapper").iterator();
// role-mapper处理...
Map customUserAttributes = new HashMap();
itr1 = root.elements("custom-user-attribute").iterator();
// 定制用户属性处理...
Map friendlyURLPlugins = _getFriendlyURLPlugins();
itr1 = root.elements("portlet").iterator();
while (itr1.hasNext()) {
Element portlet = (Element)itr1.next();
String portletId = portlet.elementText("portlet-name");
if (servletContextName != null) {
portletId =
portletId + Portlet.WAR_SEPARATOR + servletContextName;
}
portletId = PortalUtil.getJsSafePortletName(portletId);
if (_log.isDebugEnabled()) {
_log.debug("Reading portlet extension " + portletId);
}
liferayPortletIds.add(portletId);
Portlet portletModel = (Portlet)portletsPool.get(portletId);
if (portletModel != null) {
// 设置portlet属性...
// 处理FriendURL插件
portletModel.setFriendlyURLPluginClass(GetterUtil.getString(
portlet.elementText("friendly-url-plugin-class"),
portletModel.getFriendlyURLPluginClass()));
if (Validator.isNull(
portletModel.getFriendlyURLPluginClass())) {
friendlyURLPlugins.remove(portletId);
}
else {
friendlyURLPlugins.put(
portletId, portletModel.getFriendlyURLPluginClass());
}
// 绑定role.
portletModel.getRoleMappers().putAll(roleMappers);
portletModel.linkRoles();
portletModel.getCustomUserAttributes().putAll(
customUserAttributes);
}
}
return liferayPortletIds;
}
从上面的代码可看出,liferay将portlet的描述定义存储在一个Map中.
liferay-display.xml
portlet的类别定义文件,下面是一个简单的例子:
〈category name="category.admin"〉
〈portlet id="9" /〉
〈portlet id="40" /〉
〈portlet id="79" /〉
〈portlet id="80" /〉
〈/category〉
要注意的是,在portlet.xml/liferay-portlet.xml/liferay-display.xml三个文件中的portlet-name, portlet-id必须是一致的。
liferay-layout-templates.xml
layout模板定义文件.
liferay-look-and-feel.xml
主题定义文件.
portlet的web.xml
如果以war的方式发布portlet,那么它的web.xml也要进行一些特定的说明,
下面是liferay中sample-jsp-portlet示例的web.xml:
〈web-app〉
〈display-name〉sample-jsp-portlet〈/display-name〉
〈context-param〉
〈param-name〉company_id〈/param-name〉
〈param-value〉liferay.com〈/param-value〉
〈/context-param〉
〈listener〉
〈listener-class〉com.liferay.portal.kernel.servlet.PortletContextListener〈/listener-class〉
〈/listener〉
〈servlet〉
〈servlet-name〉sample_jsp_portlet〈/servlet-name〉
〈servlet-class〉com.liferay.portal.kernel.servlet.PortletServlet〈/servlet-class〉
〈init-param〉
〈param-name〉portlet-class〈/param-name〉
〈param-value〉com.sample.jsp.portlet.JSPPortlet〈/param-value〉
〈/init-param〉
〈load-on-startup〉0〈/load-on-startup〉
〈/servlet〉
〈servlet-mapping〉
〈servlet-name〉sample_jsp_portlet〈/servlet-name〉
〈url-pattern〉/sample_jsp_portlet/*〈/url-pattern〉
〈/servlet-mapping〉
〈taglib〉
〈taglib-uri〉http://java.sun.com/portlet〈/taglib-uri〉
〈taglib-location〉/WEB-INF/tld/liferay-portlet.tld〈/taglib-location〉
〈/taglib〉
〈/web-app〉
上面的listener是必须的,它用于通知liferay进行热部署,
portlet-class指定Portlet的实现类,它必须遵循JSR168标准,直接或间接的从javax.portlet.GenericPortlet继承。
发表评论
-
再望Sun的背影
2010-02-06 00:41 0这是在运营公司,不 ... -
被FCKeditor给弄的快疯掉了!!
2008-04-14 14:44 867FCKEditor显示在页面上总是只有一个TextArea,折 ... -
SWT的Table对单元格添加可编辑属性
2008-04-09 22:02 13460首先是初始化Display , shell ,然后建立tabl ... -
JVM_8080 Already In use 暴力解决方法
2008-04-09 18:57 1634在Myeclipse中启动tomcat报错: JVM——808 ... -
SWT开发的一个简单的信息管理软件
2008-04-07 21:35 1712花了两天时间做了个简单的信息管理软件,界面开发采用了SWT,之 ... -
jar命令加入Main-Class描述
2008-04-03 15:58 5469想在Jar包的Manifest文件中加入Main-Class描 ... -
Spring2.5中可以用Annotation代替xml配置bean了
2008-04-02 13:28 2090xml配置文件中bean的定义可以去掉了,xml配置主要内容如 ... -
Hibernae+Spring+Annotation 的一个Demo
2008-04-02 13:00 18071,今天在用Annotation+Hibern ... -
使用Myeclipse的一个小技巧
2008-04-01 12:55 1619用Eclipse开发的过程中,经常用到的一个功能就是为一个新建 ... -
Hibernate Step By Step (2)
2008-03-31 18:59 1072考虑把通过xxx.hbm.xml转换为用Annotation从 ... -
hibernate Step By Step (1)
2008-03-31 13:27 980Hibernate的第一个例子,用hibernate3.0 ... -
MyEclipse 6下按照SVN插件
2008-03-31 10:02 8937我也是按照一般的步骤安装SVN插件:解压——Copy plu ... -
hibernate中所需要的各 jar
2008-03-21 22:00 1446hibernate3.jar 编译hibernate所必须的 ... -
学习Hibernate和Spring ing...
2008-03-21 21:55 818团队信息平台的项目打算用到Hibernate+Spring ... -
Ajax4jsf开发的Helloworld
2008-03-20 08:11 1139学习ajax4jsf+myfaces ,今天写了个简单的Hel ...
相关推荐
Liferay 6.0.5 portal.properties 配置文件详解 详细说明了 portal.properties 配置文件可以配置的所有属性
新建Liferay的DB,然后将该文件导入该DB后,即可创建Liferay所需要的Table,并insert提供的初始值。
liferay中的配置文件的几处修改
Liferay 是一个完整的门户解决方案,基于J2EE的应用,使用了EJB以及JMS等技术,前台界面部分使用Struts MVC 框架,基于XML的portlet配置文件可以自由地动态扩展,使用了Web服务来支持一些远程信息的获取,使用 ...
在was7.0上面安装部署liferay portal,主要说明相关配置文件的放置、数据库的配置、相关JAR包以及应用程序的安装应用
Liferay 是一个完整的门户解决方案,基于J2EE的应用,使用了EJB以及JMS等技术,前台界面部分使用Struts MVC 框架,基于XML的portlet配置文件可以自由地动态扩展,使用了Web服务来支持一些远程信息的获取,使用 ...
一些有用的入门指南技巧和文件,以改善GS前端开发和Liferay内容配置。 Liferay 7+ ADT 列表以及如何设置它们。 范本 在Liferay项目中使用一些。 Taglib(JSP Portlet的AUI表单,验证器等) 有关Liferay项目的一些...
liferay是一个强大的工具,开发者只用写一个持久层的配置文件,改工具就反向生成持久层和业务层的代码.简单说来,工具会自动生成hibernate层和spring层的相关代码,开发者只用关心控制层即可.
Service Builder是Liferay IDE(SDK)提供的一种代码生成方案,开发人员只需要编辑一个数据库的实体描述文件,即可根据本XML文件生成Spring层代码、Hibernate层代码、SQL、SQL索引创建文件、Spring和hibernate的配置...
Liferay Docker图片 该存储库包含 用于为任何Liferay发行版创建Liferay“独立” Docker映像的工具。 有关详细信息,请参见文件夹 对于普通的最终用户而言,某些脚本使这些图像/容器的使用变得更加容易(甚至透明)。...
在liferay中配置kaleo流程,包括描述了如何创建流程等内容。
当前,它使用预定义的liferay-ext.properties文件,并且仅允许更改其中的特定值。 Liferay群集配置当前非常有限: 它使用多播进行发现它使用RMI线程进行缓存复制(不支持Ehcache Cluster EE插件) 它使用复制的...
该项目使用Liferay中的release.portal.bom , release.portal.bom.compile.only和release.portal.bom.third.party工件来检索所有依赖项。 该项目不是要建造的。 该项目没有自己的资源。 用法 它打算使用支持maven...
将/es/docker-entrypoint.sh的文件权限更改为可执行文件。 返回根文件夹并运行docker-compose up --build或docker-compose up 启动 Liferay 7.3 以管理员身份登录并导航到控制面板 -> 配置 -> 系统设置 -> 搜索 -> ...
将所有jar文件从org-apache-aries-blueprint文件夹复制到$ {LIFERAY_HOME} / deploy中,以便安装Apache Aries Blueprint套件 部署片段模块,以扩展ParagraphDDMFormFieldType服务 请访问我的博客文章, 为了解更多...
次要指令本身嵌入到脚本文件中。 这主要包括根据需要将下载链接更新到较新版本的应用程序,或者检查路径是否与计算机上的路径相同。 在一台服务器上下载并运行kerberosKDC.sh以配置Kerberos KDC。 您将被要求 输入...
的订阅许可文件,例如your_license_file.xml 。 如果没有这个,您将无法继续 Liferay 启动向导。 Docker 1.9 或更高版本。 Docker 撰写 1.6 或更高版本。 快速入门指南 这个基本的 docker run 命令将使用 Jboss 的...
Create React App入门 该项目是通过引导的。 可用脚本 在项目目录中,可以运行: yarn start 在开发模式下运行应用程序。 打开在浏览器中查看它。... 相反,它将所有配置文件和传递依赖项(webpack
基于Liferay Web Form portlet:添加文件上传功能和其他杂项。 这是一个新的 Web 表单 portlet,您可以将它与需要文件上传控件的表单一起使用。 文件将上传到磁盘(您可以指定绝对路径位置)或 Documents and ...
应用适配器文件 webapp/WEB-INF/liferay-hook.xml 配置钩子并包括: <custom>/custom_jsp</custom><custom>false</custom>global = false 指令将自定义 JSP 挂钩转换为应用程序适配器。 一个普通的 Liferay 自定义 ...