是否可以使用JAAS来控制界面渲染?
在页面上渲染元素时,我需要做一些基于角色的权限,就像在 JBoss Seam 中实现的那样,在 JBoss Seam 中声明页面元素时有 rendered
标签。我的疑问是是否可以使用标准 JAAS 来做到这一点?
容器(weblogic)连接到 LDAP 服务器,其中用户与一组组/角色关联,我想使用一些声明性方法根据用户登录所属的组呈现菜单元素。这与 JBoss Seam 2 中实现的 Roles/rendered 完全一样。是否可以使用标准 J2EE 来做到这一点或类似的事情?如果没有,是否有一些开源 API 可以完成这项工作?
提前致谢。
I need something to do a role based permission when rendering elements on a page exactly like implemented in JBoss Seam where you have the rendered
tag while declaring the page elements. My doubt is if it is possible to do that using standard JAAS?
The container(weblogic) is connected to the LDAP server where the user is associated with a bunch of groups/roles and I would like to use some declarative approach to render menu elements based on the groups the user logged in belongs. That would be exactly like the Roles/rendered implemented in JBoss Seam 2. Is it possible to do that or something similar with standard J2EE? If not, Is there some Open Source API who would do the job?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
经过几天的研究,我所做的是将 weblogic 领域配置为连接到 LDAP,而不是使用标准表单登录:
之后,我使用以下方式呈现界面:
检查是否应向登录的用户显示特定的界面片段。它起作用了。
after some days of research what I did was configured weblogic realm to connect to the LDAP and than using a standard form login:
After that I had my interface rendering using:
to check if the logged in user should be presented with a specific interface fragment. It worked.