类 AccessUtil

java.lang.Object
cn.hamm.airpower.util.AccessUtil

@Component public class AccessUtil extends Object

权限处理助手

作者:
Hamm.cn
  • 构造器详细资料

    • 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 - 方法
      返回:
      权限标识