Class SubTasksContextProvider
java.lang.Object
com.atlassian.jira.plugin.viewissue.subtasks.SubTasksContextProvider
- All Implemented Interfaces:
CacheableContextProvider
,com.atlassian.plugin.web.ContextProvider
Context Provider for the subtask section on view issue. Is Cacheable.
- Since:
- v4.4
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSubTasksContextProvider
(SubTaskManager subTaskManager, JiraAuthenticationContext authenticationContext, VelocityRequestContextFactory velocityRequestContextFactory, AggregateTimeTrackingCalculatorFactory aggregateTimeTrackingCalculatorFactory) -
Method Summary
Modifier and TypeMethodDescriptiongetContextMap
(Map<String, Object> context) protected javax.servlet.http.HttpServletRequest
getUniqueContextKey
(Map<String, Object> context) Return a key that is unique for the scope that this context should be scoped.void
-
Constructor Details
-
SubTasksContextProvider
public SubTasksContextProvider(SubTaskManager subTaskManager, JiraAuthenticationContext authenticationContext, VelocityRequestContextFactory velocityRequestContextFactory, AggregateTimeTrackingCalculatorFactory aggregateTimeTrackingCalculatorFactory)
-
-
Method Details
-
init
- Specified by:
init
in interfacecom.atlassian.plugin.web.ContextProvider
- Throws:
com.atlassian.plugin.PluginParseException
-
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
-
getContextMap
- Specified by:
getContextMap
in interfacecom.atlassian.plugin.web.ContextProvider
-
getRequest
protected javax.servlet.http.HttpServletRequest getRequest()
-