com.atlassian.bamboo.security
Class ImpersonationHelper
java.lang.Object
com.atlassian.bamboo.security.ImpersonationHelper
public class ImpersonationHelper
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
runWithSystemAuthority
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
- Throws:
E2 extends Throwable
runWith
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
- Throws:
E2 extends Throwable
newAuthenticationForCurrentThread
public static void newAuthenticationForCurrentThread(org.acegisecurity.Authentication authentication)
makeRunnableWithSystemAuthority
public static Runnable makeRunnableWithSystemAuthority(Runnable runnable)
escalateCurrentThreadToSystemAuthority
public static void escalateCurrentThreadToSystemAuthority()
runAs
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
- Throws:
E2 extends Throwable
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.