com.atlassian.jira.issue.fields.rest.json.beans
Class VotesJsonBean

java.lang.Object
  extended by com.atlassian.jira.issue.fields.rest.json.beans.VotesJsonBean

public class VotesJsonBean
extends Object

Since:
v5.0

Constructor Summary
VotesJsonBean()
           
 
Method Summary
static VotesJsonBean fullBean(String issueKey, long votes, boolean hasVoted, Collection<com.atlassian.crowd.embedded.api.User> voters, JiraBaseUrls urls)
           
 String getSelf()
           
 Collection<UserJsonBean> getVoters()
           
 long getVotes()
           
 boolean isHasVoted()
           
 void setHasVoted(boolean hasVoted)
           
 void setSelf(String self)
           
 void setVoters(Collection<UserJsonBean> voters)
           
 void setVotes(long votes)
           
static VotesJsonBean shortBean(String issueKey, long votes, boolean hasVoted, JiraBaseUrls urls)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VotesJsonBean

public VotesJsonBean()
Method Detail

getSelf

public String getSelf()

setSelf

public void setSelf(String self)

getVotes

public long getVotes()

setVotes

public void setVotes(long votes)

isHasVoted

public boolean isHasVoted()

setHasVoted

public void setHasVoted(boolean hasVoted)

getVoters

public Collection<UserJsonBean> getVoters()

setVoters

public void setVoters(Collection<UserJsonBean> voters)

shortBean

public static VotesJsonBean shortBean(String issueKey,
                                      long votes,
                                      boolean hasVoted,
                                      JiraBaseUrls urls)
Returns:
null if the input is null

fullBean

public static VotesJsonBean fullBean(String issueKey,
                                     long votes,
                                     boolean hasVoted,
                                     Collection<com.atlassian.crowd.embedded.api.User> voters,
                                     JiraBaseUrls urls)
Returns:
null if the input is null


Copyright © 2002-2013 Atlassian. All Rights Reserved.