org.chorem.pollen.business.persistence
Interface Poll

All Superinterfaces:
Serializable, org.nuiton.topia.persistence.TopiaEntity
All Known Implementing Classes:
PollAbstract, PollImpl

public interface Poll
extends org.nuiton.topia.persistence.TopiaEntity


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

Field Detail

PROPERTY_POLL_ID

static final String PROPERTY_POLL_ID
See Also:
Constant Field Values

PROPERTY_TITLE

static final String PROPERTY_TITLE
See Also:
Constant Field Values

PROPERTY_DESCRIPTION

static final String PROPERTY_DESCRIPTION
See Also:
Constant Field Values

PROPERTY_BEGIN_CHOICE_DATE

static final String PROPERTY_BEGIN_CHOICE_DATE
See Also:
Constant Field Values

PROPERTY_BEGIN_DATE

static final String PROPERTY_BEGIN_DATE
See Also:
Constant Field Values

PROPERTY_END_DATE

static final String PROPERTY_END_DATE
See Also:
Constant Field Values

PROPERTY_MAX_CHOICE_NB

static final String PROPERTY_MAX_CHOICE_NB
See Also:
Constant Field Values

PROPERTY_CLOSED

static final String PROPERTY_CLOSED
See Also:
Constant Field Values

PROPERTY_CHOICE_ADD_ALLOWED

static final String PROPERTY_CHOICE_ADD_ALLOWED
See Also:
Constant Field Values

PROPERTY_ANONYMOUS_VOTE_ALLOWED

static final String PROPERTY_ANONYMOUS_VOTE_ALLOWED
See Also:
Constant Field Values

PROPERTY_ANONYMOUS

static final String PROPERTY_ANONYMOUS
See Also:
Constant Field Values

PROPERTY_PUBLIC_RESULTS

static final String PROPERTY_PUBLIC_RESULTS
See Also:
Constant Field Values

PROPERTY_CONTINUOUS_RESULTS

static final String PROPERTY_CONTINUOUS_RESULTS
See Also:
Constant Field Values

PROPERTY_END_CHOICE_DATE

static final String PROPERTY_END_CHOICE_DATE
See Also:
Constant Field Values

PROPERTY_RESULT_UPTODATE

static final String PROPERTY_RESULT_UPTODATE
See Also:
Constant Field Values

PROPERTY_VOTE

static final String PROPERTY_VOTE
See Also:
Constant Field Values

PROPERTY_CHOICE

static final String PROPERTY_CHOICE
See Also:
Constant Field Values

PROPERTY_RESULT

static final String PROPERTY_RESULT
See Also:
Constant Field Values

PROPERTY_CREATOR

static final String PROPERTY_CREATOR
See Also:
Constant Field Values

PROPERTY_COMMENT

static final String PROPERTY_COMMENT
See Also:
Constant Field Values

PROPERTY_PREVENT_RULE

static final String PROPERTY_PREVENT_RULE
See Also:
Constant Field Values

PROPERTY_VOTING_LIST

static final String PROPERTY_VOTING_LIST
See Also:
Constant Field Values

PROPERTY_POLL_TYPE

static final String PROPERTY_POLL_TYPE
See Also:
Constant Field Values

PROPERTY_CHOICE_TYPE

static final String PROPERTY_CHOICE_TYPE
See Also:
Constant Field Values

PROPERTY_VOTE_COUNTING_TYPE

static final String PROPERTY_VOTE_COUNTING_TYPE
See Also:
Constant Field Values
Method Detail

setPollId

void setPollId(String pollId)

getPollId

String getPollId()

setTitle

void setTitle(String title)

getTitle

String getTitle()

setDescription

void setDescription(String description)

getDescription

String getDescription()

setBeginChoiceDate

void setBeginChoiceDate(Date beginChoiceDate)

getBeginChoiceDate

Date getBeginChoiceDate()

setBeginDate

void setBeginDate(Date beginDate)

getBeginDate

Date getBeginDate()

setEndDate

void setEndDate(Date endDate)

getEndDate

Date getEndDate()

setMaxChoiceNb

void setMaxChoiceNb(int maxChoiceNb)

getMaxChoiceNb

int getMaxChoiceNb()

setClosed

void setClosed(boolean closed)

isClosed

boolean isClosed()

setChoiceAddAllowed

void setChoiceAddAllowed(boolean choiceAddAllowed)

isChoiceAddAllowed

boolean isChoiceAddAllowed()

setAnonymousVoteAllowed

void setAnonymousVoteAllowed(boolean anonymousVoteAllowed)

isAnonymousVoteAllowed

boolean isAnonymousVoteAllowed()

setAnonymous

void setAnonymous(boolean anonymous)

isAnonymous

boolean isAnonymous()

setPublicResults

void setPublicResults(boolean publicResults)

isPublicResults

boolean isPublicResults()

setContinuousResults

void setContinuousResults(boolean continuousResults)

isContinuousResults

boolean isContinuousResults()

setEndChoiceDate

void setEndChoiceDate(Date endChoiceDate)

getEndChoiceDate

Date getEndChoiceDate()

setResultUptodate

void setResultUptodate(boolean resultUptodate)

isResultUptodate

boolean isResultUptodate()

addVote

void addVote(Vote vote)

addAllVote

void addAllVote(List<Vote> vote)

setVote

void setVote(List<Vote> vote)

removeVote

void removeVote(Vote vote)

clearVote

void clearVote()

getVote

List<Vote> getVote()

getVoteByTopiaId

Vote getVoteByTopiaId(String topiaId)

sizeVote

int sizeVote()

isVoteEmpty

boolean isVoteEmpty()

addChoice

void addChoice(Choice choice)

addAllChoice

void addAllChoice(List<Choice> choice)

setChoice

void setChoice(List<Choice> choice)

removeChoice

void removeChoice(Choice choice)

clearChoice

void clearChoice()

getChoice

List<Choice> getChoice()

getChoiceByTopiaId

Choice getChoiceByTopiaId(String topiaId)

sizeChoice

int sizeChoice()

isChoiceEmpty

boolean isChoiceEmpty()

addResult

void addResult(Result result)

addAllResult

void addAllResult(List<Result> result)

setResult

void setResult(List<Result> result)

removeResult

void removeResult(Result result)

clearResult

void clearResult()

getResult

List<Result> getResult()

getResultByTopiaId

Result getResultByTopiaId(String topiaId)

sizeResult

int sizeResult()

isResultEmpty

boolean isResultEmpty()

setCreator

void setCreator(PollAccount creator)

getCreator

PollAccount getCreator()

addComment

void addComment(Comment comment)

addAllComment

void addAllComment(List<Comment> comment)

setComment

void setComment(List<Comment> comment)

removeComment

void removeComment(Comment comment)

clearComment

void clearComment()

getComment

List<Comment> getComment()

getCommentByTopiaId

Comment getCommentByTopiaId(String topiaId)

sizeComment

int sizeComment()

isCommentEmpty

boolean isCommentEmpty()

addPreventRule

void addPreventRule(PreventRule preventRule)

addAllPreventRule

void addAllPreventRule(List<PreventRule> preventRule)

setPreventRule

void setPreventRule(List<PreventRule> preventRule)

removePreventRule

void removePreventRule(PreventRule preventRule)

clearPreventRule

void clearPreventRule()

getPreventRule

List<PreventRule> getPreventRule()

getPreventRuleByTopiaId

PreventRule getPreventRuleByTopiaId(String topiaId)

sizePreventRule

int sizePreventRule()

isPreventRuleEmpty

boolean isPreventRuleEmpty()

addVotingList

void addVotingList(VotingList votingList)

addAllVotingList

void addAllVotingList(List<VotingList> votingList)

setVotingList

void setVotingList(List<VotingList> votingList)

removeVotingList

void removeVotingList(VotingList votingList)

clearVotingList

void clearVotingList()

getVotingList

List<VotingList> getVotingList()

getVotingListByTopiaId

VotingList getVotingListByTopiaId(String topiaId)

sizeVotingList

int sizeVotingList()

isVotingListEmpty

boolean isVotingListEmpty()

setPollType

void setPollType(PollType pollType)

getPollType

PollType getPollType()

setChoiceType

void setChoiceType(ChoiceType choiceType)

getChoiceType

ChoiceType getChoiceType()

setVoteCountingType

void setVoteCountingType(VoteCountingType voteCountingType)

getVoteCountingType

VoteCountingType getVoteCountingType()

getVoteByPollAccount

Vote getVoteByPollAccount(PollAccount account)

getAdminId

String getAdminId()

getVoteId

String getVoteId(PollAccount account)

isStarted

boolean isStarted(Date currentDate)

isRunning

boolean isRunning(Date currentDate)

isFinished

boolean isFinished(Date currentDate)

isAddChoiceStarted

boolean isAddChoiceStarted(Date currentDate)

isAddChoiceRunning

boolean isAddChoiceRunning(Date currentDate)

isAddChoiceFinished

boolean isAddChoiceFinished(Date currentDate)

getPollAccounts

List<PollAccount> getPollAccounts(boolean withNoVote)

getPersonToListByVote

PersonToList getPersonToListByVote(Vote vote)

getPreventRuleByScope

PreventRule getPreventRuleByScope(String scope)


Copyright © 2009-2012 CodeLutin. All Rights Reserved.