public class PollVoteManagerImpl extends Object implements PollVoteManager
| Constructor and Description |
|---|
PollVoteManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAll(List<Vote> votes) |
void |
deleteVote(Vote vote) |
List<Vote> |
getAllVotesForOption(Option option) |
List<Vote> |
getAllVotesForPoll(Poll poll) |
int |
getDisctinctVotersForPoll(Poll poll) |
Vote |
getVoteById(Long voteId) |
Map<Long,List<Vote>> |
getVotesForUser(String userId,
Long[] pollIds) |
boolean |
isUserAllowedVote(String userId,
Long pollId,
boolean ignoreVoted) |
boolean |
pollIsVotable(Poll poll) |
boolean |
saveVote(Vote vote) |
void |
saveVoteList(List<Vote> votes) |
void |
setDao(PollDao dao) |
void |
setExternalLogic(ExternalLogic externalLogic) |
void |
setPollListManager(PollListManager pollListManaver) |
boolean |
userHasVoted(Long pollId) |
boolean |
userHasVoted(Long pollid,
String userID) |
public void setExternalLogic(ExternalLogic externalLogic)
public void setDao(PollDao dao)
public void setPollListManager(PollListManager pollListManaver)
public void saveVoteList(List<Vote> votes)
saveVoteList in interface PollVoteManagerpublic boolean saveVote(Vote vote)
saveVote in interface PollVoteManagerpublic List<Vote> getAllVotesForPoll(Poll poll)
getAllVotesForPoll in interface PollVoteManagerpublic List<Vote> getAllVotesForOption(Option option)
getAllVotesForOption in interface PollVoteManagerpublic Map<Long,List<Vote>> getVotesForUser(String userId, Long[] pollIds)
getVotesForUser in interface PollVoteManagerpublic int getDisctinctVotersForPoll(Poll poll)
getDisctinctVotersForPoll in interface PollVoteManagerpublic boolean userHasVoted(Long pollid, String userID)
userHasVoted in interface PollVoteManagerpublic boolean userHasVoted(Long pollId)
userHasVoted in interface PollVoteManagerpublic Vote getVoteById(Long voteId)
getVoteById in interface PollVoteManagerpublic boolean isUserAllowedVote(String userId, Long pollId, boolean ignoreVoted)
isUserAllowedVote in interface PollVoteManagerpublic boolean pollIsVotable(Poll poll)
pollIsVotable in interface PollVoteManagerpublic void deleteVote(Vote vote)
deleteVote in interface PollVoteManagerpublic void deleteAll(List<Vote> votes)
deleteAll in interface PollVoteManagerCopyright © 2003–2016 Sakai Project. All rights reserved.