com.atlassian.jira.plugin.viewissue
Class HasSubTaskCondition

java.lang.Object
  extended by com.atlassian.jira.plugin.viewissue.HasSubTaskCondition
All Implemented Interfaces:
com.atlassian.plugin.web.Condition

public class HasSubTaskCondition
extends Object
implements com.atlassian.plugin.web.Condition

Condition to test whether an issue has subtasks

Since:
v4.4

Constructor Summary
HasSubTaskCondition(SubTaskManager subTaskManager, JiraAuthenticationContext authenticationContext)
           
 
Method Summary
protected  javax.servlet.http.HttpServletRequest getRequest(Map<String,Object> context)
          Method that retrieves the HttpServletRequest by the numerous methods that JIRA uses.
 void init(Map<String,String> params)
           
 boolean shouldDisplay(Map<String,Object> context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HasSubTaskCondition

public HasSubTaskCondition(SubTaskManager subTaskManager,
                           JiraAuthenticationContext authenticationContext)
Method Detail

init

public void init(Map<String,String> params)
          throws com.atlassian.plugin.PluginParseException
Specified by:
init in interface com.atlassian.plugin.web.Condition
Throws:
com.atlassian.plugin.PluginParseException

shouldDisplay

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

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.