Package org.olat.core

Examples of org.olat.core.Version


   
    // content panel
    contentPanel = new Panel("olatContentPanel");
    mainvc.put("olatContentPanel", contentPanel);
    mainvc.contextPut("o_winid", Long.valueOf(w.getDispatchID()));
    Version v = (Version) CoreSpringFactory.getBean("org.olat.core.Version");
    mainvc.contextPut("buildversion", v.getVersion());
   
    WindowControl wControl = new WindowControl() {
      private WindowControlInfo wci;

      {
View Full Code Here


    }
    String tmpFileName = CodeHelper.getGlobalForeverUniqueID();
    // crate new temp file
    File exportFile = I18nManager.getInstance().createLanguageJarFile(toExport, tmpFileName);
    if (exportFile != null) {
      Version version = (Version) CoreSpringFactory.getBean("org.olat.core.Version");
      String fileName = "language_export_" + version.getApplicationName() + "_" + version.getVersion() + ".jar";
      // Create a temporary media resource that gets deleted from the
      // file system automatically after delivery
      NamedFileMediaResource mediaResource = new NamedFileMediaResource(exportFile, fileName,
          "language download for brasato webapp framework", true);
      logDebug("Exporting tmp file::" + exportFile.getAbsolutePath() + " as fileName::" + fileName, null);
View Full Code Here

    // (since it contains the "<html><head... intro of the html page,
    // and thus has better to be replaced as a whole (new page load) instead of
    // a dom replacement)
    msg.setDomReplaceable(false);
   
    Version v = (Version) CoreSpringFactory.getBean("org.olat.core.Version");
    msg.contextPut("buildversion", v.getVersion());

    OLATRuntimeException o3e;
   
    if (th == null){
      o3e = new OLATRuntimeException("Error Screen with a Throwable == null", null);
View Full Code Here

  /**
   * implements serverice interface
   */
  public void destroy() {
    Version v = (Version) CoreSpringFactory.getBean("org.olat.core.Version");
    log.info("");
    log.info("*********************************************");
    log.info("*                SHUTDOWM                    ");
    log.info("*********************************************");
    log.info("* Application:   " + v.getApplicationName());
    log.info("* StopTimeStamp: " + new Date());
    log.info("*********************************************");
    log.info("");
  }
 
View Full Code Here

 
  /**
   * Either the version of the core or the webapps provided version gets printed
   */
  private void logStartup() {
    Version v = (Version)CoreSpringFactory.getBean("org.olat.core.Version");
    log.info("");
    log.info("*********************************************");
    log.info("*                STARTUP                     ");
    log.info("*********************************************");
    log.info("* Application:    " + v.getApplicationName());
    log.info("* Version:        " + v.getFullVersion());
    log.info("* StartTimeStamp: " + new Date());
    log.info("*********************************************");
    log.info("");
  }
 
View Full Code Here

    showOtherUsers.setTarget("_blanc");
    if (isGuest) showOtherUsers.setEnabled(false);
   
    loginLink = LinkFactory.createLink("footer.login", olatFootervc, this);
   
    Version v = (Version) CoreSpringFactory.getBean("org.olat.core.Version");
    String nodeInfo = (!CoordinatorManager.getCoordinator().isClusterMode()) ? "" : (", N"+CoordinatorManager.getCoordinator().getNodeId());
    olatFootervc.contextPut("olatversion", v.getFullVersion() + nodeInfo);
    // instant messaging awareness
    olatFootervc.contextPut("instantMessagingEnabled", new Boolean(InstantMessagingModule.isEnabled()));
    if (InstantMessagingModule.isEnabled()) {
      olatFootervc.contextPut("connectedUsers", new ConncectedUsersHelper());
    }
View Full Code Here

   
    // some variables displayed in the footer
    Translator translator = getTranslator();
    olatFootervc.contextPut("username", identity != null && !isGuest.booleanValue() ? translator.translate("username", new String[] { identity.getName() })
        : translator.translate("not.logged.in"));
    Version v = (Version) CoreSpringFactory.getBean("org.olat.core.Version");
    String nodeInfo = (!CoordinatorManager.getCoordinator().isClusterMode()) ? "" : (", N"+CoordinatorManager.getCoordinator().getNodeId());
    olatFootervc.contextPut("olatversion", v.getFullVersion() + nodeInfo);
    // instant messaging awareness
    olatFootervc.contextPut("instantMessagingEnabled", new Boolean(InstantMessagingModule.isEnabled()));
    if (InstantMessagingModule.isEnabled()) {
      olatFootervc.contextPut("connectedUsers", new ConncectedUsersHelper());
    }
View Full Code Here

        } else if (cmd.equals(ACTION_COOKIES)) {
          dmzPanel.pushContent(createVelocityContainer("cookies"));
        } else if (cmd.equals(ACTION_ABOUT)) {
          VelocityContainer aboutVC = createVelocityContainer("about");
          // Add version info and licenses
          Version v = (Version)CoreSpringFactory.getBean("org.olat.core.Version");
          aboutVC.contextPut("version", v.getFullVersion());
          aboutVC.contextPut("license", WebappHelper.getOlatLicense());
          // Add translator and languages info
          I18nManager i18nMgr = I18nManager.getInstance();
          Set<String> enabledKeysSet = I18nModule.getEnabledLanguageKeys();
          Map<String, String> langNames = new HashMap<String, String>();
View Full Code Here

    //Formatter formatter = Formatter.getInstance(ureq.getLocale());
    msg = new VelocityContainer("olatmain", VELOCITY_ROOT + "/message.html", trans, this);
           
    Tracing.logWarn(th.getMessage() + " *** User info: " + detailedmessage, th.getClass());
   
    Version v = (Version) CoreSpringFactory.getBean("org.olat.core.Version");
    msg.contextPut("buildversion", v.getVersion());
    msg.contextPut("detailedmessage", detailedmessage);         
    if(supportEmail!=null) {
      msg.contextPut("supportEmail",supportEmail);
    }

View Full Code Here

      msgProperties = tempConfiguration;
     
      msgProperties.setProperty("RegistrationVersion", "1.0");
      if (sendStats) {
        // OLAT version
        Version version = (Version) CoreSpringFactory.getBean("org.olat.core.Version");
        msgProperties.setProperty("olatAppName", version.getApplicationName());
        msgProperties.setProperty("olatVersion", version.getFullVersion());
        // System config
        msgProperties.setProperty("configInstantMessagingEnabled", String.valueOf(InstantMessagingModule.isEnabled()));
        msgProperties.setProperty("configLanguages", I18nModule.getEnabledLanguageKeys().toString());
        msgProperties.setProperty("configClusterEnabled", String.valueOf(CoordinatorManager.getCoordinator().isClusterMode()));
        msgProperties.setProperty("configDebugginEnabled", String.valueOf(Settings.isDebuging()));
View Full Code Here

TOP

Related Classes of org.olat.core.Version

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.