类 AccessUtil
java.lang.Object
cn.hamm.airpower.util.AccessUtil
权限处理助手
- 作者:
- Hamm.cn
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明final @NotNull StringgetPermissionIdentity(@NotNull Class<?> clazz, @NotNull Method method) 获取权限标识final @NotNull AccessgetWhatNeedAccess(@NotNull Class<?> clazz, @NotNull Method method) 获取需要被授权的类型
-
构造器详细资料
-
AccessUtil
public AccessUtil()
-
-
方法详细资料
-
getWhatNeedAccess
@NotNull public final @NotNull Access getWhatNeedAccess(@NotNull @NotNull Class<?> clazz, @NotNull @NotNull Method method) 获取需要被授权的类型
- 参数:
clazz- 类method- 方法- 返回:
- 需要授权的选项
-
getPermissionIdentity
@NotNull public final @NotNull String getPermissionIdentity(@NotNull @NotNull Class<?> clazz, @NotNull @NotNull Method method) 获取权限标识
- 参数:
clazz- 类method- 方法- 返回:
- 权限标识
-