protected void putEnumListToRequest(HttpServletRequest request) {
   request.setAttribute(
       "X_ENABLEDDISABLEDLIST", PersistentEnum.getEnumList(EnabledDisabled.class));
   request.setAttribute(
       "x_taStatusList", PersistentEnum.getEnumList(TravelApplicationStatus.class));
   request.setAttribute("x_taModeList", PersistentEnum.getEnumList(TravellingMode.class));
   request.setAttribute("x_singleOrReturnList", PersistentEnum.getEnumList(SingleReturn.class));
   request.setAttribute("x_urgentList", PersistentEnum.getEnumList(TravelApplicationUrgent.class));
   putCurrencyListToRequest(request);
 }
示例#2
0
  /**
   * 初始化Rule Engine 工作区
   *
   * @throws Exception
   */
  public void initWorkspace() {
    log.info("Initialize rule engine workspace");
    List ruleTypeList = PersistentEnum.getEnumList(RuleType.class);
    for (Iterator itor = siteManager.getAllEnabledSiteList().iterator(); itor.hasNext(); ) {
      Site s = (Site) itor.next();
      Integer siteId = s.getId();
      for (Iterator itorRuleType = ruleTypeList.iterator(); itorRuleType.hasNext(); ) {
        RuleType rt = (RuleType) itorRuleType.next();

        log.info(
            "Initialize flow type '"
                + rt.getEngShortDescription()
                + "' for site '"
                + s.getName()
                + "' to workspace.");
        constructEngineFlow(siteId, rt);
      }
    }
  }
 private void putEnumListToRequest(HttpServletRequest request) {
   request.setAttribute(
       "X_ENABLEDDISABLEDLIST", PersistentEnum.getEnumList(EnabledDisabled.class));
 }