Liferay 用户管理/隐藏 portlet

发布于 2025-01-04 02:09:55 字数 184 浏览 6 评论 0原文

我正在从事一个项目,我们需要在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

总以为 2025-01-11 02:09:55

您转到管理页面,然后选择要隐藏的页面,然后选择“权限”。您可以在那里定义每个角色的权限。

对于 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.

酸甜透明夹心 2025-01-11 02:09:55

您可以通过更改配置中的权限来隐藏 portlet(可从 portlet 标题菜单访问)。

然而,这样的 portlet 仍然对所有用户可见,并带有丑陋的消息,表明他们没有权限。您可以通过将以下内容放入portal-ext.properties 来完全隐藏它。

layout.show.portlet.access.denied=false

要隐藏页面,请转到“管理页面”,然后选择所需的页面(或者如果您有复杂的页面结构,则首先转到该页面,然后再管理页面 - 页面将已被选择),然后更改底部的权限(您可能需要将选项卡从“儿童”更改为“常规”或其他选项)。

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.

layout.show.portlet.access.denied=false

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).

倾城°AllureLove 2025-01-11 02:09:55

根据用户在门户中的角色/操作对用户进行分类。作为;

角色是共享特定功能的用户分组
根据特定范围的门户。

管理员可以添加角色并向用户授予在门户应用程序中执行各种功能的权限。

Categories your users based on their roles / actions for your Portal. as;

Roles are groupings of users that share a particular function within
the portal, according to a particular scope.

Administrators can add roles and grant permissions to users for various functions within portal applications.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文