`
kevin.hwq
  • 浏览: 60157 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

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的选项模式。

 

有空再研究了。

  • 大小: 20.8 KB
0
0
分享到:
评论
1 楼 flyingcn 2008-11-13  
为什么我试验很多次都没有效果?始终看不到其他设置权限的项??还需要改别的什么地方吗!

相关推荐

Global site tag (gtag.js) - Google Analytics