Package org.hoteia.qalingo.core.web.mvc.viewbean

Examples of org.hoteia.qalingo.core.web.mvc.viewbean.MonitoringViewBean


  /**
   *
   */
  @ModelAttribute(ModelConstants.MONITORING_VIEW_BEAN)
  protected MonitoringViewBean initMonitoring(final HttpServletRequest request, final Model model) throws Exception {
    MonitoringViewBean monitoringViewBean = new MonitoringViewBean();
      final String contextValue = requestUtil.getCurrentContextNameValue(request);
      EngineSetting webMonitoringNumberEngineSetting = engineSettingService.getSettingWebMonitoringNumber();
      if(webMonitoringNumberEngineSetting != null){
          EngineSettingValue webMonitoringNumberEngineSettingValue = webMonitoringNumberEngineSetting.getEngineSettingValue(contextValue);
          if(webMonitoringNumberEngineSettingValue != null
                  && StringUtils.isNotEmpty(webMonitoringNumberEngineSettingValue.getValue())){
              monitoringViewBean = new MonitoringViewBean();
              monitoringViewBean.setMonitoringNumber(webMonitoringNumberEngineSettingValue.getValue());
             
              EngineSetting webMonitoringNameEngineSetting = engineSettingService.getSettingWebMonitoringName();
              EngineSettingValue webMonitoringNameEngineSettingValue = webMonitoringNameEngineSetting.getEngineSettingValue(contextValue);
              if(webMonitoringNameEngineSettingValue != null){
                  monitoringViewBean.setMonitoringName(webMonitoringNameEngineSettingValue.getValue());
              }
          }
      }
    return monitoringViewBean;
  }
View Full Code Here

TOP

Related Classes of org.hoteia.qalingo.core.web.mvc.viewbean.MonitoringViewBean

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.