Package com.xwiki.xpoll
Interface PollResultsCalculator
-
@Role @Unstable public interface PollResultsCalculatorProvides a method for getting the results of a poll.- Since:
- 2.1
- Version:
- $Id$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Integer>getResults(org.xwiki.model.reference.DocumentReference documentReference)
-
-
-
Method Detail
-
getResults
Map<String,Integer> getResults(org.xwiki.model.reference.DocumentReference documentReference) throws XPollException
- Parameters:
documentReference- a document containing a poll- Returns:
- a map containing each proposal and it's score
- Throws:
XPollException- if the document doesn't exist or it doesn't contain a poll
-
-