org.chorem.pollen.ui.actions.poll
Class AbstractPollForm

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by org.nuiton.web.struts2.BaseAction
          extended by org.chorem.pollen.ui.actions.PollenActionSupport
              extended by org.chorem.pollen.ui.actions.poll.AbstractPollForm
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, Serializable, org.nuiton.topia.framework.TopiaTransactionAware
Direct Known Subclasses:
LoadPoll, SavePoll

public abstract class AbstractPollForm
extends PollenActionSupport

Created: 04/04/12

Author:
fdesbois $Id: AbstractPollForm.java 3333 2012-04-30 15:52:41Z fdesbois $
See Also:
Serialized Form

Field Summary
protected  org.chorem.pollen.business.persistence.Poll poll
           
 
Fields inherited from class org.chorem.pollen.ui.actions.PollenActionSupport
SAFE_LANGUAGES, serviceContext, serviceFactory, transaction
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
AbstractPollForm()
           
 
Method Summary
protected  void fillLists(int defaultMaxChoices, int defaultMaxVoting)
           
 String getActionLabel()
           
 Map<String,String> getChoiceTypes()
           
 com.google.common.base.Function<org.chorem.pollen.business.persistence.Choice,org.chorem.pollen.business.persistence.Choice> getDateChoiceCreator()
           
 List<org.chorem.pollen.business.persistence.Choice> getDateChoices()
           
 List<org.chorem.pollen.business.persistence.VotingList> getGroupVotingList()
           
 com.google.common.base.Function<org.chorem.pollen.business.persistence.Choice,org.chorem.pollen.business.persistence.Choice> getImageChoiceCreator()
           
 List<org.chorem.pollen.business.persistence.Choice> getImageChoices()
           
 String getPageTitle()
           
 com.google.common.base.Function<org.chorem.pollen.business.persistence.PersonToList,org.chorem.pollen.business.persistence.PersonToList> getPersontoListCreator()
           
 org.chorem.pollen.business.persistence.Poll getPoll()
           
 String getPollEditUrl()
           
 String getPollModerateUrl()
           
protected  org.chorem.pollen.services.impl.PollService getPollService()
           
 Map<String,String> getPollTypes()
           
 String getPollVoteUrl()
           
 int getReminderHourCountdown()
           
 List<org.chorem.pollen.business.persistence.VotingList> getRestrictedVotingList()
           
 int getSelectedTab()
           
 PageSkin getSkin()
           
 com.google.common.base.Function<org.chorem.pollen.business.persistence.Choice,org.chorem.pollen.business.persistence.Choice> getTextChoiceCreator()
           
 List<org.chorem.pollen.business.persistence.Choice> getTextChoices()
           
 Map<String,String> getVoteCountingTypes()
           
 com.google.common.base.Function<org.chorem.pollen.business.persistence.VotingList,org.chorem.pollen.business.persistence.VotingList> getVotingListCreator()
           
 boolean isCreatorUserAccountDefined()
           
 boolean isEdit()
           
 boolean isFreePoll()
           
 boolean isGroupPoll()
           
 boolean isInformationsError()
           
 boolean isLimitChoice()
           
 boolean isNotification()
           
 boolean isOptionsError()
           
 boolean isReminder()
           
 boolean isVoteStarted()
           
protected  void loadChoicesAndvotingLists(org.chorem.pollen.business.persistence.Poll poll, Collection<org.chorem.pollen.business.persistence.Choice> pollChoices, Collection<org.chorem.pollen.business.persistence.VotingList> pollVotinLists, boolean fillLists)
           
 void prepareFormPage()
           
 void setLimitChoice(boolean limitChoice)
           
 void setNotification(boolean notification)
           
 void setReminder(boolean reminder)
           
 void setReminderHourCountdown(int reminderHourCountdown)
           
 
Methods inherited from class org.chorem.pollen.ui.actions.PollenActionSupport
addFlashError, addFlashMessage, clearFlashErrors, clearFlashMessages, getActionContext, getApplicationUrl, getApplicationVersion, getConfiguration, getCurrentDateTime, getCurrentUrl, getFlashErrors, getFlashMessages, getJqueryTheme, getPageLogo, getPollenApplicationContext, getPollenSession, getPollenUserAccount, getSafeLanguage, getServiceContext, getServiceFactory, getTransaction, getVoteCountingTypeHelp, hasAnyErrors, hasFlashErrors, hasFlashMessages, isUserAdmin, isUserLoggued, newService, setTransaction
 
Methods inherited from class org.nuiton.web.struts2.BaseAction
_
 
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, execute, 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, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

poll

protected org.chorem.pollen.business.persistence.Poll poll
Constructor Detail

AbstractPollForm

public AbstractPollForm()
Method Detail

getSkin

public PageSkin getSkin()
Overrides:
getSkin in class PollenActionSupport

getPollService

protected org.chorem.pollen.services.impl.PollService getPollService()

getPoll

public org.chorem.pollen.business.persistence.Poll getPoll()

isInformationsError

public boolean isInformationsError()

isOptionsError

public boolean isOptionsError()

getPollTypes

public Map<String,String> getPollTypes()

getVoteCountingTypes

public Map<String,String> getVoteCountingTypes()

getChoiceTypes

public Map<String,String> getChoiceTypes()

getTextChoices

public List<org.chorem.pollen.business.persistence.Choice> getTextChoices()

getImageChoices

public List<org.chorem.pollen.business.persistence.Choice> getImageChoices()

getDateChoices

public List<org.chorem.pollen.business.persistence.Choice> getDateChoices()

getRestrictedVotingList

public List<org.chorem.pollen.business.persistence.VotingList> getRestrictedVotingList()

getGroupVotingList

public List<org.chorem.pollen.business.persistence.VotingList> getGroupVotingList()

isNotification

public boolean isNotification()

setNotification

public void setNotification(boolean notification)

isReminder

public boolean isReminder()

setReminder

public void setReminder(boolean reminder)

isLimitChoice

public boolean isLimitChoice()

setLimitChoice

public void setLimitChoice(boolean limitChoice)

getReminderHourCountdown

public int getReminderHourCountdown()

setReminderHourCountdown

public void setReminderHourCountdown(int reminderHourCountdown)

isFreePoll

public boolean isFreePoll()

isGroupPoll

public boolean isGroupPoll()

getPollVoteUrl

public String getPollVoteUrl()

getPollModerateUrl

public String getPollModerateUrl()

getPollEditUrl

public String getPollEditUrl()

getSelectedTab

public int getSelectedTab()

getActionLabel

public String getActionLabel()

getPageTitle

public String getPageTitle()

isVoteStarted

public boolean isVoteStarted()

isCreatorUserAccountDefined

public boolean isCreatorUserAccountDefined()

isEdit

public boolean isEdit()

prepareFormPage

public void prepareFormPage()
                     throws Exception
Throws:
Exception

getPersontoListCreator

public com.google.common.base.Function<org.chorem.pollen.business.persistence.PersonToList,org.chorem.pollen.business.persistence.PersonToList> getPersontoListCreator()

getVotingListCreator

public com.google.common.base.Function<org.chorem.pollen.business.persistence.VotingList,org.chorem.pollen.business.persistence.VotingList> getVotingListCreator()

getTextChoiceCreator

public com.google.common.base.Function<org.chorem.pollen.business.persistence.Choice,org.chorem.pollen.business.persistence.Choice> getTextChoiceCreator()

getDateChoiceCreator

public com.google.common.base.Function<org.chorem.pollen.business.persistence.Choice,org.chorem.pollen.business.persistence.Choice> getDateChoiceCreator()

getImageChoiceCreator

public com.google.common.base.Function<org.chorem.pollen.business.persistence.Choice,org.chorem.pollen.business.persistence.Choice> getImageChoiceCreator()

loadChoicesAndvotingLists

protected void loadChoicesAndvotingLists(org.chorem.pollen.business.persistence.Poll poll,
                                         Collection<org.chorem.pollen.business.persistence.Choice> pollChoices,
                                         Collection<org.chorem.pollen.business.persistence.VotingList> pollVotinLists,
                                         boolean fillLists)

fillLists

protected void fillLists(int defaultMaxChoices,
                         int defaultMaxVoting)


Copyright © 2009-2012 CodeLutin. All Rights Reserved.