Class TimeTrackingViewIssueContextProvider
java.lang.Object
com.atlassian.jira.plugin.viewissue.TimeTrackingViewIssueContextProvider
- All Implemented Interfaces:
CacheableContextProvider
,com.atlassian.plugin.web.ContextProvider
public class TimeTrackingViewIssueContextProvider
extends Object
implements CacheableContextProvider
Context Provider for the Time Tracking Web Panel.
- Since:
- v4.4
-
Constructor Summary
ConstructorDescriptionTimeTrackingViewIssueContextProvider
(JiraAuthenticationContext authenticationContext, AggregateTimeTrackingCalculatorFactory aggregateTimeTrackingCalculatorFactory, TimeTrackingGraphBeanFactory timeTrackingGraphBeanFactory) -
Method Summary
Modifier and TypeMethodDescriptiongetContextMap
(Map<String, Object> context) protected javax.servlet.http.HttpServletRequest
getRequest
(Map<String, Object> context) Method that retrieves the HttpServletRequest by the numerous methods that JIRA uses.getUniqueContextKey
(Map<String, Object> context) Return a key that is unique for the scope that this context should be scoped.void
-
Constructor Details
-
TimeTrackingViewIssueContextProvider
public TimeTrackingViewIssueContextProvider(JiraAuthenticationContext authenticationContext, AggregateTimeTrackingCalculatorFactory aggregateTimeTrackingCalculatorFactory, TimeTrackingGraphBeanFactory timeTrackingGraphBeanFactory)
-
-
Method Details
-
init
- Specified by:
init
in interfacecom.atlassian.plugin.web.ContextProvider
- Throws:
com.atlassian.plugin.PluginParseException
-
getContextMap
- Specified by:
getContextMap
in interfacecom.atlassian.plugin.web.ContextProvider
-
getUniqueContextKey
Description copied from interface:CacheableContextProvider
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"- Specified by:
getUniqueContextKey
in interfaceCacheableContextProvider
- Parameters:
context
- the context passed into the getContextMap method.- Returns:
- a key that is unique for the scope that this context
-
getRequest
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.
-