| Package | Description |
|---|---|
| org.exoplatform.poll.service |
Provides classes necessary to manage processes related to Poll.
|
| org.exoplatform.poll.service.impl |
| Modifier and Type | Method and Description |
|---|---|
static Poll |
Utils.calculateVote(Poll poll,
String userId,
String voteOptions)
Calculate data of poll when user Voted.
|
Poll |
PollService.getPoll(String pollId)
Gets a poll by its Id.
|
Poll |
DataStorage.getPoll(String pollId) |
Poll |
PollService.removePoll(String pollId)
Removes a poll.
|
Poll |
DataStorage.removePoll(String pollId) |
| Modifier and Type | Method and Description |
|---|---|
List<Poll> |
PollService.getPagePoll()
Gets a list of polls.
|
List<Poll> |
DataStorage.getPagePoll() |
| Modifier and Type | Method and Description |
|---|---|
static Poll |
Utils.calculateVote(Poll poll,
String userId,
String voteOptions)
Calculate data of poll when user Voted.
|
abstract void |
PollEventListener.closePoll(Poll poll) |
void |
PollEventLifeCycle.closePoll(Poll poll)
This will be call after close poll
|
static String |
Utils.getCurrentUserVote(Poll poll) |
static String |
Utils.getInfoVote(Poll poll)
Get a string from infoVote of poll
|
static String |
Utils.getUserVote(Poll poll,
String userName)
Convert userVote of poll to s string
|
void |
PollService.savePoll(Poll poll,
boolean isNew,
boolean isVote)
Saves a poll.
|
abstract void |
PollEventListener.savePoll(Poll poll,
boolean isNew,
boolean isVote) |
void |
PollEventLifeCycle.savePoll(Poll poll,
boolean isNew,
boolean isVote)
This will be call after save poll
|
void |
DataStorage.savePoll(Poll poll,
boolean isNew,
boolean isVote) |
void |
PollService.setClosedPoll(Poll poll)
Sets a poll to "closed".
|
void |
DataStorage.setClosedPoll(Poll poll) |
| Modifier and Type | Method and Description |
|---|---|
Poll |
PollServiceImpl.getPoll(String pollId) |
Poll |
JCRDataStorage.getPoll(String pollId) |
Poll |
PollServiceImpl.removePoll(String pollId) |
Poll |
JCRDataStorage.removePoll(String pollId) |
| Modifier and Type | Method and Description |
|---|---|
List<Poll> |
PollServiceImpl.getPagePoll() |
List<Poll> |
JCRDataStorage.getPagePoll() |
| Modifier and Type | Method and Description |
|---|---|
void |
PollServiceImpl.savePoll(Poll poll,
boolean isNew,
boolean isVote) |
void |
JCRDataStorage.savePoll(Poll poll,
boolean isNew,
boolean isVote) |
void |
PollServiceImpl.setClosedPoll(Poll poll) |
void |
JCRDataStorage.setClosedPoll(Poll poll) |
Copyright © 2003–2016 eXo Platform SAS. All rights reserved.