| |
|
| org.sakaiproject.poll.model.Poll
All known Subclasses: org.sakaiproject.poll.model.PollImpl,
Poll | public interface Poll extends java.io.Serializable,Entity(Code) | | author: az author: This is the interface for our value object that holds a task author: It is a basic POJO with only getters and setters |
addVote | public void addVote(Vote vote)(Code) | | Attach a vote to the list of votes for this poll
Parameters: vote - |
getCreationDate | public Date getCreationDate()(Code) | | |
getLimitVoting | public boolean getLimitVoting()(Code) | | |
getMaxOptions | public int getMaxOptions()(Code) | | |
getMinOptions | public int getMinOptions()(Code) | | |
getPollId | public Long getPollId()(Code) | | Get the id of the poll
the polls ID |
setCreationDate | public void setCreationDate(Date creationDate)(Code) | | |
setDisplayResult | public void setDisplayResult(String display)(Code) | | Set when to diplay the results
Parameters: display - String which can be:open - can be viewd at any timenever - not diplayedafterVoting - after user has votedafterClosing - once the vote has closed |
setLimitVoting | public void setLimitVoting(boolean limit)(Code) | | |
setMaxOptions | public void setMaxOptions(int minVotes)(Code) | | |
setMinOptions | public void setMinOptions(int minVotes)(Code) | | Get the minimum number of options that must be selected to vote
|
setOptions | public void setOptions(List options)(Code) | | |
setVoteClose | public void setVoteClose(Date Date)(Code) | | |
setVoteOpen | public void setVoteOpen(Date date)(Code) | | |
setVotes | public void setVotes(List votes)(Code) | | Set the votes list for this poll
Parameters: votes - |
|
|
|