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 String ANONYMOUS
           
static String ANONYMOUS_VOTE_ALLOWED
           
static String BEGIN_CHOICE_DATE
           
static String BEGIN_DATE
           
static String CHOICE
           
static String CHOICE_ADD_ALLOWED
           
static String CHOICE_TYPE
           
static String CLOSED
           
static String COMMENT
           
static String CONTINUOUS_RESULTS
           
static String CREATOR
           
static String DESCRIPTION
           
static String END_CHOICE_DATE
           
static String END_DATE
           
static String MAX_CHOICE_NB
           
static String POLL_ID
           
static String POLL_TYPE
           
static String PREVENT_RULE
           
static String PUBLIC_RESULTS
           
static String RESULT
           
static String TITLE
           
static String VOTE
           
static String VOTE_COUNTING
           
static String VOTING_LIST
           
 
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()
          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.
 Boolean getAnonymous()
           
 Boolean getAnonymousVoteAllowed()
           
 Date getBeginChoiceDate()
           
 Date getBeginDate()
           
 List<Choice> getChoice()
           
 Boolean getChoiceAddAllowed()
           
 Choice getChoiceByTopiaId(String topiaId)
          Recupère l'attribut choice à partir de son topiaId.
 ChoiceType getChoiceType()
           
 Boolean getClosed()
           
 List<Comment> getComment()
           
 Comment getCommentByTopiaId(String topiaId)
          Recupère l'attribut comment à partir de son topiaId.
 Boolean getContinuousResults()
           
 PollAccount getCreator()
           
 String getDescription()
           
 Date getEndChoiceDate()
           
 Date getEndDate()
           
 Integer getMaxChoiceNb()
           
 String getPollId()
           
 PollType getPollType()
           
 List<PreventRule> getPreventRule()
           
 PreventRule getPreventRuleByTopiaId(String topiaId)
          Recupère l'attribut preventRule à partir de son topiaId.
 Boolean getPublicResults()
           
 List<Result> getResult()
           
 Result getResultByTopiaId(String topiaId)
          Recupère l'attribut result à partir de son topiaId.
 String getTitle()
           
 List<Vote> getVote()
           
 Vote getVoteByTopiaId(String topiaId)
          Recupère l'attribut vote à partir de son topiaId.
 VoteCounting getVoteCounting()
           
 List<VotingList> getVotingList()
           
 VotingList getVotingListByTopiaId(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(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(Integer maxChoiceNb)
           
 void setPollId(String pollId)
           
 void setPollType(PollType pollType)
           
 void setPreventRule(List<PreventRule> preventRule)
           
 void setPublicResults(Boolean publicResults)
           
 void setResult(List<Result> result)
           
 void setTitle(String title)
           
 void setVote(List<Vote> vote)
           
 void setVoteCounting(VoteCounting voteCounting)
           
 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, 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 String POLL_ID
See Also:
Constant Field Values

TITLE

static final String TITLE
See Also:
Constant Field Values

DESCRIPTION

static final String DESCRIPTION
See Also:
Constant Field Values

BEGIN_CHOICE_DATE

static final String BEGIN_CHOICE_DATE
See Also:
Constant Field Values

BEGIN_DATE

static final String BEGIN_DATE
See Also:
Constant Field Values

END_DATE

static final String END_DATE
See Also:
Constant Field Values

MAX_CHOICE_NB

static final String MAX_CHOICE_NB
See Also:
Constant Field Values

CLOSED

static final String CLOSED
See Also:
Constant Field Values

CHOICE_ADD_ALLOWED

static final String CHOICE_ADD_ALLOWED
See Also:
Constant Field Values

ANONYMOUS_VOTE_ALLOWED

static final String ANONYMOUS_VOTE_ALLOWED
See Also:
Constant Field Values

ANONYMOUS

static final String ANONYMOUS
See Also:
Constant Field Values

PUBLIC_RESULTS

static final String PUBLIC_RESULTS
See Also:
Constant Field Values

CONTINUOUS_RESULTS

static final String CONTINUOUS_RESULTS
See Also:
Constant Field Values

END_CHOICE_DATE

static final String END_CHOICE_DATE
See Also:
Constant Field Values

VOTE

static final String VOTE
See Also:
Constant Field Values

CHOICE

static final String CHOICE
See Also:
Constant Field Values

RESULT

static final String RESULT
See Also:
Constant Field Values

CREATOR

static final String CREATOR
See Also:
Constant Field Values

COMMENT

static final String COMMENT
See Also:
Constant Field Values

PREVENT_RULE

static final String PREVENT_RULE
See Also:
Constant Field Values

VOTING_LIST

static final String VOTING_LIST
See Also:
Constant Field Values

POLL_TYPE

static final String POLL_TYPE
See Also:
Constant Field Values

CHOICE_TYPE

static final String CHOICE_TYPE
See Also:
Constant Field Values

VOTE_COUNTING

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

setPollId

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

getPollId

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

setTitle

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

getTitle

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

setDescription

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

getDescription

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

setBeginChoiceDate

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

getBeginChoiceDate

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

setBeginDate

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

getBeginDate

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

setEndDate

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

getEndDate

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

setMaxChoiceNb

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

getMaxChoiceNb

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

setClosed

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

getClosed

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

setChoiceAddAllowed

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

getChoiceAddAllowed

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

setAnonymousVoteAllowed

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

getAnonymousVoteAllowed

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

setAnonymous

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

getAnonymous

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

setPublicResults

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

getPublicResults

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

setContinuousResults

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

getContinuousResults

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

setEndChoiceDate

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

getEndChoiceDate

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

addVote

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

addAllVote

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

setVote

void setVote(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

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

getVoteByTopiaId

Vote getVoteByTopiaId(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(List<Choice> choice)
Parameters:
choice - Les instances de choice à ajouter.

setChoice

void setChoice(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

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

getChoiceByTopiaId

Choice getChoiceByTopiaId(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(List<Result> result)
Parameters:
result - Les instances de result à ajouter.

setResult

void setResult(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

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

getResultByTopiaId

Result getResultByTopiaId(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(List<Comment> comment)
Parameters:
comment - Les instances de comment à ajouter.

setComment

void setComment(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

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

getCommentByTopiaId

Comment getCommentByTopiaId(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(List<PreventRule> preventRule)
Parameters:
preventRule - Les instances de preventRule à ajouter.

setPreventRule

void setPreventRule(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

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

getPreventRuleByTopiaId

PreventRule getPreventRuleByTopiaId(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(List<VotingList> votingList)
Parameters:
votingList - Les instances de votingList à ajouter.

setVotingList

void setVotingList(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

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

getVotingListByTopiaId

VotingList getVotingListByTopiaId(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.