java.lang.Object | |
↳ | com.atlassian.jira.bc.issue.vote.DefaultVoteService |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a new vote using the specified validation result.
| |||||||||||
Get the list of vote history for an issue.
| |||||||||||
Find if the specified user has voted on an issue
| |||||||||||
Retrieves the 'jira.option.voting' property
| |||||||||||
Removes a new vote using the specified validation result.
| |||||||||||
Validates if the user currently logged in may add a vote by the user supplied for the issue provided.
| |||||||||||
Validates if the user currently logged in may remove a vote for the user supplied for the issue provided.
| |||||||||||
Get the list of all users who have voted on an issue.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.bc.issue.vote.VoteService
|
Adds a new vote using the specified validation result. The vote will not be added if the user already voted for the issue.
remoteUser | The currently logged in user |
---|---|
validationResult | Validation result for adding a new vote |
Get the list of vote history for an issue. The history will be in time sequence.
issue | the issue to view |
---|---|
remoteUser | the user who wants to know |
Find if the specified user has voted on an issue
issue | the issue to check |
---|---|
user | the user to check |
Retrieves the 'jira.option.voting' property
Removes a new vote using the specified validation result. The vote will not be removed if the user didn't voted for the issue.
remoteUser | The currently logged in user |
---|---|
validationResult | Validation result for removing a new vote |
Validates if the user currently logged in may add a vote by the user supplied for the issue provided.
The remoteUser and user arguments may be the same if the current user is voting him/herself. The
VoteService.VoteValidationResult
produced by this method should be
used in conjunction with the addVote(ApplicationUser, VoteValidationResult)
method.
The following conditions will fail validation:
remoteUser | The currently logged in user |
---|---|
voter | The user for whom a vote is being added |
issue | The issue being voted on |
Validates if the user currently logged in may remove a vote for the user supplied for the issue provided.
The remoteUser and user arguments may be the same if the current user is voting him/herself. The
VoteService.VoteValidationResult
produced by this method should be
used in conjunction with the removeVote(ApplicationUser, VoteValidationResult)
method.
The following conditions will fail validation:
remoteUser | The currently logged in user |
---|---|
voter | The user for whom a vote is being removed |
issue | The issue being voted on |
Get the list of all users who have voted on an issue.
issue | the issue to view |
---|---|
remoteUser | the user who wants to know |