Package org.hoteia.qalingo.core.web.servlet

Examples of org.hoteia.qalingo.core.web.servlet.ModelAndViewThemeDevice.addObject()


  public ModelAndView searchConfig(final HttpServletRequest request, final HttpServletResponse response) throws Exception {
    ModelAndViewThemeDevice modelAndView = new ModelAndViewThemeDevice(getCurrentVelocityPath(request), BoUrls.SEARCH_CONFIG.getVelocityPage());

    EngineSetting springBatchUrlEngineSetting = engineSettingService.getEngineSettingByCode(EngineSettingService.ENGINE_SETTING_CODE_SOLR);
    String solrUrl = springBatchUrlEngineSetting.getEngineSettingValue(EngineSettingService.ENGINE_SETTING_SOLR_MASTER_CONTEXT).getValue();
    modelAndView.addObject("solrUrl", solrUrl);
   
        return modelAndView;
  }
 
  @RequestMapping(BoUrls.SEARCH_URL)
View Full Code Here


       
        final EngineSetting engineSetting = engineSettingService.getEngineSettingByCode(engineSettingCode);

        // SANITY CHECK
        if(engineSetting != null){
            modelAndView.addObject(ModelConstants.ENGINE_SETTING_VIEW_BEAN, backofficeViewBeanFactory.buildViewBeanEngineSetting(requestData, engineSetting));
        } else {
            final String url = requestUtil.getLastRequestUrl(request);
            return new ModelAndView(new RedirectView(url));
        }
       
View Full Code Here

                && StringUtils.isNotEmpty(engineSettingValueContext)){
            final EngineSetting engineSetting = engineSettingService.getEngineSettingByCode(engineSettingCode);
            if(engineSetting != null){
                EngineSettingValue engineSettingValue = engineSetting.getEngineSettingValue(engineSettingValueContext);
                if(engineSettingValue != null){
                    modelAndView.addObject("engineSetting", backofficeViewBeanFactory.buildViewBeanEngineSetting(requestData, engineSetting));
                    modelAndView.addObject("engineSettingValue", backofficeViewBeanFactory.buildViewBeanEngineSettingValue(requestData, engineSettingValue));
                    modelAndView.addObject("engineSettingValueForm", backofficeFormFactory.buildEngineSettingValueForm(requestData, engineSettingValue));

                    model.addAttribute(ModelConstants.URL_BACK, backofficeUrlService.generateUrl(BoUrls.ENGINE_SETTING_DETAILS, requestData, engineSetting));
View Full Code Here

            final EngineSetting engineSetting = engineSettingService.getEngineSettingByCode(engineSettingCode);
            if(engineSetting != null){
                EngineSettingValue engineSettingValue = engineSetting.getEngineSettingValue(engineSettingValueContext);
                if(engineSettingValue != null){
                    modelAndView.addObject("engineSetting", backofficeViewBeanFactory.buildViewBeanEngineSetting(requestData, engineSetting));
                    modelAndView.addObject("engineSettingValue", backofficeViewBeanFactory.buildViewBeanEngineSettingValue(requestData, engineSettingValue));
                    modelAndView.addObject("engineSettingValueForm", backofficeFormFactory.buildEngineSettingValueForm(requestData, engineSettingValue));

                    model.addAttribute(ModelConstants.URL_BACK, backofficeUrlService.generateUrl(BoUrls.ENGINE_SETTING_DETAILS, requestData, engineSetting));

                    Object[] params = {engineSetting.getName() + " (" + engineSetting.getCode() + ")"};
View Full Code Here

            if(engineSetting != null){
                EngineSettingValue engineSettingValue = engineSetting.getEngineSettingValue(engineSettingValueContext);
                if(engineSettingValue != null){
                    modelAndView.addObject("engineSetting", backofficeViewBeanFactory.buildViewBeanEngineSetting(requestData, engineSetting));
                    modelAndView.addObject("engineSettingValue", backofficeViewBeanFactory.buildViewBeanEngineSettingValue(requestData, engineSettingValue));
                    modelAndView.addObject("engineSettingValueForm", backofficeFormFactory.buildEngineSettingValueForm(requestData, engineSettingValue));

                    model.addAttribute(ModelConstants.URL_BACK, backofficeUrlService.generateUrl(BoUrls.ENGINE_SETTING_DETAILS, requestData, engineSetting));

                    Object[] params = {engineSetting.getName() + " (" + engineSetting.getCode() + ")"};
                    overrideDefaultSeoPageTitleAndMainContentTitle(request, modelAndView, BoUrls.ENGINE_SETTING_EDIT.getKey(), params);
View Full Code Here

    initPaginationResult(request, modelAndView, batchProcessObjects);
    initLinks(request, modelAndView, locale);
   
    EngineSetting springBatchUrlEngineSetting = engineSettingService.getEngineSettingByCode(EngineSettingService.ENGINE_SETTING_CODE_SPRING_BATCH_URL);
    String springBatchUrl = springBatchUrlEngineSetting.getEngineSettingValue(EngineSettingService.ENGINE_SETTING_CONTEXT_CRM).getValue();
    modelAndView.addObject("springBatchUrl", springBatchUrl);
   
    String tab =  request.getParameter(RequestConstants.REQUEST_PARAMETER_TAB);
    /**
     * Save the user selected Tab page, when reset, still stuck in this tag page
     * so that the user experience better. That is, when user can click
View Full Code Here

    ModelAndViewThemeDevice modelAndView = new ModelAndViewThemeDevice(getCurrentVelocityPath(request), BoUrls.REFERENCE_DATAS.getVelocityPage());

      // CURRENCY REFERENTIAL
        List<AttributeDefinition> attributeDefinitions = attributeService.findAttributeDefinitions();
        List<AttributeDefinitionViewBean> attributeDefinitionViewBeans = backofficeViewBeanFactory.buildListViewBeanAttributeDefinition(requestUtil.getRequestData(request), attributeDefinitions);
        modelAndView.addObject("attributeDefinitions", attributeDefinitionViewBeans);

    // CURRENCY REFERENTIAL
    List<CurrencyReferential> currencyReferentials = currencyReferentialService.findCurrencyReferentials();
    List<CurrencyReferentialViewBean> currencyReferentialViewBeans = backofficeViewBeanFactory.buildListViewBeanCurrencyReferential(requestUtil.getRequestData(request), currencyReferentials);
    modelAndView.addObject("currencyReferentials", currencyReferentialViewBeans);
View Full Code Here

     * mouse clicks to complete the action
     * */
    if(null == tab){
      tab = "0";
    }
    modelAndView.addObject("tab", tab);
   
        return modelAndView;
  }
 
  @RequestMapping(value = BoUrls.BATCH_URL, method = RequestMethod.POST)
View Full Code Here

        modelAndView.addObject("attributeDefinitions", attributeDefinitionViewBeans);

    // CURRENCY REFERENTIAL
    List<CurrencyReferential> currencyReferentials = currencyReferentialService.findCurrencyReferentials();
    List<CurrencyReferentialViewBean> currencyReferentialViewBeans = backofficeViewBeanFactory.buildListViewBeanCurrencyReferential(requestUtil.getRequestData(request), currencyReferentials);
    modelAndView.addObject("currencyReferentials", currencyReferentialViewBeans);
   
    // LOCALIZATION
    List<Localization> localizations = localizationService.findLocalizations();
    List<LocalizationViewBean> localizationViewBeans = backofficeViewBeanFactory.buildListViewBeanLocalization(requestUtil.getRequestData(request), localizations);
    modelAndView.addObject("localizations", localizationViewBeans);
View Full Code Here

    modelAndView.addObject("currencyReferentials", currencyReferentialViewBeans);
   
    // LOCALIZATION
    List<Localization> localizations = localizationService.findLocalizations();
    List<LocalizationViewBean> localizationViewBeans = backofficeViewBeanFactory.buildListViewBeanLocalization(requestUtil.getRequestData(request), localizations);
    modelAndView.addObject("localizations", localizationViewBeans);
   
        return modelAndView;
  }
 
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.