Package org.olat.course.statistic

Examples of org.olat.course.statistic.StatisticUpdateManager


      CronTriggerBean triggerBean = (CronTriggerBean) CoreSpringFactory.getBean("updateStatisticsTrigger");
      JobDetail jobDetail = triggerBean.getJobDetail();
      enabled &= jobDetail.getName().equals("org.olat.statistics.job.enabled");
      log_.info("refreshUIState: org.olat.statistics.job.enabled check, enabled now: "+enabled);
      cronExpression = triggerBean.getCronExpression();
      StatisticUpdateManager statisticUpdateManager = getStatisticUpdateManager();
      if (statisticUpdateManager==null) {
        log_.info("refreshUIState: statisticUpdateManager not configured");
        enabled = false;
      } else {
        enabled &= statisticUpdateManager.isEnabled();
        log_.info("refreshUIState: statisticUpdateManager configured, enabled now: "+enabled);
      }
    } else {
      log_.info("refreshUIState: schedulerFactoryBean not found");
    }
View Full Code Here


   
    updateStatisticUpdateOngoingFlag();
  }
 
  private void updateStatisticUpdateOngoingFlag() {
    StatisticUpdateManager statisticUpdateManager = getStatisticUpdateManager();
    if (statisticUpdateManager==null) {
      log_.info("event: UpdateStatisticsJob configured, but no StatisticManager available");
      content.contextPut("statisticUpdateOngoing", Boolean.TRUE);
    } else {
      content.contextPut("statisticUpdateOngoing", statisticUpdateManager.updateOngoing());
    }
  }
View Full Code Here

  }

  public void event(UserRequest ureq, Controller source, Event event) {
    if (source == dialogCtr_) {
      if (DialogBoxUIFactory.isYesEvent(event)) {       
        StatisticUpdateManager statisticUpdateManager = getStatisticUpdateManager();
        if (statisticUpdateManager==null) {
          log_.info("event: UpdateStatisticsJob configured, but no StatisticManager available");
        } else {
          statisticUpdateManager.updateStatistics(true, getUpdateFinishedCallback());
          refreshUIState();
          content.put("updatecontrol", new JSAndCSSComponent("intervall", this.getClass(), null, null, false, null, 3000));
          getInitialComponent().setDirty(true);
        }
      }
View Full Code Here

   */
  @Override
  @SuppressWarnings("unused")
  public void event(UserRequest ureq, Component source, Event event) {
    if (STATISTICS_FULL_RECALCULATION_TRIGGER_BUTTON.equals(event.getCommand())) {
      StatisticUpdateManager statisticUpdateManager = getStatisticUpdateManager();
      if (statisticUpdateManager==null) {
        log_.info("event: UpdateStatisticsJob configured, but no StatisticManager available");
      } else {
       
        String title = getTranslator().translate("statistics.fullrecalculation.really.title");
        String text = getTranslator().translate("statistics.fullrecalculation.really.text");
        dialogCtr_ = DialogBoxUIFactory.createYesNoDialog(ureq, getWindowControl(), title, text);
        listenTo(dialogCtr_);
        dialogCtr_.activate();
       
      }
    } else if (STATISTICS_UPDATE_TRIGGER_BUTTON.equals(event.getCommand())) {
      StatisticUpdateManager statisticUpdateManager = getStatisticUpdateManager();
      if (statisticUpdateManager==null) {
        log_.info("event: UpdateStatisticsJob configured, but no StatisticManager available");
      } else {
        statisticUpdateManager.updateStatistics(false, getUpdateFinishedCallback());
        refreshUIState();
        content.put("updatecontrol", new JSAndCSSComponent("intervall", this.getClass(), null, null, false, null, 3000));
        getInitialComponent().setDirty(true);
      }
    }
View Full Code Here

TOP

Related Classes of org.olat.course.statistic.StatisticUpdateManager

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.