Interface PollResultsCalculator


  • @Role
    @Unstable
    public interface PollResultsCalculator
    Provides a method for getting the results of a poll.
    Since:
    2.1
    Version:
    $Id$
    • 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