com.atlassian.jira.issue.vote.VoteManager |
Known Indirect Subclasses |
Clients of @PublicApi
can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi
as per each product's API policy as long as the client does not implement/extend
@PublicApi
interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi
interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi
are safe to extend/implement).
The vote manager is responsible for counting issue votes.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a new vote for the user and issue specified.
| |||||||||||
This method is deprecated.
Use
addVote(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue) instead. Since v6.0.
| |||||||||||
Return the number of users that have voted for the given issue.
| |||||||||||
Get the list of vote history for an issue.
| |||||||||||
Return a collection of userkeys of users that voted for given issue
| |||||||||||
This method is deprecated.
Use
getVoterUsernames(com.atlassian.jira.issue.Issue) instead. Since v6.0.
| |||||||||||
This method is deprecated.
Use
getVoterUserkeys(com.atlassian.jira.issue.Issue) instead. Since v6.0.
| |||||||||||
This method is deprecated.
Use
getVotersFor(com.atlassian.jira.issue.Issue, java.util.Locale) instead. Since v6.0.
| |||||||||||
Returns an ordered list of voters for a particular issue.
| |||||||||||
This method is deprecated.
Use
hasVoted(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue) instead. Since v6.0.
| |||||||||||
Checks if the given User has voted on the given Issue.
| |||||||||||
Retrieves the 'jira.option.voting' property
| |||||||||||
This method is deprecated.
Use
removeVote(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue) instead. Since v6.0.
| |||||||||||
Removes a vote for the user and issue specified.
| |||||||||||
Removes all votes made by user.
|
Adds a new vote for the user and issue specified.
user | the User |
---|---|
issue | the Issue |
This method is deprecated.
Use addVote(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue)
instead. Since v6.0.
Adds a new vote for the user and issue specified.
user | the User |
---|---|
issue | the Issue |
Return the number of users that have voted for the given issue.
issue | issue voted for |
---|
Get the list of vote history for an issue. The history will be in time sequence.
issue | the issue to view |
---|
Return a collection of userkeys of users that voted for given issue
issue | issue voted for |
---|
This method is deprecated.
Use getVoterUsernames(com.atlassian.jira.issue.Issue)
instead. Since v6.0.
Return a collection of usernames of users that voted for given issue
issue | issue voted for |
---|
This method is deprecated.
Use getVoterUserkeys(com.atlassian.jira.issue.Issue)
instead. Since v6.0.
Return a collection of usernames of users that voted for the given issue.
issue | the Issue |
---|
This method is deprecated.
Use getVotersFor(com.atlassian.jira.issue.Issue, java.util.Locale)
instead. Since v6.0.
Returns an ordered list of voters for a particular issue.
issue | the Issue |
---|---|
usersLocale | the locale of the user making this call which is used to sort the results. |
Returns an ordered list of voters for a particular issue.
issue | the Issue |
---|---|
usersLocale | the locale of the user making this call which is used to sort the results. |
This method is deprecated.
Use hasVoted(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue)
instead. Since v6.0.
Checks if the given User has voted on the given Issue. the user supplied.
user | the User |
---|---|
issue | the Issue |
Checks if the given User has voted on the given Issue.
user | the User |
---|---|
issue | the Issue |
Retrieves the 'jira.option.voting' property
This method is deprecated.
Use removeVote(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue)
instead. Since v6.0.
Removes a vote for the user and issue specified.
user | the User |
---|---|
issue | the Issue |
Removes a vote for the user and issue specified.
user | the User |
---|---|
issue | the Issue |
Removes all votes made by user. Usually means user is being deleted.
user | user to remove vote associations for. |
---|