public class

HasVotedForIssueCondition

extends AbstractIssueCondition
java.lang.Object
   ↳ com.atlassian.jira.plugin.webfragment.conditions.AbstractJiraCondition
     ↳ com.atlassian.jira.plugin.webfragment.conditions.AbstractIssueCondition
       ↳ com.atlassian.jira.plugin.webfragment.conditions.HasVotedForIssueCondition

Class Overview

Condition to check whether the current user has voted for the current issue

An issue must be in the JiraHelper context params.

Summary

Public Constructors
HasVotedForIssueCondition(VoteManager voteManager)
Public Methods
boolean shouldDisplay(User user, Issue issue, JiraHelper jiraHelper)
Should we display this item for this issue?
[Expand]
Inherited Methods
From class com.atlassian.jira.plugin.webfragment.conditions.AbstractIssueCondition
From class com.atlassian.jira.plugin.webfragment.conditions.AbstractJiraCondition
From class java.lang.Object
From interface com.atlassian.plugin.web.Condition

Public Constructors

public HasVotedForIssueCondition (VoteManager voteManager)

Public Methods

public boolean shouldDisplay (User 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