问题描述
如何为我的自定义Portlet创建管理Portlet,例如Liferay中的Wiki Portlet的Wiki Admin.有可能吗?
How can I create administrative portlet for my custom portlet, such as Wiki Admin for Wiki portlet in Liferay. Is it possible ?
推荐答案
Admin Portlet与其他Portlet没什么不同,因为它们只是重新使用某些功能(服务方法和某些JSP)的新Portlet.它们的对应部分,并为管理员添加更多功能,例如添加/编辑/删除/分配角色/分配权限/配置等.
Admin portlets are not something different then other portlets in the sense that they are just new portlets which re-use some of the functionality (service methods and some JSPs) of their counter-parts and add more functionalities for Administrator like add/edit/delete/assign-roles/assign-permissions/configurations etc.
所以我认为您只需要在同一WAR中为您的MyCustom
portlet创建一个MyCustomAdmin
portlet.
So I think you just need to create a MyCustomAdmin
portlet for your MyCustom
portlet in the same WAR.
如果希望MyCustomAdmin
portlet出现在控制面板中,则可以按照.
If you want the MyCustomAdmin
portlet to appear in the control-panel then you can follow the steps here.
这仅取决于您如何设计portlet,以便可以在两个portlet之间来回使用东西.
It just depends upon how you design your portlet so that you can re-use stuff to-fro between the two portlets.
我希望我已经回答了您想要的,如果您有其他想法,请及时更新问题.
I hope I have answered what you desired, if you have something else in mind then kindly update the question.
这篇关于Liferay中的管理portlet(例如Wiki Admin,留言板Admin)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!