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

java.lang.Object
  extended by com.atlassian.jira.plugin.webfragment.conditions.AbstractWebCondition
      extended by com.atlassian.jira.plugin.webfragment.conditions.AbstractIssueWebCondition
All Implemented Interfaces:
com.atlassian.plugin.web.baseconditions.BaseCondition, com.atlassian.plugin.web.Condition
Direct Known Subclasses:
IsIssueAssignedToCurrentUserCondition

@PublicSpi
public abstract class AbstractIssueWebCondition
extends AbstractWebCondition

Convenient abstraction for Conditions that are aware of JIRA's authentication and project- or issue-related contexts. These can be used in action configurations to guard conditionally displayed content.

An issue must be in the JiraHelper context params.

Since:
v6.0

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

Constructor Detail

AbstractIssueWebCondition

public AbstractIssueWebCondition()
Method Detail

shouldDisplay

public boolean shouldDisplay(ApplicationUser user,
                             JiraHelper jiraHelper)
Specified by:
shouldDisplay in class AbstractWebCondition

shouldDisplay

public abstract boolean shouldDisplay(ApplicationUser user,
                                      Issue issue,
                                      JiraHelper jiraHelper)
Should we display this item for this issue?

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-2014 Atlassian. All Rights Reserved.