Package | Description |
---|---|
org.nuxeo.ecm.poll |
Modifier and Type | Class and Description |
---|---|
class |
PollAdapter
Default implementation of
Poll . |
Modifier and Type | Method and Description |
---|---|
Poll |
PollServiceImpl.closePoll(Poll poll) |
Poll |
PollService.closePoll(Poll poll)
Close the
poll . |
Poll |
PollServiceImpl.openPoll(Poll poll) |
Poll |
PollService.openPoll(Poll poll)
Open the
poll . |
Poll |
PollActions.toPoll(DocumentModel poll) |
static Poll |
PollHelper.toPoll(DocumentModel pollDocument)
Returns a
Poll object from the given pollDocument . |
Poll |
PollServiceImpl.updatePollStatus(Poll poll,
Date date) |
Poll |
PollService.updatePollStatus(Poll poll,
Date date)
Update the status of the
poll according to the given
date . |
Modifier and Type | Method and Description |
---|---|
List<Poll> |
PollServiceImpl.getOpenPolls(CoreSession session) |
List<Poll> |
PollService.getOpenPolls(CoreSession session)
Returns all open polls available with the given
session . |
List<Poll> |
PollServiceImpl.getUnansweredOpenPolls(CoreSession session) |
List<Poll> |
PollService.getUnansweredOpenPolls(CoreSession session)
Returns all unanswered open polls available with the given
session . |
Modifier and Type | Method and Description |
---|---|
void |
PollServiceImpl.answer(String username,
Poll poll,
int answerIndex) |
void |
PollService.answer(String username,
Poll poll,
int answerIndex)
Store that the user with the given @{code username} has answered the
poll with the answer number answerIndex . |
Poll |
PollServiceImpl.closePoll(Poll poll) |
Poll |
PollService.closePoll(Poll poll)
Close the
poll . |
PollResult |
PollServiceImpl.getResultFor(Poll poll) |
PollResult |
PollService.getResultFor(Poll poll)
Returns the current
PollResult for the given poll . |
boolean |
PollServiceImpl.hasUserAnswered(String username,
Poll poll) |
boolean |
PollService.hasUserAnswered(String username,
Poll poll)
Returns
true if the user with the given username has
already answer the poll , false otherwise . |
Poll |
PollServiceImpl.openPoll(Poll poll) |
Poll |
PollService.openPoll(Poll poll)
Open the
poll . |
static net.sf.json.JSONObject |
PollHelper.toJSON(Poll poll)
Returns a JSONObject for the given unanswered
poll . |
static net.sf.json.JSONObject |
PollHelper.toJSON(Poll poll,
boolean answered)
Returns a JSONObject for the given
poll . |
static net.sf.json.JSONObject |
PollHelper.toJSON(Poll poll,
PollResult pollResult)
Returns a JSONObject for the given unanswered
poll and
pollResult . |
static net.sf.json.JSONObject |
PollHelper.toJSON(Poll poll,
PollResult pollResult,
boolean answered)
Returns a JSONObject for the given
poll and
pollResult . |
Poll |
PollServiceImpl.updatePollStatus(Poll poll,
Date date) |
Poll |
PollService.updatePollStatus(Poll poll,
Date date)
Update the status of the
poll according to the given
date . |
Copyright © 2014 Nuxeo SA. All rights reserved.