public abstract class SecurityAuthFun extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private static PermissionHandler |
permissionHandler |
| 构造器和说明 |
|---|
SecurityAuthFun() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
denyAll()
只有超管角色才可访问。
|
private static PermissionHandler |
getPermissionHandler() |
protected abstract SecurityPlatformUser |
getSecurityPlatformUser() |
boolean |
hasAllRole(String... role)
判断是否具有所有角色权限。
|
boolean |
hasAnyRole(String... role)
判断是否有该角色权限。
|
boolean |
hasAuth()
是否已授权。
|
boolean |
hasPermission(String permission)
判断角色是否具有接口权限。
|
boolean |
hasRole(String role)
判断是否有该角色权限。
|
boolean |
hasTimeAuth(Integer start,
Integer end)
是否有时间授权。
|
boolean |
permissionAll()
判断角色是否具有接口权限。
|
boolean |
permitAll()
放行所有请求。
|
private static PermissionHandler permissionHandler
private static PermissionHandler getPermissionHandler()
public boolean permissionAll()
public boolean hasPermission(String permission)
permission - 权限编号public boolean permitAll()
public boolean denyAll()
public boolean hasAuth()
public boolean hasTimeAuth(Integer start, Integer end)
start - 开始时间end - 结束时间public boolean hasRole(String role)
role - 单角色public boolean hasAllRole(String... role)
role - 角色集合public boolean hasAnyRole(String... role)
role - 角色集合protected abstract SecurityPlatformUser getSecurityPlatformUser()
Copyright © 2022 Zodiac. All rights reserved.