What is the equivalent file of liferay-portlet.xml in liferay 7?

梦想的初衷 提交于 2021-01-27 18:55:39

问题


I want to add custom user notifications in liferay 7. For this If I were using liferay 6.2 I would have to make entries like user-notification-definitions and user-notification-handler-class in liferay-portlet.xml . But in liferay I want to ask where to put these entries. Please help....thanx in advance..


回答1:


You can also find similar properties here :

https://dev.liferay.com/develop/reference/-/knowledge_base/7-0/portlet-descriptor-to-osgi-service-property-map

According to above link, user-notification-definitions is not supported though OSGI props.

Thanks,
Ankit




回答2:


You can still use this file in legacy portlets (packaged in WAR files).

For OSGi Components, the settings from that file end up in the properties for your component. Those properties starting with javax.portlet mirror the settings from portlet.xml, those starting with com.liferay mirror those that are documented for liferay-portlet.xml



来源:https://stackoverflow.com/questions/40907142/what-is-the-equivalent-file-of-liferay-portlet-xml-in-liferay-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!