com.atlassian.jira.plugin.webfragment.conditions
Class CanConvertToIssueCondition

java.lang.Object
  extended by com.atlassian.jira.plugin.webfragment.conditions.AbstractJiraCondition
      extended by com.atlassian.jira.plugin.webfragment.conditions.AbstractIssueCondition
          extended by com.atlassian.jira.plugin.webfragment.conditions.CanConvertToIssueCondition
All Implemented Interfaces:
com.atlassian.plugin.web.Condition

public class CanConvertToIssueCondition
extends AbstractIssueCondition

Condition that determines whether the current user can convert the current subtask to an issue.

An issue must be in the JiraHelper context params.

Since:
v4.1

Constructor Summary
CanConvertToIssueCondition(SubTaskToIssueConversionService conversionService)
           
 
Method Summary
 boolean shouldDisplay(com.opensymphony.user.User user, Issue issue, JiraHelper jiraHelper)
          Should we display this item for this issue?
 
Methods inherited from class com.atlassian.jira.plugin.webfragment.conditions.AbstractIssueCondition
shouldDisplay
 
Methods inherited from class com.atlassian.jira.plugin.webfragment.conditions.AbstractJiraCondition
init, shouldDisplay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CanConvertToIssueCondition

public CanConvertToIssueCondition(SubTaskToIssueConversionService conversionService)
Method Detail

shouldDisplay

public boolean shouldDisplay(com.opensymphony.user.User user,
                             Issue issue,
                             JiraHelper jiraHelper)
Description copied from class: AbstractIssueCondition
Should we display this item for this issue?

Specified by:
shouldDisplay in class AbstractIssueCondition
Parameters:
user - The current user
issue - The issue we are displaying against
jiraHelper - The JiraHelper
Returns:
true if we should display this item, false otherwise


Copyright © 2002-2010 Atlassian. All Rights Reserved.