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

Examples of com.agiletec.plugins.jpsurvey.aps.system.services.survey.ISurveyManager


      surveyId = Integer.parseInt(surveyIdString);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "intercept", "Error parsing idSurvey '" + surveyIdString + "'");
    }
   
    ISurveyManager surveyManager = (ISurveyManager) ApsWebApplicationUtils.getBean(SurveySystemConstants.SURVEY_MANAGER, request);
    SurveyRecord surveyInfo = surveyManager.loadSurvey(surveyId);
    if (null == surveyInfo) {
      return "nullRequiredSurvey";
    }
   
    //SE NON ABILITATO A GRUPPO, ESCI
View Full Code Here


public class ListSurveyTag  extends TagSupport {
 
  public int doStartTag() throws JspException {
    try {
      UserDetails currentUser = (UserDetails) this.pageContext.getSession().getAttribute(SystemConstants.SESSIONPARAM_CURRENT_USER);     
      ISurveyManager surveyManager = (ISurveyManager) ApsWebApplicationUtils.getBean(SurveySystemConstants.SURVEY_MANAGER, pageContext);
      boolean isQuestionnaire = this.getCategory() != null && this.getCategory().equals("questionnaire");
      List<Integer> list = surveyManager.getActiveSurveyByUser(currentUser, isQuestionnaire, this.isExpired());
      this.pageContext.setAttribute(this.getCtxName(), list);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "doStartTag");
      throw new JspException("Error in tag \"SurveyListTag\"", t);
    }
View Full Code Here

import com.agiletec.plugins.jpsurvey.aps.system.services.survey.model.SurveyRecord;

public class LoadSurveyTag extends TagSupport {
 
  public int doStartTag() throws JspException {
    ISurveyManager surveyManager = (ISurveyManager) ApsWebApplicationUtils.getBean(SurveySystemConstants.SURVEY_MANAGER, pageContext);
    ILangManager langManager = (ILangManager) ApsWebApplicationUtils.getBean(SystemConstants.LANGUAGE_MANAGER,pageContext);
    IResourceManager resourceManager = (IResourceManager) ApsWebApplicationUtils.getBean(JacmsSystemConstants.RESOURCE_MANAGER, this.pageContext);
    SurveyRecord survey = null
    try {
      String defaultLang = langManager.getDefaultLang().getCode();
      survey = surveyManager.loadSurvey(this.getSurveyId());
      if (this._preferredLang == null) {
        this._preferredLang = defaultLang;
      }
      this.pageContext.setAttribute(this.getCtxName(), survey);
      // fetch image
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jpsurvey.aps.system.services.survey.ISurveyManager

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.