Package com.agiletec.plugins.jpsurvey.aps.system.services.collect

Examples of com.agiletec.plugins.jpsurvey.aps.system.services.collect.VoterResponse


public class SurveyWonderInterceptor extends AbstractSurveyWondenInterceptor {
 
  @Override
  public String intercept(ActionInvocation invocation) throws Exception {
    HttpServletRequest request = ServletActionContext.getRequest();
    VoterResponse voterResponse = this.getVoterResponse(request);
    if (null == voterResponse) return "nullVoterResponse";
   
    Survey survey = voterResponse.getSurvey();
    Date today = new Date();
    boolean started = (today.getTime() > survey.getStartDate().getTime());
    //SE NON INIZIATO, ESCI
    if (!started) return "surveyNotBegunYet";
    boolean expired = (null != survey.getEndDate() && today.getTime() > survey.getEndDate().getTime());
View Full Code Here


public class VoterProfileAction extends BaseAction implements IVoterProfileAction {
 
  @Override
  public String save() {
    try {
      VoterResponse userResponse =  this.getVoterResponse();
      Voter voter = userResponse.getVoter();
      voter.setAge(this.getAge().shortValue());
      voter.setCountry(this.getCountry());
      voter.setSex(this.getSex().toCharArray()[0]);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "saveVoterProfile");
View Full Code Here

* @author E.Santoboni
*/
public class CurrentVotingInfoBean {
 
  public CurrentVotingInfoBean(Survey survey, Voter voter) {
    VoterResponse voterResponse = new VoterResponse(survey, voter);
    this.setVoterResponse(voterResponse);
    this.setCurrentQuestionIndex(0);
  }
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jpsurvey.aps.system.services.collect.VoterResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.