public class ImpersonationHelper extends Object
Modifier and Type | Method and Description |
---|---|
static void |
escalateCurrentThreadToSystemAuthority() |
static Runnable |
makeRunnableWithSystemAuthority(Runnable runnable) |
static void |
newAuthenticationForCurrentThread(org.acegisecurity.Authentication authentication) |
static <E1 extends Throwable,E2 extends Throwable,E3 extends Throwable> |
runAs(BambooUser user,
BambooRunnables.ThrowingX<E1,E2,E3> runnable) |
static <E1 extends Throwable,E2 extends Throwable,E3 extends Throwable> |
runWith(org.acegisecurity.Authentication authentication,
BambooRunnables.ThrowingX<E1,E2,E3> runnable) |
static <E1 extends Throwable,E2 extends Throwable,E3 extends Throwable> |
runWithSystemAuthority(BambooRunnables.ThrowingX<E1,E2,E3> runnable) |
public static <E1 extends Throwable,E2 extends Throwable,E3 extends Throwable> void runWithSystemAuthority(@NotNull BambooRunnables.ThrowingX<E1,E2,E3> runnable) throws E2 extends Throwable, E1 extends Throwable, E3 extends Throwable
E2 extends Throwable
public static <E1 extends Throwable,E2 extends Throwable,E3 extends Throwable> void runWith(@NotNull org.acegisecurity.Authentication authentication, @NotNull BambooRunnables.ThrowingX<E1,E2,E3> runnable) throws E2 extends Throwable, E1 extends Throwable, E3 extends Throwable
E2 extends Throwable
public static void newAuthenticationForCurrentThread(org.acegisecurity.Authentication authentication)
public static Runnable makeRunnableWithSystemAuthority(Runnable runnable)
public static void escalateCurrentThreadToSystemAuthority()
public static <E1 extends Throwable,E2 extends Throwable,E3 extends Throwable> void runAs(@NotNull BambooUser user, @NotNull BambooRunnables.ThrowingX<E1,E2,E3> runnable) throws E2 extends Throwable, E1 extends Throwable, E3 extends Throwable
E2 extends Throwable
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.