com.atlassian.jira.plugin.viewissue
Class SubTasksContxtProvider

java.lang.Object
  extended by com.atlassian.jira.plugin.viewissue.SubTasksContxtProvider
All Implemented Interfaces:
CacheableContextProvider, com.atlassian.plugin.web.ContextProvider

public class SubTasksContxtProvider
extends Object
implements CacheableContextProvider

Context Provider for the subtask section on view issue. Is Cacheable.

Since:
v4.4

Nested Class Summary
 class SubTasksContxtProvider.SubTaskTableRenderer
           
 
Constructor Summary
SubTasksContxtProvider(SubTaskManager subTaskManager, JiraAuthenticationContext authenticationContext, ApplicationProperties applicationProperties, FieldManager fieldManager, PermissionManager permissionManager, IssueManager issueManager, IssueFactory issueFactory, com.atlassian.velocity.VelocityManager velocityManager, SubTaskQuickCreationConfig subTaskQuickCreationConfig, VelocityRequestContextFactory velocityRequestContextFactory, AggregateTimeTrackingCalculatorFactory aggregateTimeTrackingCalculatorFactory)
           
 
Method Summary
 Map<String,Object> getContextMap(Map<String,Object> context)
           
protected  javax.servlet.http.HttpServletRequest getRequest(Map<String,Object> context)
           
 String getUniqueContextKey(Map<String,Object> context)
          Return a key that is unique for the scope that this context should be scoped.
 void init(Map<String,String> params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubTasksContxtProvider

public SubTasksContxtProvider(SubTaskManager subTaskManager,
                              JiraAuthenticationContext authenticationContext,
                              ApplicationProperties applicationProperties,
                              FieldManager fieldManager,
                              PermissionManager permissionManager,
                              IssueManager issueManager,
                              IssueFactory issueFactory,
                              com.atlassian.velocity.VelocityManager velocityManager,
                              SubTaskQuickCreationConfig subTaskQuickCreationConfig,
                              VelocityRequestContextFactory velocityRequestContextFactory,
                              AggregateTimeTrackingCalculatorFactory aggregateTimeTrackingCalculatorFactory)
Method Detail

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

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

getContextMap

public Map<String,Object> getContextMap(Map<String,Object> context)
Specified by:
getContextMap in interface com.atlassian.plugin.web.ContextProvider

getRequest

protected javax.servlet.http.HttpServletRequest getRequest(Map<String,Object> context)


Copyright © 2002-2012 Atlassian. All Rights Reserved.