Liferay 用户管理/隐藏 portlet
我正在从事一个项目,我们需要在 Liferay 门户中创建用户管理的第一步。我需要知道如何根据用户拥有的角色隐藏社区内的门户页面/portlet。
我可以在社区内使用 Teams 吗? 我应该使用 Liferay UM API 还是可以配置 portlet 或页面,使其仅对某些团队/角色可见。
任何帮助表示赞赏。 谢谢。
I am working in a project where we need to create first steps for User Management in Liferay portal. I need to know how I am able to hide portal pages / portlets inside a community depending on which roles user has.
Can I use Teams inside a Community?
Should I use Liferay UM API or can I configure portlet or page so that it is visible only for certain Teams / roles.
Any help is appreciated.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您转到管理页面,然后选择要隐藏的页面,然后选择“权限”。您可以在那里定义每个角色的权限。
对于 portlet,请转到扳手->;配置->权限。
You go to manage pages and then select the page you want to hide and then select 'permissions'. You can define permissions per role there.
For portlets go to wrench-> configuration -> permissions.
您可以通过更改配置中的权限来隐藏 portlet(可从 portlet 标题菜单访问)。
然而,这样的 portlet 仍然对所有用户可见,并带有丑陋的消息,表明他们没有权限。您可以通过将以下内容放入portal-ext.properties 来完全隐藏它。
要隐藏页面,请转到“管理页面”,然后选择所需的页面(或者如果您有复杂的页面结构,则首先转到该页面,然后再管理页面 - 页面将已被选择),然后更改底部的权限(您可能需要将选项卡从“儿童”更改为“常规”或其他选项)。
You can hide portlet by changing the permissions in Configuration (accesible from portlet header menu).
However such portlet will still be visible to all users with ugly message saying that they don't have permissions. You can hide it completely by putting following into portal-ext.properties.
For hiding pages go to the "Manage pages" and then select required page (or go to the page at first if and then to manage pages if you have complicated page structure - page will be already selected) and then change the permissions at the bottom (you might need to change tab from children to general or something).
根据用户在门户中的角色/操作对用户进行分类。作为;
管理员可以添加角色并向用户授予在门户应用程序中执行各种功能的权限。
Categories your users based on their roles / actions for your Portal. as;
Administrators can add roles and grant permissions to users for various functions within portal applications.