public class

JiraThreadLocalContextManager

extends Object
implements ThreadLocalContextManager<C>
java.lang.Object
   ↳ com.atlassian.sal.jira.executor.JiraThreadLocalContextManager

Class Overview

Manages the thread local state for JIRA

Summary

Public Constructors
JiraThreadLocalContextManager(JiraAuthenticationContext authenticationContext, VelocityRequestContextFactory velocityRequestContextFactory, JiraTenantContext tenantContext)
Public Methods
void clearThreadLocalContext()
Clear the thread local context on the current thread
JiraThreadLocalContextManager.JiraThreadLocalContext getThreadLocalContext()
Get the thread local context of the current thread
void setThreadLocalContext(JiraThreadLocalContextManager.JiraThreadLocalContext context)
Set the thread local context on the current thread
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.sal.api.executor.ThreadLocalContextManager

Public Constructors

public JiraThreadLocalContextManager (JiraAuthenticationContext authenticationContext, VelocityRequestContextFactory velocityRequestContextFactory, JiraTenantContext tenantContext)

Public Methods

public void clearThreadLocalContext ()

Clear the thread local context on the current thread

public JiraThreadLocalContextManager.JiraThreadLocalContext getThreadLocalContext ()

Get the thread local context of the current thread

Returns
  • The thread local context

public void setThreadLocalContext (JiraThreadLocalContextManager.JiraThreadLocalContext context)

Set the thread local context on the current thread

Parameters
context The context to set