public abstract class AbstractVoteAction extends PollenActionSupport implements org.apache.struts2.interceptor.ParameterAware, PollUriAware, PollenUserSecurityAware
| Modifier and Type | Field and Description |
|---|---|
static String |
PREPARE_VOTE_PAGE |
SAFE_LANGUAGES, serviceContext, serviceFactory, transaction| Modifier | Constructor and Description |
|---|---|
protected |
AbstractVoteAction() |
addFlashError, addFlashMessage, addFlashWarning, clearFlashErrors, clearFlashMessages, getApplicationUrl, getApplicationVersion, getConfiguration, getCurrentUrl, getFavoriteService, getFlashErrors, getFlashMessages, getFlashWarnings, getJqueryTheme, getPageLogo, getParameters, getPollCommentService, getPollenApplicationContext, getPollenSession, getPollenUserAccount, getPollExportService, getPollFeedService, getPollService, getPollUri, getPollUrlService, getPollVoteCountingService, getPreventRuleService, getSafeLanguage, getSecurityService, getService, getServiceContext, getSkin, getTransaction, getUserSecurityContext, getUserService, getVoteCounting, getVoteCountingFactory, getVoteService, hasAnyErrors, hasFlashErrors, hasFlashMessages, hasFlashWarnings, isGetMethod, isUserAdmin, isUserLoggued, setParameters, setPollenUserSecurityContext, setServletRequestaddActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getFormatted, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validateequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPollUrisetPollenUserSecurityContextpublic static final String PREPARE_VOTE_PAGE
public abstract boolean isModerate()
true if moderation is possible, false otherwisepublic Poll getPoll()
public PollAccount getPollAccount()
public Vote getVote()
public List<ChoiceScore> getResults()
public String getVoteSizeMessage()
public String getVoteCountingTypeName()
public String getVoteCountingTypeHelp()
public String getPollVoteVisibilityName()
public String getPollVoteVisibilityHelp()
public boolean isCommentAllowed()
true if comments can be displayed and then added or
removed for this poll.public boolean isChoiceInVote(VoteToChoice choice)
choice - le choix concernépublic String getChoiceValue(VoteToChoice choice)
public String getCommentAuthor()
public String getSummaryUrl()
public String getResultUrl()
public String getVoteMessages()
public boolean isFeedFileExisting()
public boolean isCreatorOrAdmin()
public boolean isAccountFieldDisplayed()
public boolean isPollChoiceOrVoteStarted()
public boolean isAnonymousVote()
public boolean isPollChoiceRunning()
public boolean isPollStarted()
public boolean isPollFinished()
public boolean isDescNull(Choice choice)
public boolean isFreePoll()
public boolean isRestrictedPoll()
public boolean isGroupPoll()
public boolean isTextType()
public boolean isDateType()
public boolean isImageType()
public boolean isVoteAllowed()
public boolean isResultAllowed()
public String getPollCreatorName()
public String getPollBeginDate()
public String getPollEndDate()
public boolean isModifyVoteAllowed(Vote vote)
public boolean isDeleteCommentAllowed(Comment comment)
public boolean isDeleteVoteAllowed(Vote vote)
public String getChoiceFragment()
public void setCommentAuthor(String commentAuthor)
protected void loadPollAccount()
throws PollAccountNotFound
PollAccountNotFoundprotected void loadPoll()
throws PollNotFoundException
PollNotFoundExceptionCopyright © 2009–2014 CodeLutin. All rights reserved.