com.atlassian.sal.bamboo.executor
Class BambooThreadLocalContextManager

java.lang.Object
  extended by com.atlassian.sal.bamboo.executor.BambooThreadLocalContextManager
All Implemented Interfaces:
com.atlassian.sal.api.executor.ThreadLocalContextManager<org.acegisecurity.context.SecurityContext>

public class BambooThreadLocalContextManager
extends Object
implements com.atlassian.sal.api.executor.ThreadLocalContextManager<org.acegisecurity.context.SecurityContext>


Constructor Summary
BambooThreadLocalContextManager()
           
 
Method Summary
 void clearThreadLocalContext()
          Clear the thread local context on the current thread
 org.acegisecurity.context.SecurityContext getThreadLocalContext()
          Get the thread local context of the current thread
 void setThreadLocalContext(org.acegisecurity.context.SecurityContext context)
          Set the thread local context on the current thread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BambooThreadLocalContextManager

public BambooThreadLocalContextManager()
Method Detail

getThreadLocalContext

public org.acegisecurity.context.SecurityContext getThreadLocalContext()
Get the thread local context of the current thread

Specified by:
getThreadLocalContext in interface com.atlassian.sal.api.executor.ThreadLocalContextManager<org.acegisecurity.context.SecurityContext>
Returns:
The thread local context

setThreadLocalContext

public void setThreadLocalContext(org.acegisecurity.context.SecurityContext context)
Set the thread local context on the current thread

Specified by:
setThreadLocalContext in interface com.atlassian.sal.api.executor.ThreadLocalContextManager<org.acegisecurity.context.SecurityContext>
Parameters:
context - The context to set

clearThreadLocalContext

public void clearThreadLocalContext()
Clear the thread local context on the current thread

Specified by:
clearThreadLocalContext in interface com.atlassian.sal.api.executor.ThreadLocalContextManager<org.acegisecurity.context.SecurityContext>


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.