Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Jute Powerful Forum  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 请介绍一下Jute的访问控制机制
cckoan

Smoking

CJSDN高级会员


发贴: 253
积分: 130
于 2003-05-27 14:06 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
采用了java.security.acl技术吗?
用户,角色,资源,权限
是如何对应的?
如果答案令人信服,我可以推荐用户购买企业版



作者 Re:请介绍一下Jute的访问控制机制 [Re:cckoan]
rainman

阿熊

元老


发贴: 5644
积分: 454
于 2003-05-28 08:44 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
没有采用java.security.acl。
自己构造了一个论坛的权限集合类,用户在不同的域有不同的角色,角色已经预先分配过权限(管理员在后台设置),判断是否拥有权限的时候用位运行,速度比较快。




作者 Re:请介绍一下Jute的访问控制机制 [Re:cckoan]
yadan



Jute User


发贴: 226
积分: 30
于 2003-05-29 09:34 user profilesend a private message to usersend email to yadansearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我看数据库,是不是这样:每个权限对应一个2的N次方,累加起来就是一个权限的组合,也就是一个角色?


作者 Re:请介绍一下Jute的访问控制机制 [Re:yadan]
rainman

阿熊

元老


发贴: 5644
积分: 454
于 2003-05-29 09:39 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
对啊,这都被你看出来了,厉害啊!



作者 Re:请介绍一下Jute的访问控制机制 [Re:rainman]
yadan



Jute User


发贴: 226
积分: 30
于 2003-05-29 09:44 user profilesend a private message to usersend email to yadansearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
rainman wrote:
对啊,这都被你看出来了,厉害啊!


讽刺。。。。Big Smile



作者 Re:请介绍一下Jute的访问控制机制 [Re:yadan]
netboy



发贴: 0
积分: 0
于 2003-05-29 09:45 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
yadan wrote:
讽刺。。。。Big Smile


夸奖你呢!

Thumbs upThumbs up




作者 Re:请介绍一下Jute的访问控制机制 [Re:yadan]
rainman

阿熊

元老


发贴: 5644
积分: 454
于 2003-05-29 10:24 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
当然不讽刺,数据库里存的是一整数啊,你看出来了是2的倍数相加,厉害啊。



作者 Re:请介绍一下Jute的访问控制机制 [Re:cckoan]
davidself

猫哥

CJSDN高级会员


发贴: 1506
积分: 333
于 2003-05-30 13:58 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
是不是类似于掩码的技术?


--108的上铺--
davidself@twitter
作者 Re:请介绍一下Jute的访问控制机制 [Re:cckoan]
Rainwolf





发贴: 107
积分: 30
于 2003-06-13 15:22 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
既然用位判断当然要用2的N次方了,作过汇编的人都很清楚
但是这样用一个整数的位数来判断权限,可容纳的权限不多啊,用BigInteger ?速度快吗?




flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923