public class

ViewVoters

extends AbstractIssueSelectAction
java.lang.Object
   ↳ webwork.action.ActionSupport
     ↳ com.atlassian.jira.action.JiraActionSupport
       ↳ com.atlassian.jira.web.action.JiraWebActionSupport
         ↳ com.atlassian.jira.web.action.ProjectActionSupport
           ↳ com.atlassian.jira.web.action.IssueActionSupport
             ↳ com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
               ↳ com.atlassian.jira.web.action.issue.ViewVoters

Summary

Nested Classes
class ViewVoters.SimpleVoteHistory  
[Expand]
Inherited Constants
From class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
From class com.atlassian.jira.web.action.JiraWebActionSupport
From interface webwork.action.Action
[Expand]
Inherited Fields
From class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
From class com.atlassian.jira.web.action.IssueActionSupport
From class com.atlassian.jira.web.action.ProjectActionSupport
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
Public Constructors
ViewVoters(VoteManager voteManager, VoteService voteService, PermissionManager permissionManager, TimeZoneManager timeZoneManager)
Public Methods
String doAddVote()
String doDefault()
String doRemoveVote()
Remove the current users vote for this issue
String getCommaSeperatedDateParts(Date date)
ViewVoters.SimpleVoteHistory getVoteHistory()
Collection<UserBean> getVoters()
boolean isCanAddVote()
boolean isCanRemoveVote()
boolean isIssueReportedByMe()
boolean isVotedAlready()
Determine whether the current user has voted already or not
boolean isVotingEnabled()
[Expand]
Inherited Methods
From class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
From class com.atlassian.jira.web.action.IssueActionSupport
From class com.atlassian.jira.web.action.ProjectActionSupport
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
From class java.lang.Object
From interface com.atlassian.jira.util.ErrorCollection
From interface com.atlassian.jira.util.I18nHelper
From interface com.atlassian.jira.web.HttpServletVariables
From interface com.atlassian.jira.web.action.issue.IssueSummaryAware
From interface com.atlassian.jira.web.util.AuthorizationSupport
From interface webwork.action.Action
From interface webwork.action.CommandDriven
From interface webwork.action.IllegalArgumentAware

Public Constructors

public ViewVoters (VoteManager voteManager, VoteService voteService, PermissionManager permissionManager, TimeZoneManager timeZoneManager)

Public Methods

public String doAddVote ()

Throws
GenericEntityException

public String doDefault ()

Throws
Exception

public String doRemoveVote ()

Remove the current users vote for this issue

Returns
  • The name of the view to be rendered. ERROR is returned if the issue could not be found or if the user does not have permission to see the issue.
Throws
GenericEntityException

public String getCommaSeperatedDateParts (Date date)

public ViewVoters.SimpleVoteHistory getVoteHistory ()

public Collection<UserBean> getVoters ()

public boolean isCanAddVote ()

public boolean isCanRemoveVote ()

public boolean isIssueReportedByMe ()

public boolean isVotedAlready ()

Determine whether the current user has voted already or not

Returns
  • true if current user has already voted, false otherwise

public boolean isVotingEnabled ()