public class AddChoice extends AbstractVoteAction implements com.opensymphony.xwork2.Preparable, FileUploadAware
| Modifier and Type | Field and Description |
|---|---|
protected Choice |
choice |
PREPARE_VOTE_PAGESAFE_LANGUAGES, serviceContext, serviceFactory, transaction| Constructor and Description |
|---|
AddChoice() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFile(int index,
File file) |
void |
addFileContentType(int index,
String contentType) |
void |
addFileName(int index,
String fileName) |
String |
execute() |
Choice |
getChoice() |
boolean |
isModerate() |
void |
prepare() |
void |
validate() |
escapeLineBreak, getChoiceAsDate, getChoiceFragment, getChoiceValue, getCommentAuthor, getComments, getImageChoiceName, getPoll, getPollAccount, getPollBeginDate, getPollCreatorName, getPollEndDate, getPollVoteVisibilityHelp, getPollVoteVisibilityName, getResults, getResultUrl, getResultValue, getSummaryUrl, getVote, getVoteCountingTypeHelp, getVoteCountingTypeName, getVoteMessages, getVotes, getVoteSizeMessage, isAccountFieldDisplayed, isAnonymousVote, isChoiceInVote, isCommentAllowed, isCreatorOrAdmin, isDateType, isDeleteCommentAllowed, isDeleteVoteAllowed, isDescNull, isFeedFileExisting, isFreePoll, isGroupPoll, isImageType, isModifyVoteAllowed, isPollChoiceOrVoteStarted, isPollChoiceRunning, isPollFinished, isPollStarted, isRestrictedPoll, isResultAllowed, isTextType, isVoteAllowed, loadPoll, loadPollAccount, prepareVotePage, setCommentAuthoraddFlashError, addFlashMessage, addFlashWarning, clearFlashErrors, clearFlashMessages, getApplicationUrl, getApplicationVersion, getConfiguration, getCurrentDateTime, 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, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrorsequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPollUrisetPollenUserSecurityContextprotected Choice choice
public Choice getChoice()
public void addFile(int index,
File file)
addFile in interface FileUploadAwarepublic void addFileContentType(int index,
String contentType)
addFileContentType in interface FileUploadAwarepublic void addFileName(int index,
String fileName)
addFileName in interface FileUploadAwarepublic boolean isModerate()
isModerate in class AbstractVoteActiontrue if moderation is possible, false otherwisepublic void prepare()
throws PollNotFoundException
prepare in interface com.opensymphony.xwork2.PreparablePollNotFoundExceptionpublic void validate()
validate in interface com.opensymphony.xwork2.Validateablevalidate in class com.opensymphony.xwork2.ActionSupportCopyright © 2009-2012 CodeLutin. All Rights Reserved.