com.atlassian.jira.plugin.webfragment.conditions
Class CanConvertToSubTaskCondition
java.lang.Object
com.atlassian.jira.plugin.webfragment.conditions.AbstractJiraCondition
com.atlassian.jira.plugin.webfragment.conditions.AbstractIssueCondition
com.atlassian.jira.plugin.webfragment.conditions.CanConvertToSubTaskCondition
- All Implemented Interfaces:
- com.atlassian.plugin.web.Condition
public class CanConvertToSubTaskCondition
- extends AbstractIssueCondition
Condition that determines whether the current user can convert the current issue to a sub task.
An issue must be in the JiraHelper context params.
- Since:
- v4.1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CanConvertToSubTaskCondition
public CanConvertToSubTaskCondition(IssueToSubTaskConversionService conversionService)
shouldDisplay
public boolean shouldDisplay(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 userissue
- The issue we are displaying againstjiraHelper
- The JiraHelper
- Returns:
- true if we should display this item, false otherwise
Copyright © 2002-2011 Atlassian. All Rights Reserved.