com.atlassian.jira.plugin.viewissue
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimeTrackingViewIssueContextProvider
public TimeTrackingViewIssueContextProvider(JiraAuthenticationContext authenticationContext,
AggregateTimeTrackingCalculatorFactory aggregateTimeTrackingCalculatorFactory,
TimeTrackingGraphBeanFactory timeTrackingGraphBeanFactory)
init
public void init(Map<String,String> params)
throws com.atlassian.plugin.PluginParseException
- Specified by:
init
in interface com.atlassian.plugin.web.ContextProvider
- Throws:
com.atlassian.plugin.PluginParseException
getContextMap
public Map<String,Object> getContextMap(Map<String,Object> context)
- Specified by:
getContextMap
in interface com.atlassian.plugin.web.ContextProvider
getUniqueContextKey
public String getUniqueContextKey(Map<String,Object> context)
- 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 interface CacheableContextProvider
- Parameters:
context
- the context passed into the getContextMap method.
- Returns:
- a key that is unique for the scope that this context
getRequest
protected javax.servlet.http.HttpServletRequest getRequest(Map<String,Object> 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.
Copyright © 2002-2012 Atlassian. All Rights Reserved.