public class PollHelper extends Object
Poll
and PollResult
.Modifier and Type | Method and Description |
---|---|
static net.sf.json.JSONObject |
toJSON(Poll poll)
Returns a JSONObject for the given unanswered
poll . |
static net.sf.json.JSONObject |
toJSON(Poll poll,
boolean answered)
Returns a JSONObject for the given
poll . |
static net.sf.json.JSONObject |
toJSON(Poll poll,
PollResult pollResult)
Returns a JSONObject for the given unanswered
poll and
pollResult . |
static net.sf.json.JSONObject |
toJSON(Poll poll,
PollResult pollResult,
boolean answered)
Returns a JSONObject for the given
poll and
pollResult . |
static net.sf.json.JSONObject |
toJSON(PollResult pollResult)
Returns a JSONObject for the given
pollResult . |
static Poll |
toPoll(DocumentModel pollDocument)
Returns a
Poll object from the given pollDocument . |
public static Poll toPoll(DocumentModel pollDocument)
Poll
object from the given pollDocument
.public static net.sf.json.JSONObject toJSON(Poll poll, boolean answered)
poll
.public static net.sf.json.JSONObject toJSON(Poll poll)
poll
.public static net.sf.json.JSONObject toJSON(PollResult pollResult)
pollResult
.public static net.sf.json.JSONObject toJSON(Poll poll, PollResult pollResult, boolean answered)
poll
and
pollResult
.public static net.sf.json.JSONObject toJSON(Poll poll, PollResult pollResult)
poll
and
pollResult
.Copyright © 2014 Nuxeo SA. All rights reserved.