接口 AuthorizeConfig
public interface AuthorizeConfig
权限设置类接口
- 从以下版本开始:
- 1.9
- 作者:
- XUMUMI
-
方法概要
修饰符和类型 方法 说明 String[]getAuthentication()获取登录后才可以访问的页面String[]getPermitAll()获取无需授权页面Map<? extends Serializable,? extends Serializable>getRoleRightsMap()自定义角色授权的页面,只要有这些角色就可以访问对应的链接voidsetAuthentication(String... rightList)自定义需要登录后才可以访问的页面voidsetPermitAll(String... rightList)自定义无需授权页面voidsetRoleRightsMap(Map<? extends Serializable,? extends Serializable> rolesRightList)自定义角色授权的页面,只要有这些角色就可以访问对应的链接
-
方法详细资料
-
setPermitAll
自定义无需授权页面- 参数:
rightList- 无需授权的页面的地址构成的字符串数组
-
setAuthentication
自定义需要登录后才可以访问的页面- 参数:
rightList- 地址字符串数组
-
setRoleRightsMap
自定义角色授权的页面,只要有这些角色就可以访问对应的链接- 参数:
rolesRightList- 一个以角色字符串或字符串数组为键名,地址字符串或字符串数组为键值的表
-
getPermitAll
String[] getPermitAll()获取无需授权页面- 返回:
- 地址列表
-
getAuthentication
String[] getAuthentication()获取登录后才可以访问的页面- 返回:
- 地址列表
-
getRoleRightsMap
Map<? extends Serializable,? extends Serializable> getRoleRightsMap()自定义角色授权的页面,只要有这些角色就可以访问对应的链接- 返回:
- 一个以角色字符串或字符串数组为键名,地址字符串或字符串数组为键值的表
-