org.chorem.pollen.business.persistence
Class PollImpl

java.lang.Object
  extended by org.nuiton.topia.persistence.TopiaEntityAbstract
      extended by org.chorem.pollen.business.persistence.PollAbstract
          extended by org.chorem.pollen.business.persistence.PollImpl
All Implemented Interfaces:
Serializable, Poll, org.nuiton.topia.persistence.TopiaEntity

public class PollImpl
extends PollAbstract

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.chorem.pollen.business.persistence.PollAbstract
anonymous, anonymousVoteAllowed, beginChoiceDate, beginDate, choice, choiceAddAllowed, choiceType, closed, comment, continuousResults, creator, description, endChoiceDate, endDate, maxChoiceNb, pollId, pollType, preventRule, publicResults, result, resultUptodate, title, vote, voteCountingType, votingList
 
Fields inherited from class org.nuiton.topia.persistence.TopiaEntityAbstract
readListeners, readVetoables, topiaContext, topiaCreateDate, topiaId, topiaVersion, writeListeners, writeVetoables
 
Fields inherited from interface org.chorem.pollen.business.persistence.Poll
PROPERTY_ANONYMOUS, PROPERTY_ANONYMOUS_VOTE_ALLOWED, PROPERTY_BEGIN_CHOICE_DATE, PROPERTY_BEGIN_DATE, PROPERTY_CHOICE, PROPERTY_CHOICE_ADD_ALLOWED, PROPERTY_CHOICE_TYPE, PROPERTY_CLOSED, PROPERTY_COMMENT, PROPERTY_CONTINUOUS_RESULTS, PROPERTY_CREATOR, PROPERTY_DESCRIPTION, PROPERTY_END_CHOICE_DATE, PROPERTY_END_DATE, PROPERTY_MAX_CHOICE_NB, PROPERTY_POLL_ID, PROPERTY_POLL_TYPE, PROPERTY_PREVENT_RULE, PROPERTY_PUBLIC_RESULTS, PROPERTY_RESULT, PROPERTY_RESULT_UPTODATE, PROPERTY_TITLE, PROPERTY_VOTE, PROPERTY_VOTE_COUNTING_TYPE, PROPERTY_VOTING_LIST
 
Fields inherited from interface org.nuiton.topia.persistence.TopiaEntity
AGGREGATE, COMPOSITE, TOPIA_CREATE_DATE, TOPIA_ID, TOPIA_VERSION
 
Constructor Summary
PollImpl()
           
 
Method Summary
 String getAdminId()
           
 List<Choice> getChoice()
           
 List<Comment> getComment()
           
 PersonToList getPersonToListByVote(Vote vote)
           
 List<PollAccount> getPollAccounts(boolean withNoVote)
           
 List<PreventRule> getPreventRule()
           
 PreventRule getPreventRuleByScope(String scope)
           
 List<Result> getResult()
           
 List<Vote> getVote()
           
 Vote getVoteByPollAccount(PollAccount account)
           
 String getVoteId(PollAccount account)
           
 List<VotingList> getVotingList()
           
 boolean isAddChoiceFinished(Date currentDate)
           
 boolean isAddChoiceRunning(Date currentDate)
           
 boolean isAddChoiceStarted(Date currentDate)
           
 boolean isFinished(Date currentDate)
           
 boolean isRunning(Date currentDate)
           
 boolean isStarted(Date currentDate)
           
 
Methods inherited from class org.chorem.pollen.business.persistence.PollAbstract
accept, addAllChoice, addAllComment, addAllPreventRule, addAllResult, addAllVote, addAllVotingList, addChoice, addComment, addPreventRule, addResult, addVote, addVotingList, clearChoice, clearComment, clearPreventRule, clearResult, clearVote, clearVotingList, getAggregate, getBeginChoiceDate, getBeginDate, getChoiceByTopiaId, getChoiceType, getCommentByTopiaId, getComposite, getCreator, getDescription, getEndChoiceDate, getEndDate, getMaxChoiceNb, getPollId, getPollType, getPreventRuleByTopiaId, getResultByTopiaId, getTitle, getVoteByTopiaId, getVoteCountingType, getVotingListByTopiaId, isAnonymous, isAnonymousVoteAllowed, isChoiceAddAllowed, isChoiceEmpty, isClosed, isCommentEmpty, isContinuousResults, isPreventRuleEmpty, isPublicResults, isResultEmpty, isResultUptodate, isVoteEmpty, isVotingListEmpty, removeChoice, removeComment, removePreventRule, removeResult, removeVote, removeVotingList, setAnonymous, setAnonymousVoteAllowed, setBeginChoiceDate, setBeginDate, setChoice, setChoiceAddAllowed, setChoiceType, setClosed, setComment, setContinuousResults, setCreator, setDescription, setEndChoiceDate, setEndDate, setMaxChoiceNb, setPollId, setPollType, setPreventRule, setPublicResults, setResult, setResultUptodate, setTitle, setVote, setVoteCountingType, setVotingList, sizeChoice, sizeComment, sizePreventRule, sizeResult, sizeVote, sizeVotingList
 
Methods inherited from class org.nuiton.topia.persistence.TopiaEntityAbstract
addPropertyChangeListener, addPropertyChangeListener, addPropertyListener, addPropertyListener, addVetoableChangeListener, addVetoableChangeListener, addVetoableListener, addVetoableListener, equals, fireOnPostRead, fireOnPostRead, fireOnPostWrite, fireOnPostWrite, fireOnPreRead, fireOnPreWrite, getReadPropertyChangeSupport, getReadVetoableChangeSupport, getTopiaContext, getTopiaCreateDate, getTopiaId, getTopiaVersion, getWritePropertyChangeSupport, getWriteVetoableChangeSupport, hashCode, removePropertyChangeListener, removePropertyChangeListener, removePropertyListener, removePropertyListener, removeVetoableChangeListener, removeVetoableChangeListener, removeVetoableListener, removeVetoableListener, setTopiaContext, setTopiaCreateDate, setTopiaId, setTopiaVersion
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nuiton.topia.persistence.TopiaEntity
addPropertyChangeListener, addPropertyChangeListener, addPropertyListener, addPropertyListener, addVetoableChangeListener, addVetoableChangeListener, addVetoableListener, addVetoableListener, getTopiaCreateDate, getTopiaId, getTopiaVersion, removePropertyChangeListener, removePropertyChangeListener, removePropertyListener, removePropertyListener, removeVetoableChangeListener, removeVetoableChangeListener, removeVetoableListener, removeVetoableListener, setTopiaCreateDate, setTopiaId, setTopiaVersion
 

Constructor Detail

PollImpl

public PollImpl()
Method Detail

getVote

public List<Vote> getVote()
Specified by:
getVote in interface Poll
Overrides:
getVote in class PollAbstract

getChoice

public List<Choice> getChoice()
Specified by:
getChoice in interface Poll
Overrides:
getChoice in class PollAbstract

getResult

public List<Result> getResult()
Specified by:
getResult in interface Poll
Overrides:
getResult in class PollAbstract

getComment

public List<Comment> getComment()
Specified by:
getComment in interface Poll
Overrides:
getComment in class PollAbstract

getPreventRule

public List<PreventRule> getPreventRule()
Specified by:
getPreventRule in interface Poll
Overrides:
getPreventRule in class PollAbstract

getVotingList

public List<VotingList> getVotingList()
Specified by:
getVotingList in interface Poll
Overrides:
getVotingList in class PollAbstract

getVoteByPollAccount

public Vote getVoteByPollAccount(PollAccount account)

getAdminId

public String getAdminId()

getVoteId

public String getVoteId(PollAccount account)

isStarted

public boolean isStarted(Date currentDate)

isRunning

public boolean isRunning(Date currentDate)

isFinished

public boolean isFinished(Date currentDate)

isAddChoiceStarted

public boolean isAddChoiceStarted(Date currentDate)

isAddChoiceRunning

public boolean isAddChoiceRunning(Date currentDate)

isAddChoiceFinished

public boolean isAddChoiceFinished(Date currentDate)

getPreventRuleByScope

public PreventRule getPreventRuleByScope(String scope)

getPersonToListByVote

public PersonToList getPersonToListByVote(Vote vote)

getPollAccounts

public List<PollAccount> getPollAccounts(boolean withNoVote)


Copyright © 2009-2012 CodeLutin. All Rights Reserved.