Liferay5.1的权限模式设置

之前用LP5之前的版本比如我用的4.3.5,在对一个资源的权限管理中,都可以对用户、用户组、组织、角色这些进行权限分配,但前些天用了一下5.1,权限设置中只有Regular Roles(普通角色)和Community Roles社区角色和Guest选项卡了,而没有了User、User Group这些,莫非是LP不支持直接对用户进行权限配置?我想不对劲,即使是去掉了也该有它的道理或者有什么其他的解决方案的。

后来就想到了可能在配置文件中会有配置,在配置文件中查找Permission,最后看到了这一段:

 

    #
    # Set the algorithm used to check permissions for a user. This is useful so
    # that you can optimize the search for different databases. See
    # com.liferay.portal.service.impl.PermissionLocalServiceImpl.
    #
    # Algoriths 1 through 4 are essentially the same but make calls in different
    # orders depending on how the database is optimized and how the portal
    # permissions are used. Algorithm 5 is is the recommended algorithm because
    # it is the fastest and relies on only role assignments.
    #
    #permissions.user.check.algorithm=1
    #permissions.user.check.algorithm=2
    #permissions.user.check.algorithm=3
    #permissions.user.check.algorithm=4
    permissions.user.check.algorithm=5

 

这是设置权限的算法的,我试着设为1,再启动liferay,User、User Group等选项卡出来了,如下图,熟悉了吧?

 

 

至于1-4和5的区别很容易看出来,但是1-4之间每个不同设置有什么不同,看说明说是可以根据不同db设置不同,不知道是不是出于性能考虑?我还没有弄太懂。哪位高人研究研究,弄懂了说声啊。

5是推荐的选项,这样性能会好一些,但是可能大家都习惯1-4的选项模式。

 

有空再研究了。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值