コード例 #1
0
  private void init() {

    if (logger.isDebugEnabled()) {
      logger.debug("init()");
    }

    targetObjectSelectList = new ArrayList<String>();
    targetObjectList = new ArrayList<SelectItem>();

    //   MetaInfoFactory metaInfoFactory = new TransMetaInfoFactory();

    //  for (String name : metaInfoFactory.getPartnerObjectNameList()) {
    // SelectItem item = new SelectItem(name, name);
    SelectItem item = new SelectItem("name", "value");
    targetObjectList.add(item);
    // }

    SelectItem itemT = new SelectItem("Participant", "Participant");
    targetObjectList.add(itemT);
    itemT = new SelectItem("Position Hierarchy", "Position Hierarchy");
    targetObjectList.add(itemT);

    //  for (String name : metaInfoFactory.getPartnerObjectNameList()) {
    //  targetObjectSelectList.add(name);
    targetObjectSelectList.add("nameTargetObjectSelect");
    // }

    selectAll = true;

    SchedulerDB schedulerDB = new SchedulerDB();
    Job job = schedulerDB.getJob(Job.BIReport);

    startDate = job.getStartTime();
    interval = job.getInterval();
    intervalUnit = job.getIntervalUnit();
    intervalUnitList = new ArrayList<SelectItem>();
    intervalUnitList.add(new SelectItem("Minutely", "Minutely"));
    intervalUnitList.add(new SelectItem("Hourly", "Hourly"));
    intervalUnitList.add(new SelectItem("Daily", "Daily"));
    intervalUnitList.add(new SelectItem("Weekly", "Weekly"));
    intervalUnitList.add(new SelectItem("Monthly", "Monthly"));

    OracleSchedulerDB oracleScheduleDB = new OracleSchedulerDB();
    oracleJobList = oracleScheduleDB.getBIReportJob();

    ConfigDB configDB = new ConfigDB();
    ConfigVO configVO = configDB.getConfigVO();

    configURL = configVO.getNameValueList().get("configURL");
    configUserName = configVO.getNameValueList().get("configUserName");
    configPassword = configVO.getNameValueList().get("configPassword");

    //  oracleJobList = new ArrayList<OracleJob>();

  }
コード例 #2
0
  public String saveConfig() {
    if (logger.isDebugEnabled()) {
      logger.debug("saveConfig()");
    }

    ConfigVO configVO = new ConfigVO();

    configVO.getNameValueList().put("PHARMACY_URL", configURL);
    configVO.getNameValueList().put("PHARMACY_USER", configUserName);
    configVO.getNameValueList().put("PHARMACY_PASSWORD", configPassword);

    ConfigDB configDB = new ConfigDB();
    configDB.save(configVO);
    return "success";
  }