Liferay中的公司意味着什么(What company means in Liferay)

系统教程 行业动态 更新时间:2024-06-14 17:01:31
Liferay中的公司意味着什么(What company means in Liferay)

Liferay中有组织,用户,角色和组。 但是,liferay API中有许多方法可以返回公司或需要公司ID作为参数。 例如UserLocalServiceUtil.getUserByEmailAddress(long companyId, String emailAddress)或com.liferay.portal.model.User getCompanyId() 。

为什么company在Liferay中提供? 为什么我必须提供公司ID才能通过电子邮件地址查找用户?

文档没有说太多。

There are organizations, users, roles and groups in Liferay. But there are many methods in liferay API that returns company or need company id as argument. E.g. UserLocalServiceUtil.getUserByEmailAddress(long companyId, String emailAddress) or com.liferay.portal.model.User getCompanyId().

For what purpose the company is provided in Liferay? Why I have to provide company id to find user by email address?

Documentation does not say too much.

最满意答案

简而言之 - 您可以在同一服务器(在同一数据库中)中有多个门户网站实例,并且您需要“companyId”以避免这些实例之间的数据库数据冲突。 单个实例本身就是一个包含用户,组,角色和其他所有内容的完整门户。 拥有“companyId”,您可以为不同的实例保存两个具有相同emailAddress的用户。

In short - you can have more than one portal instance in the same server (in the same database) and you need "companyId" to avoid db data conflicts between those instances. A single instance itself is a full portal with users,groups,roles and everything else. Having "companyId" you can save, for example, two users with same emailAddress for different instances.

更多推荐

本文发布于:2023-04-20 16:06:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/ee49820a547fe18305210c34c5d64869.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:意味着什么   公司   Liferay   company   means

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!