org.chorem.pollen.business.persistence
Interface Poll

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

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


Field Summary
static java.lang.String ANONYMOUS
           
static java.lang.String ANONYMOUS_VOTE_ALLOWED
           
static java.lang.String BEGIN_CHOICE_DATE
           
static java.lang.String BEGIN_DATE
           
static java.lang.String CHOICE
           
static java.lang.String CHOICE_ADD_ALLOWED
           
static java.lang.String CHOICE_TYPE
           
static java.lang.String CLOSED
           
static java.lang.String COMMENT
           
static java.lang.String CONTINUOUS_RESULTS
           
static java.lang.String CREATOR
           
static java.lang.String DESCRIPTION
           
static java.lang.String END_CHOICE_DATE
           
static java.lang.String END_DATE
           
static java.lang.String MAX_CHOICE_NB
           
static java.lang.String POLL_ID
           
static java.lang.String POLL_TYPE
           
static java.lang.String PREVENT_RULE
           
static java.lang.String PUBLIC_RESULTS
           
static java.lang.String RESULT
           
static java.lang.String TITLE
           
static java.lang.String VOTE
           
static java.lang.String VOTE_COUNTING
           
static java.lang.String VOTING_LIST
           
 
Method Summary
 void addAllChoice(java.util.List<Choice> choice)
           
 void addAllComment(java.util.List<Comment> comment)
           
 void addAllPreventRule(java.util.List<PreventRule> preventRule)
           
 void addAllResult(java.util.List<Result> result)
           
 void addAllVote(java.util.List<Vote> vote)
           
 void addAllVotingList(java.util.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()
          Vide la Collection de choice.
 void clearComment()
          Vide la Collection de comment.
 void clearPreventRule()
          Vide la Collection de preventRule.
 void clearResult()
          Vide la Collection de result.
 void clearVote()
          Vide la Collection de vote.
 void clearVotingList()
          Vide la Collection de votingList.
 java.lang.Boolean getAnonymous()
           
 java.lang.Boolean getAnonymousVoteAllowed()
           
 java.util.Date getBeginChoiceDate()
           
 java.util.Date getBeginDate()
           
 java.util.List<Choice> getChoice()
           
 java.lang.Boolean getChoiceAddAllowed()
           
 Choice getChoiceByTopiaId(java.lang.String topiaId)
          Recupère l'attribut choice à partir de son topiaId.
 ChoiceType getChoiceType()
           
 java.lang.Boolean getClosed()
           
 java.util.List<Comment> getComment()
           
 Comment getCommentByTopiaId(java.lang.String topiaId)
          Recupère l'attribut comment à partir de son topiaId.
 java.lang.Boolean getContinuousResults()
           
 PollAccount getCreator()
           
 java.lang.String getDescription()
           
 java.util.Date getEndChoiceDate()
           
 java.util.Date getEndDate()
           
 java.lang.Integer getMaxChoiceNb()
           
 java.lang.String getPollId()
           
 PollType getPollType()
           
 java.util.List<PreventRule> getPreventRule()
           
 PreventRule getPreventRuleByTopiaId(java.lang.String topiaId)
          Recupère l'attribut preventRule à partir de son topiaId.
 java.lang.Boolean getPublicResults()
           
 java.util.List<Result> getResult()
           
 Result getResultByTopiaId(java.lang.String topiaId)
          Recupère l'attribut result à partir de son topiaId.
 java.lang.String getTitle()
           
 java.util.List<Vote> getVote()
           
 Vote getVoteByTopiaId(java.lang.String topiaId)
          Recupère l'attribut vote à partir de son topiaId.
 VoteCounting getVoteCounting()
           
 java.util.List<VotingList> getVotingList()
           
 VotingList getVotingListByTopiaId(java.lang.String topiaId)
          Recupère l'attribut votingList à partir de son topiaId.
 boolean isChoiceEmpty()
           
 boolean isCommentEmpty()
           
 boolean isPreventRuleEmpty()
           
 boolean isResultEmpty()
           
 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(java.lang.Boolean anonymous)
           
 void setAnonymousVoteAllowed(java.lang.Boolean anonymousVoteAllowed)
           
 void setBeginChoiceDate(java.util.Date beginChoiceDate)
           
 void setBeginDate(java.util.Date beginDate)
           
 void setChoice(java.util.List<Choice> choice)
           
 void setChoiceAddAllowed(java.lang.Boolean choiceAddAllowed)
           
 void setChoiceType(ChoiceType choiceType)
           
 void setClosed(java.lang.Boolean closed)
           
 void setComment(java.util.List<Comment> comment)
           
 void setContinuousResults(java.lang.Boolean continuousResults)
           
 void setCreator(PollAccount creator)
           
 void setDescription(java.lang.String description)
           
 void setEndChoiceDate(java.util.Date endChoiceDate)
           
 void setEndDate(java.util.Date endDate)
           
 void setMaxChoiceNb(java.lang.Integer maxChoiceNb)
           
 void setPollId(java.lang.String pollId)
           
 void setPollType(PollType pollType)
           
 void setPreventRule(java.util.List<PreventRule> preventRule)
           
 void setPublicResults(java.lang.Boolean publicResults)
           
 void setResult(java.util.List<Result> result)
           
 void setTitle(java.lang.String title)
           
 void setVote(java.util.List<Vote> vote)
           
 void setVoteCounting(VoteCounting voteCounting)
           
 void setVotingList(java.util.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, delete, getAggregate, getComposite, getTopiaContext, getTopiaCreateDate, getTopiaId, getTopiaVersion, postCreate, removePropertyChangeListener, removePropertyChangeListener, removePropertyListener, removePropertyListener, removeVetoableChangeListener, removeVetoableChangeListener, removeVetoableListener, removeVetoableListener, setTopiaCreateDate, setTopiaId, setTopiaVersion, update
 

Field Detail

POLL_ID

static final java.lang.String POLL_ID
See Also:
Constant Field Values

TITLE

static final java.lang.String TITLE
See Also:
Constant Field Values

DESCRIPTION

static final java.lang.String DESCRIPTION
See Also:
Constant Field Values

BEGIN_CHOICE_DATE

static final java.lang.String BEGIN_CHOICE_DATE
See Also:
Constant Field Values

BEGIN_DATE

static final java.lang.String BEGIN_DATE
See Also:
Constant Field Values

END_DATE

static final java.lang.String END_DATE
See Also:
Constant Field Values

MAX_CHOICE_NB

static final java.lang.String MAX_CHOICE_NB
See Also:
Constant Field Values

CLOSED

static final java.lang.String CLOSED
See Also:
Constant Field Values

CHOICE_ADD_ALLOWED

static final java.lang.String CHOICE_ADD_ALLOWED
See Also:
Constant Field Values

ANONYMOUS_VOTE_ALLOWED

static final java.lang.String ANONYMOUS_VOTE_ALLOWED
See Also:
Constant Field Values

ANONYMOUS

static final java.lang.String ANONYMOUS
See Also:
Constant Field Values

PUBLIC_RESULTS

static final java.lang.String PUBLIC_RESULTS
See Also:
Constant Field Values

CONTINUOUS_RESULTS

static final java.lang.String CONTINUOUS_RESULTS
See Also:
Constant Field Values

END_CHOICE_DATE

static final java.lang.String END_CHOICE_DATE
See Also:
Constant Field Values

VOTE

static final java.lang.String VOTE
See Also:
Constant Field Values

CHOICE

static final java.lang.String CHOICE
See Also:
Constant Field Values

RESULT

static final java.lang.String RESULT
See Also:
Constant Field Values

CREATOR

static final java.lang.String CREATOR
See Also:
Constant Field Values

COMMENT

static final java.lang.String COMMENT
See Also:
Constant Field Values

PREVENT_RULE

static final java.lang.String PREVENT_RULE
See Also:
Constant Field Values

VOTING_LIST

static final java.lang.String VOTING_LIST
See Also:
Constant Field Values

POLL_TYPE

static final java.lang.String POLL_TYPE
See Also:
Constant Field Values

CHOICE_TYPE

static final java.lang.String CHOICE_TYPE
See Also:
Constant Field Values

VOTE_COUNTING

static final java.lang.String VOTE_COUNTING
See Also:
Constant Field Values
Method Detail

setPollId

void setPollId(java.lang.String pollId)
Parameters:
pollId - La valeur de l'attribut pollId à positionner.

getPollId

java.lang.String getPollId()
Returns:
La valeur de l'attribut pollId.

setTitle

void setTitle(java.lang.String title)
Parameters:
title - La valeur de l'attribut title à positionner.

getTitle

java.lang.String getTitle()
Returns:
La valeur de l'attribut title.

setDescription

void setDescription(java.lang.String description)
Parameters:
description - La valeur de l'attribut description à positionner.

getDescription

java.lang.String getDescription()
Returns:
La valeur de l'attribut description.

setBeginChoiceDate

void setBeginChoiceDate(java.util.Date beginChoiceDate)
Parameters:
beginChoiceDate - La valeur de l'attribut beginChoiceDate à positionner.

getBeginChoiceDate

java.util.Date getBeginChoiceDate()
Returns:
La valeur de l'attribut beginChoiceDate.

setBeginDate

void setBeginDate(java.util.Date beginDate)
Parameters:
beginDate - La valeur de l'attribut beginDate à positionner.

getBeginDate

java.util.Date getBeginDate()
Returns:
La valeur de l'attribut beginDate.

setEndDate

void setEndDate(java.util.Date endDate)
Parameters:
endDate - La valeur de l'attribut endDate à positionner.

getEndDate

java.util.Date getEndDate()
Returns:
La valeur de l'attribut endDate.

setMaxChoiceNb

void setMaxChoiceNb(java.lang.Integer maxChoiceNb)
Parameters:
maxChoiceNb - La valeur de l'attribut maxChoiceNb à positionner.

getMaxChoiceNb

java.lang.Integer getMaxChoiceNb()
Returns:
La valeur de l'attribut maxChoiceNb.

setClosed

void setClosed(java.lang.Boolean closed)
Parameters:
closed - La valeur de l'attribut closed à positionner.

getClosed

java.lang.Boolean getClosed()
Returns:
La valeur de l'attribut closed.

setChoiceAddAllowed

void setChoiceAddAllowed(java.lang.Boolean choiceAddAllowed)
Parameters:
choiceAddAllowed - La valeur de l'attribut choiceAddAllowed à positionner.

getChoiceAddAllowed

java.lang.Boolean getChoiceAddAllowed()
Returns:
La valeur de l'attribut choiceAddAllowed.

setAnonymousVoteAllowed

void setAnonymousVoteAllowed(java.lang.Boolean anonymousVoteAllowed)
Parameters:
anonymousVoteAllowed - La valeur de l'attribut anonymousVoteAllowed à positionner.

getAnonymousVoteAllowed

java.lang.Boolean getAnonymousVoteAllowed()
Returns:
La valeur de l'attribut anonymousVoteAllowed.

setAnonymous

void setAnonymous(java.lang.Boolean anonymous)
Parameters:
anonymous - La valeur de l'attribut anonymous à positionner.

getAnonymous

java.lang.Boolean getAnonymous()
Returns:
La valeur de l'attribut anonymous.

setPublicResults

void setPublicResults(java.lang.Boolean publicResults)
Parameters:
publicResults - La valeur de l'attribut publicResults à positionner.

getPublicResults

java.lang.Boolean getPublicResults()
Returns:
La valeur de l'attribut publicResults.

setContinuousResults

void setContinuousResults(java.lang.Boolean continuousResults)
Parameters:
continuousResults - La valeur de l'attribut continuousResults à positionner.

getContinuousResults

java.lang.Boolean getContinuousResults()
Returns:
La valeur de l'attribut continuousResults.

setEndChoiceDate

void setEndChoiceDate(java.util.Date endChoiceDate)
Parameters:
endChoiceDate - La valeur de l'attribut endChoiceDate à positionner.

getEndChoiceDate

java.util.Date getEndChoiceDate()
Returns:
La valeur de l'attribut endChoiceDate.

addVote

void addVote(Vote vote)
Parameters:
vote - L'instance de vote à ajouter.

addAllVote

void addAllVote(java.util.List<Vote> vote)
Parameters:
vote - Les instances de vote à ajouter.

setVote

void setVote(java.util.List<Vote> vote)
Parameters:
vote - La Collection de vote à positionner.

removeVote

void removeVote(Vote vote)
Parameters:
vote - L'instance de vote à retirer.

clearVote

void clearVote()
Vide la Collection de vote.


getVote

java.util.List<Vote> getVote()
Returns:
La Liste de vote.

getVoteByTopiaId

Vote getVoteByTopiaId(java.lang.String topiaId)
Recupère l'attribut vote à partir de son topiaId.

Parameters:
topiaId - le topia id de l'entité recherchée
Returns:
l'attribut recherché, ou null s'il n'existe pas.

sizeVote

int sizeVote()
Returns:
Le nombre d'éléments de la collection vote.

isVoteEmpty

boolean isVoteEmpty()
Returns:
true si la collection vote est vide.

addChoice

void addChoice(Choice choice)
Parameters:
choice - L'instance de choice à ajouter.

addAllChoice

void addAllChoice(java.util.List<Choice> choice)
Parameters:
choice - Les instances de choice à ajouter.

setChoice

void setChoice(java.util.List<Choice> choice)
Parameters:
choice - La Collection de choice à positionner.

removeChoice

void removeChoice(Choice choice)
Parameters:
choice - L'instance de choice à retirer.

clearChoice

void clearChoice()
Vide la Collection de choice.


getChoice

java.util.List<Choice> getChoice()
Returns:
La Liste de choice.

getChoiceByTopiaId

Choice getChoiceByTopiaId(java.lang.String topiaId)
Recupère l'attribut choice à partir de son topiaId.

Parameters:
topiaId - le topia id de l'entité recherchée
Returns:
l'attribut recherché, ou null s'il n'existe pas.

sizeChoice

int sizeChoice()
Returns:
Le nombre d'éléments de la collection choice.

isChoiceEmpty

boolean isChoiceEmpty()
Returns:
true si la collection choice est vide.

addResult

void addResult(Result result)
Parameters:
result - L'instance de result à ajouter.

addAllResult

void addAllResult(java.util.List<Result> result)
Parameters:
result - Les instances de result à ajouter.

setResult

void setResult(java.util.List<Result> result)
Parameters:
result - La Collection de result à positionner.

removeResult

void removeResult(Result result)
Parameters:
result - L'instance de result à retirer.

clearResult

void clearResult()
Vide la Collection de result.


getResult

java.util.List<Result> getResult()
Returns:
La Liste de result.

getResultByTopiaId

Result getResultByTopiaId(java.lang.String topiaId)
Recupère l'attribut result à partir de son topiaId.

Parameters:
topiaId - le topia id de l'entité recherchée
Returns:
l'attribut recherché, ou null s'il n'existe pas.

sizeResult

int sizeResult()
Returns:
Le nombre d'éléments de la collection result.

isResultEmpty

boolean isResultEmpty()
Returns:
true si la collection result est vide.

setCreator

void setCreator(PollAccount creator)
Parameters:
creator - La valeur de l'attribut creator à positionner.

getCreator

PollAccount getCreator()
Returns:
La valeur de l'attribut creator.

addComment

void addComment(Comment comment)
Parameters:
comment - L'instance de comment à ajouter.

addAllComment

void addAllComment(java.util.List<Comment> comment)
Parameters:
comment - Les instances de comment à ajouter.

setComment

void setComment(java.util.List<Comment> comment)
Parameters:
comment - La Collection de comment à positionner.

removeComment

void removeComment(Comment comment)
Parameters:
comment - L'instance de comment à retirer.

clearComment

void clearComment()
Vide la Collection de comment.


getComment

java.util.List<Comment> getComment()
Returns:
La Liste de comment.

getCommentByTopiaId

Comment getCommentByTopiaId(java.lang.String topiaId)
Recupère l'attribut comment à partir de son topiaId.

Parameters:
topiaId - le topia id de l'entité recherchée
Returns:
l'attribut recherché, ou null s'il n'existe pas.

sizeComment

int sizeComment()
Returns:
Le nombre d'éléments de la collection comment.

isCommentEmpty

boolean isCommentEmpty()
Returns:
true si la collection comment est vide.

addPreventRule

void addPreventRule(PreventRule preventRule)
Parameters:
preventRule - L'instance de preventRule à ajouter.

addAllPreventRule

void addAllPreventRule(java.util.List<PreventRule> preventRule)
Parameters:
preventRule - Les instances de preventRule à ajouter.

setPreventRule

void setPreventRule(java.util.List<PreventRule> preventRule)
Parameters:
preventRule - La Collection de preventRule à positionner.

removePreventRule

void removePreventRule(PreventRule preventRule)
Parameters:
preventRule - L'instance de preventRule à retirer.

clearPreventRule

void clearPreventRule()
Vide la Collection de preventRule.


getPreventRule

java.util.List<PreventRule> getPreventRule()
Returns:
La Liste de preventRule.

getPreventRuleByTopiaId

PreventRule getPreventRuleByTopiaId(java.lang.String topiaId)
Recupère l'attribut preventRule à partir de son topiaId.

Parameters:
topiaId - le topia id de l'entité recherchée
Returns:
l'attribut recherché, ou null s'il n'existe pas.

sizePreventRule

int sizePreventRule()
Returns:
Le nombre d'éléments de la collection preventRule.

isPreventRuleEmpty

boolean isPreventRuleEmpty()
Returns:
true si la collection preventRule est vide.

addVotingList

void addVotingList(VotingList votingList)
Parameters:
votingList - L'instance de votingList à ajouter.

addAllVotingList

void addAllVotingList(java.util.List<VotingList> votingList)
Parameters:
votingList - Les instances de votingList à ajouter.

setVotingList

void setVotingList(java.util.List<VotingList> votingList)
Parameters:
votingList - La Collection de votingList à positionner.

removeVotingList

void removeVotingList(VotingList votingList)
Parameters:
votingList - L'instance de votingList à retirer.

clearVotingList

void clearVotingList()
Vide la Collection de votingList.


getVotingList

java.util.List<VotingList> getVotingList()
Returns:
La Liste de votingList.

getVotingListByTopiaId

VotingList getVotingListByTopiaId(java.lang.String topiaId)
Recupère l'attribut votingList à partir de son topiaId.

Parameters:
topiaId - le topia id de l'entité recherchée
Returns:
l'attribut recherché, ou null s'il n'existe pas.

sizeVotingList

int sizeVotingList()
Returns:
Le nombre d'éléments de la collection votingList.

isVotingListEmpty

boolean isVotingListEmpty()
Returns:
true si la collection votingList est vide.

setPollType

void setPollType(PollType pollType)
Parameters:
pollType - La valeur de l'attribut pollType à positionner.

getPollType

PollType getPollType()
Returns:
La valeur de l'attribut pollType.

setChoiceType

void setChoiceType(ChoiceType choiceType)
Parameters:
choiceType - La valeur de l'attribut choiceType à positionner.

getChoiceType

ChoiceType getChoiceType()
Returns:
La valeur de l'attribut choiceType.

setVoteCounting

void setVoteCounting(VoteCounting voteCounting)
Parameters:
voteCounting - La valeur de l'attribut voteCounting à positionner.

getVoteCounting

VoteCounting getVoteCounting()
Returns:
La valeur de l'attribut voteCounting.


Copyright © 2009-2010 CodeLutin. All Rights Reserved.