Examples of contextPut()


Examples of org.olat.core.gui.components.velocity.VelocityContainer.contextPut()

//    }

    // browser not supported messages
    // true if browserwarning should be showed
    boolean bwo = !Settings.isBrowserOlatAjaxCertified(ureq);
    contentBorn.contextPut("browserWarningOn", bwo ? Boolean.TRUE : Boolean.FALSE);
   
    // prepare login
    if (provider == nullprovider = LoginModule.getDefaultProviderName();
    AuthenticationProvider authProvider = LoginModule.getAuthenticationProvider(provider);
    if (authProvider == null)
View Full Code Here

Examples of org.olat.core.gui.components.velocity.VelocityContainer.contextPut()

    contentBorn.put("loginComp", authController.getInitialComponent());
    Collection providers = LoginModule.getAuthenticationProviders();
    List providerSet = new ArrayList(providers.size());
    providerSet.addAll(providers);
    providerSet.remove(authProvider); // remove active authProvider from list of alternate authProviders
    contentBorn.contextPut("providerSet", providerSet);
    contentBorn.contextPut("locale", ureq.getLocale());

    // prepare info message
    InfoMessageManager mrg = (InfoMessageManager)CoreSpringFactory.getBean(InfoMessageManager.class);
    String infomsg = mrg.getInfoMessage();
View Full Code Here

Examples of org.olat.core.gui.components.velocity.VelocityContainer.contextPut()

    Collection providers = LoginModule.getAuthenticationProviders();
    List providerSet = new ArrayList(providers.size());
    providerSet.addAll(providers);
    providerSet.remove(authProvider); // remove active authProvider from list of alternate authProviders
    contentBorn.contextPut("providerSet", providerSet);
    contentBorn.contextPut("locale", ureq.getLocale());

    // prepare info message
    InfoMessageManager mrg = (InfoMessageManager)CoreSpringFactory.getBean(InfoMessageManager.class);
    String infomsg = mrg.getInfoMessage();
    if (infomsg != null && infomsg.length() > 0)
View Full Code Here

Examples of org.olat.core.gui.components.velocity.VelocityContainer.contextPut()

    // prepare info message
    InfoMessageManager mrg = (InfoMessageManager)CoreSpringFactory.getBean(InfoMessageManager.class);
    String infomsg = mrg.getInfoMessage();
    if (infomsg != null && infomsg.length() > 0)
      contentBorn.contextPut("infomsg", infomsg);
   
    String infomsgNode = mrg.getInfoMessageNodeOnly();
    if (infomsgNode != null && infomsgNode.length() > 0)
      contentBorn.contextPut("infomsgNode", infomsgNode);
   
View Full Code Here

Examples of org.olat.core.gui.components.velocity.VelocityContainer.contextPut()

    if (infomsg != null && infomsg.length() > 0)
      contentBorn.contextPut("infomsg", infomsg);
   
    String infomsgNode = mrg.getInfoMessageNodeOnly();
    if (infomsgNode != null && infomsgNode.length() > 0)
      contentBorn.contextPut("infomsgNode", infomsgNode);
   
    return contentBorn;
  }

 
View Full Code Here

Examples of org.olat.core.gui.components.velocity.VelocityContainer.contextPut()

          } else {
            getWindowControl().setError(translate("login.error", WebappHelper.getMailConfig("mailSupport")));
          }
        } else if (cmd.equals(ACTION_BROWSERCHECK)) {
          VelocityContainer browserCheck = createVelocityContainer("browsercheck");
          browserCheck.contextPut("isBrowserAjaxReady", Boolean.valueOf(Settings.isBrowserOlatAjaxCertified(ureq)));
          dmzPanel.pushContent(browserCheck);
        } else if (cmd.equals(ACTION_COOKIES)) {
          dmzPanel.pushContent(createVelocityContainer("cookies"));
        } else if (cmd.equals(ACTION_ABOUT)) {
          VelocityContainer aboutVC = createVelocityContainer("about");
View Full Code Here

Examples of org.olat.core.gui.components.velocity.VelocityContainer.contextPut()

          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

Examples of org.olat.core.gui.components.velocity.VelocityContainer.contextPut()

        } 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>();
          Map<String, String> langTranslators = new HashMap<String, String>();
View Full Code Here

Examples of org.olat.core.gui.components.velocity.VelocityContainer.contextPut()

            names[i] = langName;
            String author = i18nMgr.getLanguageAuthor(key);
            langTranslators.put(key, author);
          }
          ArrayHelper.sort(enabledKeys, names, true, true, true);
          aboutVC.contextPut("enabledKeys", enabledKeys);
          aboutVC.contextPut("langNames", langNames);
          aboutVC.contextPut("langTranslators", langTranslators);
          dmzPanel.pushContent(aboutVC);
        } else if (cmd.equals(ACTION_ACCESSIBILITY)) {
          VelocityContainer accessibilityVC = createVelocityContainer("accessibility");
View Full Code Here

Examples of org.olat.core.gui.components.velocity.VelocityContainer.contextPut()

            String author = i18nMgr.getLanguageAuthor(key);
            langTranslators.put(key, author);
          }
          ArrayHelper.sort(enabledKeys, names, true, true, true);
          aboutVC.contextPut("enabledKeys", enabledKeys);
          aboutVC.contextPut("langNames", langNames);
          aboutVC.contextPut("langTranslators", langTranslators);
          dmzPanel.pushContent(aboutVC);
        } else if (cmd.equals(ACTION_ACCESSIBILITY)) {
          VelocityContainer accessibilityVC = createVelocityContainer("accessibility");
          dmzPanel.pushContent(accessibilityVC);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.