public class

TimeTrackingViewIssueContextProvider

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

Class Overview

Context Provider for the Time Tracking Web Panel.

Summary

Public Constructors
TimeTrackingViewIssueContextProvider(JiraAuthenticationContext authenticationContext, AggregateTimeTrackingCalculatorFactory aggregateTimeTrackingCalculatorFactory, TimeTrackingGraphBeanFactory timeTrackingGraphBeanFactory)
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)
Protected Methods
HttpServletRequest getRequest(Map<StringObject> context)
Method that retrieves the HttpServletRequest by the numerous methods that JIRA uses.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.plugin.webfragment.CacheableContextProvider
From interface com.atlassian.plugin.web.ContextProvider

Public Constructors

public TimeTrackingViewIssueContextProvider (JiraAuthenticationContext authenticationContext, AggregateTimeTrackingCalculatorFactory aggregateTimeTrackingCalculatorFactory, TimeTrackingGraphBeanFactory timeTrackingGraphBeanFactory)

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)

Protected Methods

protected HttpServletRequest getRequest (Map<StringObject> context)

Method that retrieves the HttpServletRequest by the numerous methods that JIRA uses. It tries to get it from: the context passed in (jirahelper or request), then from ExecutingHttpRequest, and then from the ActionContext

Parameters
context the context passed into the getContextMap method.
Returns
  • the current request.