com.atlassian.jira.plugin.webfragment.conditions
Class HasVotedForIssueCondition
java.lang.Object
com.atlassian.jira.plugin.webfragment.conditions.AbstractJiraCondition
com.atlassian.jira.plugin.webfragment.conditions.AbstractIssueCondition
com.atlassian.jira.plugin.webfragment.conditions.HasVotedForIssueCondition
- All Implemented Interfaces:
- com.atlassian.plugin.web.Condition
public class HasVotedForIssueCondition
- extends AbstractIssueCondition
Condition to check whether the current user has voted for the current issue
An issue must be in the JiraHelper context params.
- Since:
- v4.1
Method Summary |
boolean |
shouldDisplay(com.atlassian.crowd.embedded.api.User user,
Issue issue,
JiraHelper jiraHelper)
Should we display this item for this issue? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HasVotedForIssueCondition
public HasVotedForIssueCondition(VoteManager voteManager)
shouldDisplay
public boolean shouldDisplay(com.atlassian.crowd.embedded.api.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-2013 Atlassian. All Rights Reserved.