iMatrix平台中Spring的权限标签使用说明
2014-10-21 14:59
351 查看
1 Spring的权限标签
标签的属性有:ifAllGranted、ifAnyGranted、ifNotGranted,其属性值为sales中录入的资源编码
属性说明:
ifAllGranted:只有当前用户同时拥有ROLE_ADMIN和ROLE_USER权限时,才能显示标签内部内容
<security:authorize
ifAllGranted ="ROLE_ADMIN, ROLE_USER">
<button
class='btn'
onclick="save_type_form();"
hidefocus="true"><span><span>保存</span></span></button>
</security:authorize>
ifAnyGranted:如果当前用户拥有ROLE_ADMIN或ROLE_USER其中一个权限时,就能显示标签内部内容
<security:authorize
ifAnyGranted="ROLE_ADMIN, ROLE_USER">
<button
class='btn'
onclick="save_type_form();"
hidefocus="true"><span><span>保存</span></span></button>
</security:authorize>
ifNotGranted:如果当前用户没有ROLE_ADMIN时,才能显示标签内部内容
<security:authorize
ifNotGranted="ROLE_ADMIN">
<button
class='btn'
onclick="save_type_form();"
hidefocus="true"><span><span>保存</span></span></button>
</security:authorize>
iMatrix6.0.0.RC1Demo演示登陆地址:http://demo.imatrix.net.cn:8888/imatrix
如有使用iMatrix平台问题请登录iMatrix平台论坛咨询:
http://bbs.imatrix.net.cn/forum.php?mod=forumdisplay&fid=37
或者加入扣扣群307599527
相关文章推荐
- iMatrix平台中脚本样式标签(grid:JC)使用说明
- SNF开发平台WinForm之八-自动升级程序部署使用说明-SNF快速开发平台3.3-Spring.Net.Framework
- SNF开发平台WinForm之五-高级查询使用说明-SNF快速开发平台3.3-Spring.Net.Framework
- Apache Shiro 整合Spring 进行权限验证 以及在Freemarker中使用shiro标签
- SNF开发平台WinForm之七-单据打印和使用说明-SNF快速开发平台3.3-Spring.Net.Framework
- Spring Boot Shiro 权限信息缓存处理,记住我,thymleaf使用shiro标签
- Apache Shiro 整合Spring 进行权限验证 以及在Freemarker中使用shiro标签
- Spring Boot Shiro 权限信息缓存处理,记住我,thymleaf使用shiro标签
- Apache Shiro 整合Spring 进行权限验证 以及在Freemarker中使用shiro标签
- <转载>Spring(22): <context:component-scan>标签的使用说明
- DWR高级主题之DWR与spring集成(使用SpringMVC时dwr:controller标签说明)
- SNF开发平台WinForm之九-代码生成器使用说明-SNF快速开发平台3.3-Spring.Net.Framework
- 使用权限标签控制View层展示的内容
- 使用权限标签控制View层展示的内容
- 使用权限标签控制View层展示的内容
- 使用权限标签控制View层展示的内容
- 使用权限标签控制View层展示的内容
- 使用权限标签控制View层展示的内容
- Struts2页面开发中常用标签使用说明