类 NkSecurityRunner
java.lang.Object
cn.nkpro.elcube.security.NkSecurityRunner
-
嵌套类概要
嵌套类修饰符和类型类说明static interfacestatic interface -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明<T> TreturnAsUser(@NotNull UserDetails details, Boolean superAuthority, @NotNull NkSecurityRunner.ReturnableFunction function)用指定用户 以超级权限 来运行指定函数<T> TreturnAsUser(@NotNull String username, @NotNull NkSecurityRunner.ReturnableFunction function)用指定用户 以超级权限 来运行指定函数<T> TreturnAsUser(@NotNull String username, Boolean superAuthority, @NotNull NkSecurityRunner.ReturnableFunction function)用指定用户 来运行指定函数voidrunAsUser(@NotNull String username, @NotNull NkSecurityRunner.Function function)已过时。
-
构造器详细资料
-
NkSecurityRunner
public NkSecurityRunner()
-
-
方法详细资料
-
returnAsUser
public <T> T returnAsUser(@NotNull @NotNull String username, @NotNull @NotNull NkSecurityRunner.ReturnableFunction function)用指定用户 以超级权限 来运行指定函数- 参数:
username-function-
-
returnAsUser
public <T> T returnAsUser(@NotNull @NotNull String username, Boolean superAuthority, @NotNull @NotNull NkSecurityRunner.ReturnableFunction function)用指定用户 来运行指定函数- 参数:
username-superAuthority-function-
-
returnAsUser
public <T> T returnAsUser(@NotNull @NotNull UserDetails details, Boolean superAuthority, @NotNull @NotNull NkSecurityRunner.ReturnableFunction function)用指定用户 以超级权限 来运行指定函数- 参数:
username-function-
-
runAsUser
@Deprecated public void runAsUser(@NotNull @NotNull String username, @NotNull @NotNull NkSecurityRunner.Function function)已过时。用指定用户 以超级权限 来运行指定函数 不推荐使用- 参数:
username-function-- 另请参阅:
#runAsUser(String, ReturnableFunction)
-