package net.congstar.jira.plugins.scrumpoker.data;

import java.util.Map;

public interface PlanningPokerStorage {

    void update(String issueKey, String userKey, String chosenCard);

    Map<String, String> chosenCardsForIssue(String issueKey);

    boolean isVisible(String issueKey);

    void revealDeck(String issueKey);

    void resetDeck(String issueKey);

}

@@ -117,216 +117,782 @@
     
-void update(String issueKey, String userKey, String chosenCard);%0A%0A    Map%3CString, String%3E chosenCardsForIssue(String issueKey);%0A%0A    boolean isVisible(String issueKey);%0A%0A    void revealDeck(String issueKey);%0A
+/**%0A     * Update the card for the given issue and user.%0A     * %0A     * @param issueKey%0A     * @param userKey%0A     * @param chosenCard%0A     */%0A    void update(String issueKey, String userKey, String chosenCard);%0A%0A    /**%0A     * Return the cards for the given issue.%0A     * %0A     * @param issueKey%0A     * @return%0A     */%0A    Map%3CString, String%3E chosenCardsForIssue(String issueKey);%0A%0A    /**%0A     * Return the visibility of the cards for the given issue.%0A     * %0A     * @param issueKey%0A     * @return%0A     */%0A    boolean isVisible(String issueKey);%0A%0A    /**%0A     * Show the cards for the given issue.%0A     * %0A     * @param issueKey%0A     */%0A    void revealDeck(String issueKey);%0A%0A    /**%0A     * Discard all cards for the given issue key.%0A     * %0A     * @param issueKey%0A     */
 %0A   

document api