com.atlassian.bamboo.security
Class ImpersonationHelper
java.lang.Object
com.atlassian.bamboo.security.ImpersonationHelper
public class ImpersonationHelper
- extends java.lang.Object
Method Summary |
static void |
escalateCurrentThreadToSystemAuthority()
|
static java.lang.Runnable |
makeRunnableWithSystemAuthority(java.lang.Runnable runnable)
|
static void |
newAuthenticationForCurrentThread(org.acegisecurity.Authentication authentication)
|
static
<E1 extends java.lang.Throwable,E2 extends java.lang.Throwable,E3 extends java.lang.Throwable>
void |
|
runAs(BambooUser user,
BambooRunnables.ThrowingX<E1,E2,E3> runnable)
|
static
<E1 extends java.lang.Throwable,E2 extends java.lang.Throwable,E3 extends java.lang.Throwable>
void |
|
runWith(org.acegisecurity.Authentication authentication,
BambooRunnables.ThrowingX<E1,E2,E3> runnable)
|
static
<E1 extends java.lang.Throwable,E2 extends java.lang.Throwable,E3 extends java.lang.Throwable>
void |
|
runWithSystemAuthority(BambooRunnables.ThrowingX<E1,E2,E3> runnable)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
runWithSystemAuthority
public static <E1 extends java.lang.Throwable,E2 extends java.lang.Throwable,E3 extends java.lang.Throwable> void runWithSystemAuthority(@NotNull
BambooRunnables.ThrowingX<E1,E2,E3> runnable)
throws E2 extends java.lang.Throwable,
E1 extends java.lang.Throwable,
E3 extends java.lang.Throwable
- Throws:
E2 extends java.lang.Throwable
runWith
public static <E1 extends java.lang.Throwable,E2 extends java.lang.Throwable,E3 extends java.lang.Throwable> void runWith(@NotNull
org.acegisecurity.Authentication authentication,
@NotNull
BambooRunnables.ThrowingX<E1,E2,E3> runnable)
throws E2 extends java.lang.Throwable,
E1 extends java.lang.Throwable,
E3 extends java.lang.Throwable
- Throws:
E2 extends java.lang.Throwable
newAuthenticationForCurrentThread
public static void newAuthenticationForCurrentThread(org.acegisecurity.Authentication authentication)
makeRunnableWithSystemAuthority
public static java.lang.Runnable makeRunnableWithSystemAuthority(java.lang.Runnable runnable)
escalateCurrentThreadToSystemAuthority
public static void escalateCurrentThreadToSystemAuthority()
runAs
public static <E1 extends java.lang.Throwable,E2 extends java.lang.Throwable,E3 extends java.lang.Throwable> void runAs(@NotNull
BambooUser user,
@NotNull
BambooRunnables.ThrowingX<E1,E2,E3> runnable)
throws E2 extends java.lang.Throwable,
E1 extends java.lang.Throwable,
E3 extends java.lang.Throwable
- Throws:
E2 extends java.lang.Throwable
Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.