com.atlassian.jira.issue.vote
Class DefaultVoteManager

java.lang.Object
  extended bycom.atlassian.jira.issue.vote.DefaultVoteManager
All Implemented Interfaces:
VoteManager

public class DefaultVoteManager
extends Object
implements VoteManager


Constructor Summary
DefaultVoteManager(ApplicationProperties applicationProperties, com.atlassian.core.ofbiz.association.AssociationManager associationManager, CacheManager cacheManager, IssueIndexManager indexManager)
           
 
Method Summary
 boolean addVote(User user, org.ofbiz.core.entity.GenericValue issue)
           
 Collection getVoters(org.ofbiz.core.entity.GenericValue issue)
           
 boolean hasVoted(User user, org.ofbiz.core.entity.GenericValue issue)
           
 boolean isVotingEnabled()
           
 boolean removeVote(User user, org.ofbiz.core.entity.GenericValue issue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultVoteManager

public DefaultVoteManager(ApplicationProperties applicationProperties,
                          com.atlassian.core.ofbiz.association.AssociationManager associationManager,
                          CacheManager cacheManager,
                          IssueIndexManager indexManager)
Method Detail

addVote

public boolean addVote(User user,
                       org.ofbiz.core.entity.GenericValue issue)
Specified by:
addVote in interface VoteManager

removeVote

public boolean removeVote(User user,
                          org.ofbiz.core.entity.GenericValue issue)
Specified by:
removeVote in interface VoteManager

getVoters

public Collection getVoters(org.ofbiz.core.entity.GenericValue issue)
Specified by:
getVoters in interface VoteManager

isVotingEnabled

public boolean isVotingEnabled()
Specified by:
isVotingEnabled in interface VoteManager

hasVoted

public boolean hasVoted(User user,
                        org.ofbiz.core.entity.GenericValue issue)
Specified by:
hasVoted in interface VoteManager


Copyright © 2002-2006 Atlassian. All Rights Reserved.