com.atlassian.jira.plugin.webfragment.conditions
Class AbstractIssueWebCondition
java.lang.Object
com.atlassian.jira.plugin.webfragment.conditions.AbstractWebCondition
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 Condition
s 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractIssueWebCondition
public AbstractIssueWebCondition()
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 userissue
- The issue we are displaying againstjiraHelper
- The JiraHelper
- Returns:
- true if we should display this item, false otherwise
Copyright © 2002-2014 Atlassian. All Rights Reserved.