| Package | Description |
|---|---|
| org.sakaiproject.poll.logic | |
| org.sakaiproject.poll.model |
| Modifier and Type | Method and Description |
|---|---|
Poll |
PollListManager.getPoll(String ref)
get a poll by its Entity Reference
|
Poll |
PollListManager.getPollById(Long pollId)
Retrieve a specific poll
|
Poll |
PollListManager.getPollById(Long pollId,
boolean includeOptions)
Retrieve a specific poll
|
Poll |
PollListManager.getPollWithVotes(Long pollId)
Get a specific poll with all its votes
|
| Modifier and Type | Method and Description |
|---|---|
List<Poll> |
PollListManager.findAllPolls(String siteId)
Gets all the task objects for the site
|
List<Poll> |
PollListManager.findAllPollsForUserAndSitesAndPermission(String userId,
String[] siteIds,
String permissionConstant)
Get all the polls for a user in a set of sites (can be one) given the permission,
will return only polls that can be voted on if the permission is
PollListManager.PERMISSION_VOTE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
PollListManager.deletePoll(Poll t)
Delete a poll
|
List<Vote> |
PollVoteManager.getAllVotesForPoll(Poll poll) |
int |
PollVoteManager.getDisctinctVotersForPoll(Poll poll) |
List<Option> |
PollListManager.getOptionsForPoll(Poll poll)
Get all options for a specific poll
|
boolean |
PollListManager.isAllowedViewResults(Poll poll,
String userId)
Can the this user view the results for this poll?
|
boolean |
PollListManager.isPollPublic(Poll poll)
Is this poll public?
|
boolean |
PollVoteManager.pollIsVotable(Poll poll)
Is the current user able to vote on this poll?
|
boolean |
PollListManager.savePoll(Poll t)
Save a poll
|
| Modifier and Type | Method and Description |
|---|---|
static Poll |
Poll.fromXML(Element element) |
| Constructor and Description |
|---|
Vote(Poll poll,
Option option,
String subId) |
Copyright © 2003–2014 Sakai Project. All rights reserved.