public class

ActivityBlockViewIssueContextProvider

extends Object
implements CacheableContextProvider
java.lang.Object
   ↳ com.atlassian.jira.plugin.viewissue.ActivityBlockViewIssueContextProvider

Class Overview

Context Provider for the Activity block section on View Issue page. Expensive one so it cached per request/per user/per issue

Summary

Fields
protected final Logger log
Public Constructors
ActivityBlockViewIssueContextProvider(PluginAccessor pluginAccessor, JiraAuthenticationContext authenticationContext, VelocityRequestContextFactory requestContextFactory, ApplicationProperties applicationProperties, IssueTabPanelInvoker issueTabPanelInvoker)
Public Methods
Map<StringObject> getContextMap(Map<StringObject> context)
String getUniqueContextKey(Map<StringObject> context)
Return a key that is unique for the scope that this context should be scoped.
void init(Map<StringString> params)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.plugin.webfragment.CacheableContextProvider
From interface com.atlassian.plugin.web.ContextProvider

Fields

protected final Logger log

Public Constructors

public ActivityBlockViewIssueContextProvider (PluginAccessor pluginAccessor, JiraAuthenticationContext authenticationContext, VelocityRequestContextFactory requestContextFactory, ApplicationProperties applicationProperties, IssueTabPanelInvoker issueTabPanelInvoker)

Public Methods

public Map<StringObject> getContextMap (Map<StringObject> context)

public String getUniqueContextKey (Map<StringObject> context)

Return a key that is unique for the scope that this context should be scoped. E.g. If the context is unique per issue, per user return "JRA-11234:nmenere"

Parameters
context the context passed into the getContextMap method.
Returns
  • a key that is unique for the scope that this context

public void init (Map<StringString> params)